claude-sonnet-4-6 reports context_window_size: 200000 in statusline data instead of 1000000

Resolved 💬 3 comments Opened Mar 27, 2026 by choobs96 Closed Mar 30, 2026

Bug

claude-sonnet-4-6 reports context_window_size: 200000 in the status line JSON data, even though the model's actual context window is 1,000,000 tokens.

Status line data received

{
  "model": {
    "id": "claude-sonnet-4-6",
    "display_name": "Sonnet 4.6"
  },
  "context_window": {
    "context_window_size": 200000,
    "used_percentage": 62,
    "remaining_percentage": 38
  }
}

Expected

context_window_size should be 1000000 for claude-sonnet-4-6.

Additional notes

  • claude-opus-4-6 appears to work correctly — its display_name is "Opus 4.6 (1M context)" which allows third-party statusline tools to infer the correct window size as a fallback
  • claude-sonnet-4-6's display_name is just "Sonnet 4.6" with no context size hint
  • Both the incorrect context_window_size value and the missing hint in display_name cause third-party tools (e.g. ccstatusline) to display inflated context usage percentages (~5× too high)

Environment

  • Claude Code version: 2.1.84
  • Model: claude-sonnet-4-6
  • Platform: macOS

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗