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 — compaction.auto=false is bypassed by provider overflow auto-compaction in 1.15.13 · Issue #30664 · anomalyco/opencode Closed DescriptionDescription
This is still reproducible on OpenCode Related existing issue: #16882. Filing this separately because the behavior is still present in current 1.15.x, and this reproduction adds a more specific failure mode: automatic overflow compaction can happen at only ~20-30% displayed context usage after manual compaction, and can trigger repeatedly. Current config
"compaction": { "auto": false, "reserved": 5000 } No project-level Observed behaviorA long local session had already been manually compacted, then later automatically compacted twice in a row even though Compaction marker evidence from the The important part: the first automatic compaction was not triggered near a full context window. The resolved custom model limit for {
"context": 568000,
"input": 386240,
"output": 128000
}The last successful assistant request before the first automatic compaction had: That is only: The second automatic compaction happened immediately after the first one. The compaction summary request itself had only: That is only: So this is not normal proactive context-threshold compaction. Most likely triggerRight before the first automatic compaction, the assistant had read several image files. The tool outputs were small textual outputs, but each tool part contained one attachment. One attachment JSON payload was about 1.78 MB: This suggests the provider/processor returned That is fine as an error condition, but Source code observationThe proactive overflow path correctly respects if (input.cfg.compaction?.auto === false) return false But the provider overflow/processor result path in if (result === "compact") { yield* compaction.create({ sessionID, agent: lastUser.agent, model: lastUser.model, auto: true, overflow: !handle.message.finish, }) } Because Expected behaviorIf Instead it should surface a recoverable overflow error and stop, allowing the user to:
Actual behaviorOpenCode creates a compaction marker with In this reproduction it happened twice consecutively, and at only ~27% context usage before the first automatic compaction. OpenCode versionModel/providerOperating systemWindows TerminalWindows Terminal / PowerShell 7 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. |