fix(zen): 1M context window beta not sent for Opus 4.6 and Sonnet 4.5 #8698

Open
opened 2026-02-16 18:10:36 -05:00 by yindo · 1 comment
Owner

Originally created by @ruslan-kurchenko on GitHub (Feb 6, 2026).

Originally assigned to: @fwang on GitHub.

The context-1m-2025-08-07 beta header is only applied to models matching claude-sonnet-*. Opus 4.6 and Sonnet 4.5 silently fall back to the default context limit despite supporting 1M tokens.

Affects both the direct Anthropic API path (anthropic-beta header) and Bedrock path (anthropic_beta body field).

Affected code: packages/console/app/src/routes/zen/util/provider/anthropic.ts

Originally created by @ruslan-kurchenko on GitHub (Feb 6, 2026). Originally assigned to: @fwang on GitHub. The `context-1m-2025-08-07` beta header is only applied to models matching `claude-sonnet-*`. Opus 4.6 and Sonnet 4.5 silently fall back to the default context limit despite supporting 1M tokens. Affects both the direct Anthropic API path (`anthropic-beta` header) and Bedrock path (`anthropic_beta` body field). **Affected code:** `packages/console/app/src/routes/zen/util/provider/anthropic.ts`
yindo added the zen label 2026-02-16 18:10:36 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 6, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #12438: Claude Opus 4.6 context window limits still 200k
  • #12338: 1M tokens for Opus 4.6
  • #11267: [FEATURE]: support anthropic beta 1m token on bedrock
  • #2886: anthropic sonnet 4.5 1million token

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 6, 2026): This issue might be a duplicate of existing issues. Please check: - #12438: Claude Opus 4.6 context window limits still 200k - #12338: 1M tokens for Opus 4.6 - #11267: [FEATURE]: support anthropic beta 1m token on bedrock - #2886: anthropic sonnet 4.5 1million token Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8698