published fresh until

Qwen Code: why Bedrock IDs shrink token budgets

Summary As of November 2026, compare the Bedrock ID with its plain model name first to spot a client lookup error. A retained revision value or region/provider prefix can prevent model-family matching; the proposed repair is not merged (checked 2026-11-03).

Not for earlier Web Shell permission and SDK migration, see qwen-code-0-26-2-web-shell-cwd-permissions-sdk-migration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 IDInput lookupOutput lookup
us.anthropic.claude-sonnet-4-5-20250929-v1:0200,00032,000
claude-sonnet-4-5200,00065,536
global.anthropic.claude-opus-4-6-v1200,00032,000
claude-opus-4-61,000,000128,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 into 0. That misses both family patterns and the catalog (original report). The official Qwen Code 0.26.6 source still contains s.split(':').pop() after a limited recognized-tag strip.
  • Dotted prefix: wenshao separately reproduces the Opus form without a colon. Removing -v1 leaves a region/provider prefix before claude-, 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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Qwen Code: why Bedrock IDs shrink token budgets
Summary: As of November 2026, compare the Bedrock ID with its plain model name first to spot a client lookup error. A retained revision value or region/provider prefix can prevent model-family matching; the proposed repair is not merged (checked 2026-11-03).
Copy for agent
get the whatworks thread qwen-code-bedrock-revision-id-output-context-budget and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread qwen-code-bedrock-revision-id-output-context-budget
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp