feat(web): make context window indicator opt-in #9190
main fromrefs/pull/9190/head·merged by maria-rcks View on GitHubThe circular context window indicator is now a legacy feature that defaults off for existing and new client settings. Users can restore it from Settings → General → Legacy features, and settings search plus restore-default behavior include the new toggle. Verified with contracts and web typechecks, focused settings and meter tests, targeted lint, and a direct schema decode check. Built by gpt-5.6-sol in T3 Code through the Codex harness.
Note
Low Risk Client-local UI preference with a default-off legacy toggle; no auth, data, or server behavior changes beyond settings persistence.
Overview
The composer’s circular context window usage indicator is hidden by default. A new client setting, contextWindowMeterEnabled (default false), gates whether ChatComposer passes context-window data to the footer primary actions.
Users who want the old behavior can turn it on under Settings → General → Legacy features (“Context window indicator”). Settings search, restore-defaults tracking, and patch/schema decoding in contracts cover the new flag; tests assert default-off and explicit opt-in.
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5523463ffd0732aeab0db03fa25e208ca7c79961. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).Note
Add opt-in contextWindowMeterEnabled setting to ClientSettings#
- Adds the boolean
contextWindowMeterEnabledfield toClientSettingsSchemaandClientSettingsPatch, defaulting to false when absent so the context window meter is off by default. - Forwards
activeContextWindowtoComposerFooterPrimaryActionsonly when the setting is true; otherwise passes null so the meter is hidden. - Exposes a legacy "Context window indicator" switch in General settings under
LegacyFeaturesSection, with searchable terms registered insettingsSearch.ts. - Updates
useSettingsRestoreto detect and resetcontextWindowMeterEnabled, and adjusts the desktop test fixture to set it explicitly false. - Behavioral Change: existing clients with no
contextWindowMeterEnabledvalue now decode as false; verify any out-of-tree consumers ofClientSettingsexpecting the meter to show by default.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
maria-rcks merged thisa19f01f
maria-rcks closed this
@maria-rcks Could you share why this is marked as legacy? I found it very useful
came to ask the same question. I'm worried if there isn't a replacement planned. Managing context is key part of getting good model results.
I'd also be super interested in why this was disabled by default and hidden in legacy?
Adding another strong vote against classifying this as legacy. I love the context-window indicator and rely on it during long-running work.
Context pressure and compaction materially affect how I manage a thread; hiding that signal makes it harder to decide when to checkpoint, start a new thread, or change course before context quality degrades.
I understand making it optional for people who prefer a cleaner composer, but I would really like this kept as a normal, supported feature—not an opt-in “legacy” feature that signals it may be removed. Ideally it should live in the regular General settings, with a clear long-term commitment or a documented replacement.
In my opinion, the context-window indicator shouldn't be classified as legacy. Seeing how much context is in use is still useful for managing long threads and deciding when to start a fresh one, even with automatic compaction.
Making it optional is reasonable, but I'd like it to remain a supported feature in the regular settings. Could you explain the reasoning behind the legacy label, and whether a replacement is planned?
Can only agree with previous comments. Was very useful, will there be a replacement or maybe return from legacy status?
Completely unnecessary. Please work on forking chats instead of this.
Is this really a legacy feature? I also have to agree, working with context is core part of developing with AI and that includes managing the context window.
Its hard to see how this should not be the default. Especially when there really isn't stated any reason for hiding the context usage by default. Especially for us mere mortals that might use open-weight models whose context window isn't 1 million like opus.
I mean you don't owe us a reason and I really appreciate that you are taking the time to improve T3 code especially since I am using it everyday.
However its hard to see the value of this without one. Is there some new way of working with LLMs that makes caring about context "legacy" that I am just not aware of?
I am also puzzled as to why this is now considered a "legacy" feature. Codex and Claude Code both have this built in. I follow Matt Pocock's courses on AI and he insists on the importance of staying in the "smart zone" vs the "dumb zone" when context starts filling up too much. cf https://www.aihero.dev/ai-coding-dictionary/smart-zone
Hey, so just a quick update on what I learned in the last few weeks.
I assume that with the newer models and harnesses getting better the daily workflows Julis, theo and their work group? (idk how to call it) probably changed. Changed in way that makes consciously thinking about context usage simply something they don't do anymore.
I had came to some conclusions
- autocompaction is getting actually good
- with autocompaction and capped context windows ~250K tokens you don't enter the dumb zone (this is totally unmeasured claim btw, just something from my personal experience).
When you use codex, then by default the context window is ~250K tokens not the ~1M even though they are technically capable of working with that much context. I don't know about claude code.
Now I haven't measured this at all myself but if I had to guess then in their experience the llm performance doesn't drop when you are in the 250K range. Its like you don't enter the "dumb zone" at all. To some extent you do. LLM attention span is a real thing but maybe the performance drop near the end is so small that it doesn't matter 99% of the time.
So they are having long sessions and rely on autocompaction to carry them. The impulse for creating new session is a feeling/intuition now. Like you know that the next thing you are asking the model to do is too big. And it is too big you either start new session or tell the agent in your session to delegate it to subagent.
So in a way worrying about context in your chat sessions might be "dead". Assuming sessions with capped context window.
Just to be clear I have no idea what they are actually thinking and don't speak for them but this seems like plausible explanation
yes @MagicMajky I'm starting to come to the same conclusion, that at least with Codex specifically, context window usage and compaction don't seem to be issues anymore, with the OpenAI default set at 258k tokens and their fine-tuned compaction. But not all models and harnesses are created equal… And t3 code (and now even the Codex harness) support many models. And I still believe filling up a 1M Claude context window has to decrease model performance in some way! I equate this to keeping thousands of irrelevant details and conflicting ideas in my mind at once: I definitely wouldn't be able to focus clearly, and I don't expect the model to do better. Even recent evaluations show Claude Opus 5.5 scoring much higher below 128K tokens versus near 1M.
This should not be a legacy feature. It's very useful. In my case, I have the 20$ sub from Claude, and I like to know the context window usage, so I can sometimes decide to compact it and save on my quota.
There's no reason to make this legacy. It uses very little space in the GUI. I think it doesn't even make sense to make it opt-in. If something, it should be opt-out.
Sign in to join this conversation.
Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — This PR changes the persisted default behavior of the web composer by hiding the existing context-window indicator unless users opt in through a legacy settings control. The implementation is otherwise contained and additive, but the default change warrants review of the intended product experience.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).