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 — [BUG]: /compact can exceed model context before summarization on large sessions · Issue #29857 · anomalyco/opencode Closed as not planned Closed as not planned Copy link Descriptionopencode-compact-large-session-repro.db.gz Description
In the reproduced case, the stored session is not already compacted and has a large amount of historical tool output and reasoning metadata. When this was encountered with gpt-5.5 with the oauth plan. Observed error class/message locally was equivalent to: or, from the provider: I don't know how this happened ... if something went wrong with the session saving, but it is reproducible. I have an anonymized SQLite database fixture that reproduces the problem without real project/customer/message content. GitHub CLI cannot upload issue attachments, so I will attach Fixture details:
Verification from a local harness with no provider API call: {
"mode": "legacy-measure",
"result": "overflow",
"measuredTokens": 788327,
"measuredBytes": 3153309,
"beforeMessages": 794,
"overflowDetected": true
}The same artifact on a local fixed branch, using adaptive compaction request sizing, successfully compacts: {
"mode": "fixed",
"result": "continue",
"measuredTokens": 308291,
"measuredBytes": 1233163,
"beforeMessages": 794,
"afterMessages": 796,
"compacted": true,
"overflowDetected": false
}Related issues that appear adjacent but do not include a concrete anonymized DB fixture: #17340 and #26707. PluginsNot required to reproduce with the artifact. The verification harness uses a fake processor and no provider API call. OpenCode versionCurrent dev / Steps to reproduce
gunzip -k opencode-compact-large-session-repro.db.gz
OPENCODE_DB=/absolute/path/to/opencode-compact-large-session-repro.db opencode
Expected: OpenCode should prepare a summarization request safely below the selected model's usable input budget and compact the session. Actual before the fix: Screenshot and/or share linkAn anonymized DB fixture should be attached to this issue: Operating SystemLinux x64 TerminalOpenCode TUI / CLI 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. |