Skip to content

fix(opencode): fix 1M context for Opus (#154) - #156

Merged
randomm merged 3 commits into
devfrom
fix/issue-154-opus-1m-context
Feb 6, 2026
Merged

fix(opencode): fix 1M context for Opus (#154)#156
randomm merged 3 commits into
devfrom
fix/issue-154-opus-1m-context

Conversation

@randomm

Copy link
Copy Markdown
Owner

Fixes compaction token counting to only count input tokens. Fixes#154

)
- Fix compaction to count only input tokens (not output/thinking)
- Context limit override for Anthropic models with context-1m header
- Restore adaptive-thinking header and effort-based thinking for Opus 4.6
)
- Fix compaction to count only input tokens (not output/thinking)
- Add /upstream-gap custom command
@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 d9d4655 into devFeb 6, 2026
2 of 3 checks passed
@randomm
randomm deleted the fix/issue-154-opus-1m-context branch February 6, 2026 08:40
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