Skip to content

feat(opencode): enable 1M context + adaptive thinking for Opus 4.6 (#150) - #152

Merged
randomm merged 1 commit into
devfrom
feat/issue-150-opus-1m-context
Feb 6, 2026
Merged

feat(opencode): enable 1M context + adaptive thinking for Opus 4.6 (#150)#152
randomm merged 1 commit into
devfrom
feat/issue-150-opus-1m-context

Conversation

@randomm

Copy link
Copy Markdown
Owner

Summary

Minimal port of upstream anomalyco#12338 to enable 1M context window and adaptive thinking for Claude Opus 4.6.

Changes

  • Added context-1m-2025-08-07 and adaptive-thinking-2026-01-28 beta headers to Anthropic provider
  • Added Opus 4.6 model detection (claude-opus-4.6 / claude-opus-4-6)
  • Opus 4.6 uses effort-based adaptive thinking (high/max) instead of fixed budgetTokens
  • No dependency changes required

Testing

  • TypeScript typecheck passes
  • All 1308 tests pass
  • Manual testing needed: Opus 4.6 with >200k tokens

Upstream Reference

Fixes#150

)
- Add context-1m-2025-08-07 beta header to Anthropic provider
- Add adaptive-thinking-2026-01-28 beta header
- Add Opus 4.6 detection with effort-based adaptive thinking
- Older models continue using budgetTokens-based thinking
@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@randomm
randomm merged commit 43f95f8 into devFeb 6, 2026
2 of 3 checks passed
@randomm
randomm deleted the feat/issue-150-opus-1m-context branch February 6, 2026 08:09
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@randomm