Skip to content

"Show context window usage" setting is reset after logout/login (unlike all other settings) #29098

Open

Description

@alexchexes

What version of the IDE extension are you using?

26.616.31447

What subscription do you have?

Plus

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

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?

  1. Sign in to the Codex VS Code extension with ChatGPT account.
  2. Open Codex settings.
  3. Go to General → Composer.
  4. Enable "Show context window usage".
  5. Confirm that the context-window usage indicator appears in the composer.
  6. Log out of Codex VS Code extension.
  7. Log back in with ChatGPT account.
  8. Open Codex settings again.
  9. 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.

Activity

  1. added
    extension
    on Jun 19, 2026
  2. added
    bug
    context
    config
    on Jun 19, 2026
  3. Necmttn commented on Jun 21, 2026

    @Necmttn

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfigcontextextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions