You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: display actual auto-compaction context threshold per CLI/provider (Antigravity, Claude Code, Codex, etc.) #40188
Because the UI only reflects the nominal window, users are misled into thinking they still have plenty of headroom and get caught off guard by unexpected compaction mid-task.
Proposed Solution
Reflect the effective auto-compaction threshold of the active CLI/provider in the context indicator, rather than only the model's nominal max context:
Primary display or tooltip breakdown:
Option A: Use the effective compaction threshold as the primary denominator, with a tooltip showing the nominal model limit (e.g., 420k / 512k (compaction limit) · Model max: 1M).
Option B: Keep the nominal window on the meter, but render a clear compaction threshold marker (e.g., at 512k) and base warning colors/percentages on proximity to compaction.
Data source:
Read the effective compaction threshold dynamically from the CLI/provider/ACP session metadata when reported.
Fall back to provider-aware defaults (for Antigravity, Claude Code, Codex, etc.) when the CLI does not expose it explicitly.
Why This Matters
Gives users an accurate view of actual remaining context before lossy compaction occurs.
Lets users proactively summarize, save state, or start a fresh thread before hitting auto-compaction.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.
Activity
juliusmarminge commentedon Nov 21, 2026
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.