2.1.122 untested · changelog-derived

Claude Code 2.1.122

**PR URL search in `/resume` and Bedrock service tier selection**: the `/resume` search now accepts GitHub PR URLs to jump directly to the session that created them, and `ANTHROPIC_BEDROCK_SERVICE_TIER` env var lets users tune Bedrock API tier (default/flex/priority) — both reduce friction in session discovery and cloud infra config.

2 new primitives 2 workflow recipes 16 fixes

New primitives

ANTHROPIC_BEDROCK_SERVICE_TIERenvironment variable

Select Bedrock service tier (`default`, `flex`, or `priority`), sent as the `X-Amzn-Bedrock-Service-Tier` header

Added `ANTHROPIC_BEDROCK_SERVICE_TIER` environment variable to select a Bedrock service tier (`default`, `flex`, or `priority`), sent as the `X-Amzn-Bedrock-Service-Tier` header
/resume PR URL searchcommand capability

Paste a GitHub/GitLab/Bitbucket PR URL into `/resume` search box to find the session that created that PR

Pasting a PR URL into the `/resume` search box now finds the session that created that PR (GitHub, GitHub Enterprise, GitLab, and Bitbucket)

Workflow recipes

PR-indexed session recovery + Bedrock cost-tier tuning
/resume PR URL search + ANTHROPIC_BEDROCK_SERVICE_TIER env var

Multi-PR review sessions waste time rediscovering which Claude Code session created which artifact. Combined with Bedrock tier selection, agents and users can now (1) jump to a PR's originating session to inspect build logs/reasoning without re-reading chat, and (2) downgrade to flex tier mid-review to reduce cost on long verification runs, then upgrade back to priority for final iteration — enabling cost-aware session replay and resource-tuned handoffs.

An agent reviewing multiple PRs could use /resume <pr_url> to load the original session context in 1 command, inspect the diff side-by-side with the agent's reasoning, then set ANTHROPIC_BEDROCK_SERVICE_TIER=flex for a Bedrock-backed verify run, then flip back to priority for the final quality pass. This collapses the "which session created this?" friction that arises in high-volume PR batch workflows.

At-mention logging + session branching for audit trails
OpenTelemetry claude_code.at_mention log event + /branch stability fix

Agents that use @-mentions to invoke tools now have structured, observable mention resolution logged. The /branch fix (fork corruption from rewound timelines) ensures that audit trails from complex branching workflows no longer corrupt the tool-use chain. Together, they enable tracing which tool was invoked, when, and via what mention context, across session branches without data loss.

A prospecting agent that branches for each prospect variant can now audit the full mention→tool→result chain across all forks via OpenTelemetry logs, with the confidence that /branch corruption has been fixed. This is useful for compliance audits, cost attribution, and tool-use debugging in high-branching workflows.

Agentic relevance

The two new primitives (Bedrock service tier env var and PR URL search in `/resume`) target operational workflows: cloud-resource tuning for Bedrock users and session recovery when jumping between PR reviews. The 14 hardening fixes address observability, state corruption, and tool integration edge cases that reduce CLI friction and reliability in multi-tool sessions. Agents benefit most from the OpenTelemetry additions (structured at-mention logging) and ToolSearch fix (MCP tool discovery in long sessions).

Hardening & fixes (16)

  • `/mcp` now shows claude.ai connectors hidden by manually-added server duplicates, with hint to remove
  • Clarified `/mcp` message when MCP server unauthorized after browser sign-in
  • OpenTelemetry: numeric attributes on `api_request`/`api_error` events now emit as numbers, not strings
  • OpenTelemetry: added `claude_code.at_mention` log event for `@`-mention resolution
  • Fixed `/branch` fork corruption from rewound timeline entries (tool_use blocks)
  • Fixed `/model` missing Effort option for Bedrock ARNs and missing `output_config.effort`
  • Fixed Vertex AI / Bedrock `output_config: Extra inputs` error on structured-output queries
  • Fixed Vertex AI `count_tokens` 400 errors for proxy-gateway users
  • Fixed `spinnerTipsOverride.excludeDefault` not suppressing time-based spinner tips
  • Fixed ToolSearch missing MCP tools connecting after session start (nonblocking mode)
  • Fixed `!exit` / `!quit` in bash mode terminating CLI instead of running as shell command
  • Fixed image resizing to 2576px instead of correct 2000px maximum
  • Fixed remote control idle status redrawing twice/second (tmux -CC flooding)
  • Fixed assistant messages appearing blank from stale view preference
  • Fixed malformed hooks entry in `settings.json` invalidating entire file
  • Voice mode: Caps Lock keybindings now show error (terminals don't deliver Caps Lock events)

Raw changelog

## 2.1.122

- Added `ANTHROPIC_BEDROCK_SERVICE_TIER` environment variable to select a Bedrock service tier (`default`, `flex`, or `priority`), sent as the `X-Amzn-Bedrock-Service-Tier` header
- Pasting a PR URL into the `/resume` search box now finds the session that created that PR (GitHub, GitHub Enterprise, GitLab, and Bitbucket)
- `/mcp` now shows claude.ai connectors hidden by a manually-added server with the same URL, with a hint to remove the duplicate
- Clarified the `/mcp` message shown when an MCP server is still unauthorized after the browser sign-in flow
- OpenTelemetry: numeric attributes on `api_request`/`api_error` log events are now emitted as numbers, not strings
- OpenTelemetry: added `claude_code.at_mention` log event for `@`-mention resolution
- Fixed `/branch` producing forks that fail with "tool_use ids were found without tool_result blocks" when the source session contained entries from rewound timelines
- Fixed `/model` not showing the Effort option for Bedrock application inference profile ARNs, and those ARNs not receiving `output_config.effort`
- Fixed Vertex AI / Bedrock returning `invalid_request_error: output_config: Extra inputs are not permitted` on session-title generation and other structured-output queries
- Fixed Vertex AI `count_tokens` endpoint returning 400 errors for users behind proxy gateways
- Fixed `spinnerTipsOverride.excludeDefault` not suppressing the time-based spinner tips
- Fixed ToolSearch missing MCP tools that connected after session start in nonblocking mode
- Fixed `!exit` / `!quit` in bash mode terminating the CLI instead of running as a shell command
- Fixed images sent to newer models being resized to 2576px per side instead of the correct 2000px maximum
- Fixed remote control session idle status redrawing twice per second, which could flood `tmux -CC` control pipes and pause the terminal
- Fixed assistant messages appearing blank in some sessions due to a stale view preference
- Fixed a malformed hooks entry in `settings.json` no longer invalidating the entire file
- Voice mode: keybindings bound to Caps Lock now show an error since terminals don't deliver Caps Lock as a key event