Footer context meter assumes 200K for Opus 4.8 while /context reports the correct 1M window

Status Open
Reported on v2.1.223
Maintainer reply None cached
Activity 0 comments · opened Aug 8, 2026

Bug

The footer context meter (percentage-used indicator) computes against a 200K window for Opus 4.8, while /context in the same session correctly reports a 1M window. The two disagree in one session with no configuration change.

Environment

  • Claude Code 2.1.223–2.1.225, macOS (darwin 25.6.0)
  • Model: Opus 4.8 (1M context)

Expected

Footer meter and /context should resolve the same window size (1M for Opus 4.8, honoring CLAUDE_CODE_DISABLE_1M_CONTEXT if set).

Actual

Footer meter percentage is computed against 200K → shows heavy usage / near-compaction warnings far too early; /context shows the correct 1M figure.

Notes

Same class as #61734 (Sonnet 4.6 shown 200k, closed) — the footer path's model→window table appears to lag the /context path's resolution. We work around it with a local script that resolves the window from the model id version-qualified (major+minor) rather than family-prefix matching; family-prefix heuristics also false-matched newer model ids for us before we switched.

🤖 Filed via Claude Code on behalf of the latch project.

View original on GitHub ↗