# Default Claude context window to 1M · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/b05bdd13255efbbe5eb5a33d7d6548d1f2b15b04)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: b05bdd13255efbbe5eb5a33d7d6548d1f2b15b04

Requested commit: b05bdd13255efbbe5eb5a33d7d6548d1f2b15b04

Commit: b05bdd13255efbbe5eb5a33d7d6548d1f2b15b04

Tree: 5e06448443c98f47bfa02a8c058556dcf290179f

Author: Theo Browne

Committer: Theo Browne

## Message

```
Default Claude context window to 1M

The 200k default dates to the era when 1M context was entitlement-gated
and carried a long-context pricing premium. Anthropic has since made 1M
the default for every model that supports it, with no beta header, tier
gate, or premium. Most users run Opus 4.8 or Fable 5, which are already
1M-default upstream, so the conservative default only added a stale
mismatch for the toggle-capable models.

- Flip the contextWindow default to 1m for Fable 5, Opus 4.6, Sonnet 5,
  and Sonnet 4.6; 200k remains selectable.
- Add resolveClaudeContextWindow so option-less selections resolve to
  the descriptor default instead of implicitly meaning 200k; both
  resolveClaudeApiModelId ([1m] suffix) and the adapter's token
  accounting now share it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [f61fa9499d96fee825492aba204593c37b27e0cb](https://git.cafe/pingdotgg/t3code/commit/f61fa9499d96fee825492aba204593c37b27e0cb?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/b05bdd13255efbbe5eb5a33d7d6548d1f2b15b04?format=markdown)
