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
"Show context window usage" setting is reset after logout/login (unlike all other settings) #29098
bugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatescontextIssues related to context management (including compaction)extensionIssues related to the VS Code extension
The "Show context window usage" option under Settings → General → Composer is not preserved after logging out of the Codex extension and logging back in.
After login, the option is disabled and the context-window usage indicator is no longer displayed. Other options are preserved across the same logout/login flow, so this appears to affect this option specifically.
The toggle itself works correctly when enabled. The problem is its persistence across the authentication lifecycle.
What steps can reproduce the bug?
Sign in to the Codex VS Code extension with ChatGPT account.
Open Codex settings.
Go to General → Composer.
Enable "Show context window usage".
Confirm that the context-window usage indicator appears in the composer.
Log out of Codex VS Code extension.
Log back in with ChatGPT account.
Open Codex settings again.
Observe that "Show context window usage" has been reset to disabled, while other options remain preserved.
What is the expected behavior?
"Show context window usage" should remain enabled after logging out and logging back in, consistent with the persistence behavior of the other options.
Additional information
This option was introduced after the context-window usage indicator was restored in: #24272
This is separate from the original missing-indicator issue: the indicator is displayed correctly when the option is enabled. Only the option’s persistence across logout/login is broken.
This setting needs an explicit preference scope and migration test. I would store it with the same durable preference path as the other Composer options, with fields for account-scoped vs local, default, source, and last_updated. Then add a logout/login regression that diffs the whole Composer preference set so new options cannot fall back to defaults silently.
bugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatescontextIssues related to context management (including compaction)extensionIssues related to the VS Code extension
Activity
Necmttn commentedon Jun 21, 2026
This setting needs an explicit preference scope and migration test. I would store it with the same durable preference path as the other Composer options, with fields for account-scoped vs local, default, source, and last_updated. Then add a logout/login regression that diffs the whole Composer preference set so new options cannot fall back to defaults silently.
Generated with ax.