[Bug] Anthropic API: claude-sonnet-5 context window reported as 200k instead of 1M tokens
Open 💬 0 comments Opened Jul 9, 2026 by jakeliv-nd
Bug Description
Claude Code v2.1.195: for model.id "claude-sonnet-5", statusline JSON reports context_window.context_window_size=200000 (should be 1000000 per docs), causing used_percentage to incorrectly cap at 100% and exceeds_200k_tokens=[REDACTED] to fire at ~20-38% actual usage — repro: any sonnet-5 session over 200k input tokens, e.g. total_input_tokens=[REDACTED] → used_percentage=100 (should be ~38).
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.1.195
- Feedback ID: 38caa5d9-bdd3-4182-9537-21fc60a7a162
Errors
[]