Skip to content

fix(acp): update Claude Code context window from 200K to 1M tokens#383

Merged
CSRessel merged 2 commits intodevfrom
fix-opus-context-window-1m
Mar 16, 2026
Merged

fix(acp): update Claude Code context window from 200K to 1M tokens#383
CSRessel merged 2 commits intodevfrom
fix-opus-context-window-1m

Conversation

@CSRessel
Copy link
Copy Markdown
Collaborator

Summary

Generated with Nori

  • Update Claude Code default context window size from 200K to 1M tokens to reflect Claude Opus 4.6's actual context window
  • Update doc comment in AgentKind::context_window_size()
  • Add regression test test_claude_code_context_window_is_1m

Test Plan

  • cargo test -p codex-acp — all 372 unit tests + 16 integration tests + 3 doc tests pass
  • cargo test -p nori-tui — all 905 tests pass (no snapshot or percentage breakage)
  • just fix -p codex-acp — clippy clean
  • just fmt — formatting clean

Share Nori with your team: https://www.npmjs.com/package/nori-skillsets

Claude Opus 4.6 defaults to a 1M token context window. The previous
200K value was outdated and caused inaccurate context percentage
calculations in the TUI.
@CSRessel CSRessel merged commit 4e7e59e into dev Mar 16, 2026
3 checks passed
@CSRessel CSRessel deleted the fix-opus-context-window-1m branch March 16, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant