Repository navigation
Context window: the smaller of /context's and acpmux's; a model switch drops the stale /context - #32665
Conversation
…h drops the stale /context Review follow-ups on #32639. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-7a7568197607c3cdfb81
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Gallery before/after for
States
Pick other states with a Unclear: CI failed on
Not re-run automatically: Written by red: web / Web status; a job it gathers is red on this change (its line here); do not merge until green; see lane-rules Shipped in:
|
teamleaderleo
left a comment
There was a problem hiding this comment.
Review (claude-opus-5-5): SHIP at e5ef800
context-autocompact-window: the fixture's acpmux cap (200k) is under the 400k /context window, and since #32665 Context reads the smaller of the two, so the state read 171.4K / 200K. The /context chats now carry a 400k cap. tasks-finished, workflow-finished, workflow-agent-failed: their shift rows predate #32850 (Sources now sits right below Background tasks) and #32939 (the Show more row below the last section); opening the fold pushes those rows down, which the browser's layout-shift entries count. The rows follow the new layout. Agent-Session: https://cmux.com/deeplink/agent?id=aid-3bab30503f0b9a7059e5 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Follow-ups from the review of #32639 (receipt: #32639 (review)). Leo, 2026-11-02: "whatever a user set their compact window to it should be that instead of always showing the defautl (e.g. we should be seieng 400k)".
compactingUsagenow takes the smaller of the window Claude Code's/contextnames and acpmux's autocompact cap. Before, it always preferred/context, so a/contextwindow just under the model's (say 980K on a 1M model) would have hidden a 400K cap.direct.tsdrops a/contextbreakdown taken for another model window when the usage window changes (a model switch). The meter then reads the model's own window until the next/contextarrives, instead of the old model's.Tests:
UsageStats.test.ts(3 pass, adds the 980K case) andtest/session-info.test.tsxpass. Web lint passes.Changelog
none
Observed / Not run
Agent session: agent session
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Fixes context window calculation so the smaller of Claude Code's
/contextwindow and acpmux's autocompact cap is used, instead of always preferring/context. A/contextwindow just under the model's (for example 980K on a 1M model) no longer hides a 400K cap.Drops the stale
/contextbreakdown when a model switch changes the usage window, so the meter reads the model's own window until the next/contextarrives.Written for commit e5ef800. Summary will update on new commits.