Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: I don't trust the context window UI with claude-code as backend #2807

ClosedRohitKaushal7(GitHub profile, opens in a new tab) opened this issue 3 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

just use the claude-code as the backend and try Opus 4.7 it shows a 200K context window option -- even if I select that, context goes over it.

I'm always skeptical about the context window shown, doesn't look right. even after a /compact it shows full, even though the compact was successful.

Expected behavior

  • the UI should show what the real context window is. (not out of sync state)
  • which after compact should have been way less than 1M
  • when using 200K context mode, the conxt should not go over 200K even on 1M context window models. either that or don't show that option there. its misleading.

Actual behavior

this is the context window right after I did /compact using claude-code Opus 4.7 high on 200K selected window (UI) Image

Impact

Minor bug or occasional failure

Version or commit

No response

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

  1. RohitKaushal7(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. I'm not sure if it is possible using cc sdk, but seeing the total tokens sent/received in a session/thread and the current exact context window size would be nice.

  3. I am not sure but I think this is related to the subagents context window as well, so it appears bigger than it should be.

  4. Duplicate of #2034

    Same root cause: with claude-code the context meter falls back to cumulative token spend when task_progress is missing, so it reads full even right after a successful /compact. Tracked in #2034.

  5. juliusmarminge closed this

Sign in to join this conversation.