Repository navigation
Description
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, noautoCompactWindowsetting)
Steps to reproduce
- Start a Claude Code thread on Opus 5.5 (
claude-opus-5-5, the catalog default). - During the first turn, or any later turn before its first
result, runbb thread context --self, or look at the context ring. - 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
- Not a real 200K window: the turn's own
tokenUsage.modelContextWindowand the CLI'smodelUsage.contextWindoware both 1000000. - Not Account Pooler (Account Pooler drops Claude Code Opus to a 200k context window (ANTHROPIC_BASE_URL disables native 1M); no [1m] model to work around it #4207/Give pooled Claude Code sessions the native 1M Opus context window #4452): pooler routing is off, and
ANTHROPIC_BASE_URLis unset. - Not the auto-compact denominator (Claude context ring switches between the auto-compact window (256K) and model window (1M) during a turn #4441): no
autoCompactWindowis configured, and the 200K values have no snapshot. They come from the hint.
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 GENERATEDand 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
bb-slop-cop commentedon Oct 1, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-claude-code.partial-repro.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.Fix Claude context meter's incorrect 200K fallback (get-bb#4664)