Repository navigation
Description
Summary
While a Claude Code turn runs, the composer's context ring card loses its "Show details" breakdown: it shows only "Estimated context / N% used / tokens / % left", and the parts (messages, memory files, skills, tools…) reappear only after the reply ends. Those parts matter most while the context is filling up. The user also reports that the ring itself disappears for a while right after a message is sent (observed by the user; not reproduced by the agent, see below).
Versions and environment
- bb 0.50.1, desktop app, macOS 27.0.1
- Claude Code 2.1.332, Opus 5.5 with a 1M window, worktree environment
Steps to reproduce
- Start a Claude Code thread and let one reply finish. Hover the context ring beside the permission menu: the card has "Show details", which expands the parts.
- Send a message that makes the agent work for a while (several tool calls).
- While the turn runs, hover the ring again.
Expected vs actual
Actual (step 3, read from the card mid-turn): Estimated context · 22% used · 216k / 1m tokens · 78% left. There is no "Show details" button until the turn ends.
Expected: "Show details" stays available mid-turn, with the last measured parts and the tokens added since then counted as messages (or the parts labelled "as of "), and the ring stays visible from the moment a message is sent.
Evidence
- The card offers details only when
usage.snapshothas categories: ThreadContextWindowIndicator.tsx#L33-L35, button at #L149. extractThreadContextWindowUsagekeeps the snapshot only whilesnapshot.usedTokens === usedTokens: thread-context-window-usage.ts#L135-L141. Claude Code's mid-turnthread/contextWindowUsage/updatedevents carry a total but no snapshot, so the snapshot drops at the first mid-turn update. In one thread's log after a send, every usage event until the reply ended hadsnapshotabsent (e.g.used=204392 snap=false,used=205194 snap=false); the last one before the send hadused=203821 snap=true.- The follow-up composer draws the ring only while
contextWindowUsageis set: FollowUpPromptBox.tsx#L825-L826. The server's head state reads all usage rows since the last context clear (thread-head-state.ts readThreadContextWindowUsage) and returned a value mid-turn when checked, so if the ring does vanish after a send, the gap is probably client-side. Cause unverified. - A plugin workaround (its own ring reading
threads.contextplus thethread/contextWindowUsage/updatedhistory for the last snapshot) keeps both visible mid-turn, but it duplicates bb's ring, so we removed it.
What you ruled out
- Not Claude context ring switches between the auto-compact window (256K) and model window (1M) during a turn #4441 or Claude context meter shows / 200,000 at the start of every turn for Opus/Sonnet that actually run with 1M #4617 (window size flipping during a turn); the window is stable at 1M here.
- Not Context-window usage indicator flickers when hovered on compact viewports #3334 (compact-viewport flicker); this is a desktop window.
- Hover itself works mid-turn: the card opens; only the breakdown is missing.
- The vanish-on-send was not reproduced by the agent: in a headless check mid-turn the ring was present. It is the user's observation in the desktop app.
Suggested priority and effort (optional)
Low to medium: no data loss; the workaround is waiting for the reply to end. It hits every long turn, which is when the context is filling up.
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. - I searched open and closed issues for the same problem.
- If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report.
Filed by an agent from a local bb thread (no public link).
AGENT GENERATED
Activity
bb-slop-cop commentedon Nov 26, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui,provider-claude-code,partial-repro.Keep the context breakdown and ring during a running turn (get-bb#8288)
Keep the context breakdown and ring during a running turn (get-bb#8288)