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
Display actual auto-compaction context threshold per CLI/provider (Antigravity, Claude Code, Codex, etc.)
#40198
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
(Moved from #40188 to Discussions per maintainer feedback.)
Problem
Currently, T3 Code displays the model's nominal/theoretical context window (e.g.,
1Mtokens) in the context usage indicator.However, underlying agent CLIs and harnesses trigger auto-compaction well before reaching the model's nominal limit:
agy): Auto-compacts around512keven though T3 Code displays1M(~50% usage looks safe, then compaction suddenly triggers).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:
420k / 512k (compaction limit) · Model max: 1M).512k) and base warning colors/percentages on proximity to compaction.Why This Matters
All reactions