←新闻详情

Claude Code:GitHub Releases更新于 10月25日 20:49

Claude Code v2.1.310 发布

v2.1.310

AI 导读

Claude Code v2.1.310 新增 Monitor 工具与插件监控,覆盖 Bedrock、Vertex 和 Foundry,并在禁用遥测或非必要流量时同样可用,长时间前台休眠也被阻止。该版本修复了部分网关拒绝 effort-2025-11-24 beta 值或对话中途 system 消息导致的请求失败,Claude Code 现在会去掉这些内容后重试。此外还修复了 cleanupPeriodDays 设为极大值时后台清理误删近期文件(如粘贴的图片)等问题。

正文

## What's changed

- Added the Monitor tool and plugin monitors on Bedrock, Vertex, and Foundry, and when telemetry or nonessential traffic is disabled; long foreground sleeps are now blocked there too - Fixed requests failing behind some gateways and compatible servers that reject the `effort-2025-11-24` beta value or mid-conversation system messages; Claude Code now retries without them - Fixed background cleanup deleting some recent files, such as pasted images, when `cleanupPeriodDays` is set to a very large value - Fixed compaction after a "Prompt is too long" error keeping too much of a conversation with dense text, such as base64 or SVG, so the next request could fail again - Fixed file read permission prompts not showing where a symbolic link leads - Fixed a question's auto-continue timeout firing the moment the external editor closed after a long edit - Windows: Fixed PreToolUse and PermissionRequest hooks letting a tool call through when Git Bash is missing and the hook's command is only quoted strings, such as a quoted path - Improved auto mode's prompt before the first read outside the working directories: it now says when blocking those reads makes shell commands ask for permission - Improved memory use of non-interactive sessions (`-p`, Agent SDK) during compaction when the transcript file is very large - Improved a mod's `Image` to draw inside tmux with `allow-passthrough` and `focus-events` on, in kitty, Ghostty, and iTerm2 3.5+ with fullscreen rendering, where it showed only its `alt` text - Linux: Improved `/sandbox` and the sandbox startup warning to name Ubuntu's AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox - Changed the error for an MCP tool call that times out in a non-interactive session while the server's elicitation is unanswered: it now tells Claude that no answer came and not to repeat the call - [VSCode] Fixed pressing Enter on the plan review card's "Send feedback and keep planning" button approving the plan instead of sending your comments back - [VSCode] Fixed the panel showing "Something went wrong" after "Switch branch & continue" on a cloud session opened from Session history's Web tab - [Cloud sessions] Added Claude Code cloud sessions and Remote Control permissions to Enterprise custom roles, so Owners can control access to each by role - [Cloud sessions] Added a Choose file button to load a cloud environment's setup script from a file - [Cloud sessions] Fixed failed saves and archives in the cloud environment edit dialog showing no error inside the dialog - [Cloud sessions] Fixed failed routine API token actions showing only a toast; the error now appears in the routine edit dialog - [Cloud sessions] Improved the session start checklist to show a cloud environment's setup script output in a scrolling box - [Cloud sessions] Changed turning on Cloud sessions or Remote Control in admin settings to ask for confirmation and list the custom roles that have that permission - [Cloud sessions] Changed the cloud environment dialog to open network access, setup script and environment variables from rows instead of listing every editor at once - [Claude Tag] Fixed Claude Tag treating `!` commands such as `!restart` and `!help` as ordinary messages when sent in bold, italic or strikethrough - [Claude Tag] Fixed Claude Tag admin channel and workspace pages being replaced by a load error when a background refresh of the bundle list fails - [Claude Tag] Fixed Claude Tag's spend limits page in admin settings reporting that no channels match a filter while channel names are still loading - [Code Review] Fixed the Code Review admin section hiding its repositories and switches after a failed refresh of the repository list - [Code Review] Improved the Code Review admin section to retry the first load and show one Try again banner when it still fails

来源

Claude Code:GitHub Releases