GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — GitHub Copilot plugin ignores user-configured model limit overrides · Issue #21564 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionProblemUser-configured This causes compaction to trigger much earlier than expected — around 11-13% of the configured context window — because:
Config example{
"provider": {
"github-copilot": {
"models": {
"claude-opus-4.6": {
"limit": {
"context": 1000000,
"output": 64000
}
}
}
}
},
"compaction": {
"auto": true,
"prune": true,
"reserved": 2000
}
}Despite this config, compaction triggers at ~128K tokens (the API-reported Root causeIn function build(key: string, remote: Item, url: string, prev?: Model): Model { return { // ... limit: { context: remote.capabilities.limits.max_context_window_tokens, input: remote.capabilities.limits.max_prompt_tokens, output: remote.capabilities.limits.max_output_tokens, }, // prev is used for family, name, options, variants, etc. but NOT limit } } Other fields from Expected behaviorUser-configured limit: { context: prev?.limit?.context ?? remote.capabilities.limits.max_context_window_tokens, input: prev?.limit?.input ?? remote.capabilities.limits.max_prompt_tokens, output: prev?.limit?.output ?? remote.capabilities.limits.max_output_tokens, }, Additional contextThe compaction trigger in const usable = input.model.limit.input ? input.model.limit.input - reserved : context - maxOutputTokens(model) So even if Reacted by turtton and Dennis Mayer Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |