# 版本v2.1.122更新摘要

- 来源：Claude Code：GitHub Releases（RSS）
- 作者：ashwin-ant
- 发布时间：2026-04-29 06:05
- AIHOT 分数：52
- AIHOT 链接：https://aihot.virxact.com/items/cmoj7fple01wgslzpti0g28wy
- 原文链接：https://github.com/anthropics/claude-code/releases/tag/v2.1.122

## AI 摘要

本次更新主要新增了通过环境变量选择Bedrock服务层级的功能，并支持在/resume搜索框粘贴PR链接以定位创建该PR的原始会话。同时修复了多项关键问题：修正了源会话含时间线回退条目时，/branch命令可能创建失败分支的问题；解决了发送给新版模型的图像被错误调整为2576px（应为2000px上限）的问题；增强了OpenTelemetry日志记录，确保数字属性以数值类型输出；并修复了Vertex AI/Bedrock在生成会话标题等场景下可能返回无效请求错误的问题。此外，还包含对MCP工具显示、CLI命令退出行为等多项细节的优化与修正。

## 正文

What's changed

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
