Skip to content

Claude context meter shows / 200,000 at the start of every turn for Opus/Sonnet that actually run with 1M #4617

Closed

Description

@rabbive

Summary

On a direct Claude login, Claude Code gives plain claude-opus-5-5 and claude-sonnet-5-5 a native 1M context window. bb's context meter still shows / 200,000 from the start of every turn until that turn's first result arrives. The thread really is running with 1M, but for most of a long turn bb shows a 200K limit, so it looks like the 1M window is gone. That leads people to look for a [1m] model, as in #4498.

This was "related problem 2" in #4207. The fix for that issue (#4452) covered only the Account Pooler env var, and no open issue tracks this.

Versions and environment

  • bb desktop 0.44.0 (latest release), builtin [email protected]
  • Claude Code CLI 2.1.285
  • macOS, Claude subscription login (no Account Pooler routing, no ANTHROPIC_BASE_URL, no autoCompactWindow setting)

Steps to reproduce

  1. Start a Claude Code thread on Opus 5.5 (claude-opus-5-5, the catalog default).
  2. During the first turn, or any later turn before its first result, run bb thread context --self, or look at the context ring.
  3. Compare with claude -p --model claude-opus-5-5 --output-format json "reply ok" on the same machine.

Expected vs actual

Expected: the meter shows / 1,000,000 for the whole turn, because that is the
window Claude Code is running with.

Actual:   "Estimated context: 117,597 / 200,000 tokens" during the turn. It flips to
1,000,000 when a result arrives, then back to 200,000 when the next turn starts.
The CLI reports modelUsage["claude-opus-5-5"].contextWindow = 1000000.

Evidence

thread/contextWindowUsage/updated and thread/tokenUsage/updated events from one thread, with consecutive duplicates collapsed:

Sequence Event modelContextWindow
13 turn/started —
18 contextWindowUsage/updated 200000
156 contextWindowUsage/updated 1000000
157 tokenUsage/updated 1000000
159 contextWindowUsage/updated (with snapshot, contextWindowTokens 1000000) 1000000
425 contextWindowUsage/updated (reset, size null) —
427 turn/started —
432…560 contextWindowUsage/updated 200000

Over the whole thread: 56 events at 200000 and 57 at 1000000, for the same model and the same session.

The 200K comes from the hint function in the installed bundle (builtin-plugins/provider-claude-code/dist/host.js, minified):

var _Ye=2e5,bYe=1e6,wYe=new Set(["best","claude-fable-5","claude-fable-5-1","claude-mythos-5","claude-mythos-5-1","fable"]);
function h1(e){return e.endsWith("[1m]")||wYe.has(e)?bYe:e==="default"?null:_Ye}
// ... selectedModelContextWindow=h1(F)  (setClaudeModelContextWindowHint)

Any model ID without [1m] that isn't Fable gets the 200K fallback. Since 0.44.0 the catalog has no [1m] IDs, so every Opus/Sonnet thread starts each turn at 200K.

What you ruled out

Suggested priority and effort (optional)

Low effort. Options:

  • Carry the last known window over to the next turn instead of resetting to the hint.
  • Use the window Claude Code reports at init.
  • Add Opus/Sonnet 4.6+ to the 1M set when the session is first-party.

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 GENERATED and links the thread or report.

Written by a Claude Code agent from a local bb thread, which can't be linked publicly. All values above come from that thread's event log and CLI runs.

AGENT GENERATED

Activity

  1. added theissue type on Oct 1, 2026
  2. added
    providers
    provider-claude-code
    partial-repro
    on Oct 1, 2026
  3. bb-slop-cop commented on Oct 1, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Low · Effort: Low · providers, provider-claude-code.
    • Report: Reproduction and root-cause report.
    • Verdict: PARTIALLY REPRODUCED · Root-cause confidence: high · Reproduction label: partial-repro.
    • Root cause: The plain-model hint supplies 200K until result processing learns the reported 1M capacity. Recreating the translator loses that measurement; ordinary resident follow-up turns retain it.
    • Verification: Repeated on trusted main (2573ad5) in two checkouts: two expected first-request regression failures and a passing lifecycle check. An authenticated Claude turn and the macOS UI were not exercised.
    • No pull request: Safe first-turn capacity detection must account for routing and disabled-1M settings; an unconditional 1M hint can override a genuine 200K result. No production changes were pushed.

    AGENT GENERATED

  4. added a commit that references this issue on Oct 2, 2026
    c65a47f
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

    partial-reproprovider-claude-codeproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions