claude-code - 💡(How to fix) Fix C:/Program Files/Git/model opus sets 200k context window instead of 1M on Max plan [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46437Fetched 2026-04-11 06:20:18
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
1
Author
Timeline (top)
labeled ×4commented ×1

On a Max plan with Claude Code v2.1.101, using /model opus sets the context window to 200k tokens instead of 1M. Using /model with no arguments (selecting the default) correctly sets 1M.

Both resolve to claude-opus-4-6, but the opus alias doesn't enable the 1M context flag.

Root Cause

On a Max plan with Claude Code v2.1.101, using /model opus sets the context window to 200k tokens instead of 1M. Using /model with no arguments (selecting the default) correctly sets 1M.

Both resolve to claude-opus-4-6, but the opus alias doesn't enable the 1M context flag.

RAW_BUFFERClick to expand / collapse

Description

On a Max plan with Claude Code v2.1.101, using /model opus sets the context window to 200k tokens instead of 1M. Using /model with no arguments (selecting the default) correctly sets 1M.

Both resolve to claude-opus-4-6, but the opus alias doesn't enable the 1M context flag.

Steps to reproduce

  1. Be on a Max plan with Claude Code v2.1.101
  2. Run /model (no args) → selects "Opus 4.6 (1M context) (default)" → /context shows 1M tokens
  3. Run /model opus → selects "Opus 4.6" → /context shows 200k tokens
  4. Run /model (no args again) → back to 1M

Expected behavior

/model opus should resolve to the same 1M context window as the default Opus 4.6 selection on Max plans.

Additional context

  • Having "model": "opus" in settings.json also causes every new session to start at 200k instead of 1M
  • The opusplan alias also uses 200k (which may be expected since it falls back to Sonnet, but switching back to opus stays at 200k)
  • Platform: Windows 11
  • Claude Code version: 2.1.101

extent analysis

TL;DR

The issue can be worked around by using the /model command without arguments to select the default Opus 4.6 model, which correctly sets the context window to 1M tokens.

Guidance

  • Verify that the issue is specific to the opus alias by comparing the behavior with the default model selection using /model.
  • Check the settings.json file to ensure that the "model" setting is not overriding the context window size.
  • Test the opusplan alias to see if it also exhibits the same behavior, and if switching back to opus changes the context window size.
  • Consider using the default model selection method (/model) instead of the opus alias to ensure the correct context window size.

Example

No code snippet is provided as the issue does not require a code-level fix.

Notes

The issue seems to be specific to the opus alias and the settings.json file. The workaround provided should resolve the issue, but the root cause of the problem may require further investigation.

Recommendation

Apply workaround: Using the /model command without arguments to select the default Opus 4.6 model is a reliable way to ensure the correct context window size of 1M tokens.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

/model opus should resolve to the same 1M context window as the default Opus 4.6 selection on Max plans.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING