Skip to content

Incorrect context usage display in status bar #4743

Closed

Description

@meAloex

What version of the VS Code extension are you using?

Version 0.5.17

Which IDE are you using?

Visual Studio Code – Insiders 1.105.0-insider

What platform is your computer?

Microsoft Windows NT 10.0.26120.0 x64

What steps can reproduce the bug?

Open a Codex chat/session (gpt-5-codex).
Paste a long prompt to increase context usage.
Check the status bar/tooltip that shows context counts and percent

What is the expected behavior?

Percentage should be within 0–100% and keep its decimal (e.g., 74.46%, 27.76%)

Numerator/denominator should be formatted consistently:

  • either both scaled with k (e.g., 20.3k / 272k tokens)
  • both raw with grouping (e.g., 20,293 / 272,000 tokens)

No mixing of thousands grouping with a k suffix

What do you see instead?

Status bar shows inflated percentages like 7461% and 2762% where the real values are ~74.46% and 27.76%
Numerator renders as 20,293k (reads as “20,293 thousands” ≈ 20.293M) though it means ~20.3k

Screenshots:
Image
Image

Additional information

Observed progression (from a single session, same 272k limit):
12k / 272k tokens → 4%
24k / 272k tokens → 9%
209k / 272k tokens → 77%
251k / 272k tokens → 92%
320k / 272k tokens → 118% ← exceeds 100%
344k / 272k tokens → 127% ← exceeds 100%

Image Image Image Image Image

Activity

  1. added
    extensionIssues related to the VS Code extension
    on Oct 4, 2025
  2. self-assigned this
    on Oct 5, 2025
  3. ccy-oai commented on Oct 5, 2025

    @ccy-oai
    Contributor

    Thanks for the report. The fix will go out in the next release.

  4. ccy-oai commented on Oct 6, 2025

    @ccy-oai
    Contributor

    The fix is included in version 0.4.18, which is already live on the VS Code Marketplace and should be rolling out to Cursor shortly.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingextensionIssues related to the VS Code extension

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions