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 — fix(session): stop auto-compacting after 3 consecutive attempts that don't shrink the request by OracleCLM · Pull Request #48188 · anomalyco/opencode ConversationBodyCompaction can only reduce the conversation. When what exceeds the Observed live: The failure mode is worse than a visible hang. Once the queue of oversized The changeA per-run counter of consecutive compactions, capped at 3, on both triggers (the The counter resets when a finished turn no longer overflows, which is the Test
Verified in both directions: against the current code the test fails with
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…don't shrink the request Compaction can only reduce the conversation. When what exceeds the provider's context window is the fixed overhead — system prompt plus tool definitions — every compaction genuinely succeeds (the request really is smaller) and the very next turn overflows again. isOverflow() keeps evaluating true, compaction.create() keeps firing, and the loop never terminates. Observed live: Build -> "Task completed" -> Compaction -> Build -> ... cycling five or more times in about forty-five seconds, never producing an answer. The failure mode is worse than a visible hang: as soon as the sequence of oversized replies ends, the loop finishes on an ordinary response with a benign "stop" and no error at all. The session quietly stops doing what it was asked instead of saying why it cannot. Adds a per-run counter of consecutive compactions, capped at 3, on both triggers (the preventive isOverflow check and the reactive mid-stream "compact" path). When the cap is exceeded the assistant message carries a ContextOverflowError naming the real constraint, and the loop stops. The counter resets when a finished turn no longer overflows — the precise meaning of "compaction did its job". Resetting on any completed turn would defeat the cap in exactly the case it exists for, where every turn succeeds and every turn is still too large. The test seeds an already-finished oversized reply so the first decision comes from the preventive check, and queues more oversized turns than the cap allows, so it measures how many the loop tries rather than when the queue runs out. Against the current code it fails with Expected "ContextOverflowError", received undefined.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||
| 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. |