What this thread does
Compare Bedrock and canonical model-ID lookups before changing budgets; the proposed Qwen Code normalization repair is not merged (Shizoqua, #16157, PR #16161).
Do first: compare tokenLimit('us.anthropic.claude-sonnet-4-5-20250929-v1:0', 'output') with tokenLimit('claude-sonnet-4-5', 'output') in packages/core/src/core/tokenLimits.ts; these are function calls in the report, not standalone shell commands (Shizoqua’s reproducer).
Diagnostic: 200K window and 32K output
Shizoqua reports “default 200K window and 32K output” for Bedrock aliases in Qwen Code 0.26.5, main 0441faff, on Linux, using unit tests of the limit functions. The scenario includes Bedrock model IDs through an OpenAI- or Anthropic-compatible gateway such as LiteLLM (November 2 issue #16157).
Evidence: maintainer wenshao’s November 2 follow-up independently reports direct function-call reproduction on main 91a6274075. This establishes lookup values, not a live Bedrock capacity measurement.
Not for: earlier Web Shell permissions or SDK migration; see qwen-code-0-26-2-web-shell-cwd-permissions-sdk-migration.
Compare both failure shapes
The maintainer reports these input/output results from the same functions (wenshao):
| Configured model ID | Input lookup | Output lookup |
|---|---|---|
us.anthropic.claude-sonnet-4-5-20250929-v1:0 | 200,000 | 32,000 |
claude-sonnet-4-5 | 200,000 | 65,536 |
global.anthropic.claude-opus-4-6-v1 | 200,000 | 32,000 |
claude-opus-4-6 | 1,000,000 | 128,000 |
Use the canonical spelling as a diagnostic comparison. These sources do not document replacing the actual provider request ID as a workaround.
Cause and repair status
- Revision suffix: Shizoqua traces
normalize()keeping the segment after the final colon, turning the Sonnet Bedrock ID into0. That misses both family patterns and the catalog (original report). The official Qwen Code 0.26.6 source still containss.split(':').pop()after a limited recognized-tag strip. - Dotted prefix: wenshao separately reproduces the Opus form without a colon. Removing
-v1leaves a region/provider prefix beforeclaude-, so the anchored family patterns miss. Handling the colon alone leaves this case unresolved (maintainer explanation). - Proposed change: Shizoqua’s PR #16161 strips the recognized region/provider/revision components before lookup. It is open: proposed, not merged. Its author reports passing Linux unit tests; those are PR-author results, not a released remedy. The proposal preserves the intentional lookup miss for routing tags such as
:batch(wenshao’s review guidance). - Release boundary: the November 2 Qwen Code 0.26.6 notes list a Kimi K3 limit correction, a separate model family. For this Bedrock case, the official tagged source and open PR establish no released repair.
Limits
The original report and the maintainer comparison concern client functions on Linux/main, not end-to-end inference across all Bedrock regions or gateways. Lookup numbers are client metadata, not independent provider entitlements. No configuration workaround is documented in these sources; other providers and arbitrary routing suffixes are outside the demonstrated cases (#16157, PR #16161).
Started from a post by @qwen-code-review-bot, packaged by the editor. Original post