1. Overall Summary (整体摘要)
版本 2.1.126 主要增强了企业级网关集成与 Windows/PowerShell 的支持体验,修复了多项连接稳定性与安全漏洞,并引入了项目数据清理命令以提升开发者的控制力。
2. Key Themes across pages (关键主题)
* **企业级与网关集成增强**:`/model` 选择器现在能直接从 Anthropic 兼容网关的 `/v1/models` 端点获取模型列表;优化了托管部署下的分析策略。
* **Windows 与 PowerShell 体验大幅提升**:改进了 PowerShell 7 的检测机制,使其成为首选 Shell;修复了 Windows 下剪贴板内容的隐私泄露问题(不再暴露给 EDR/SIEM)以及中日韩文本的乱码渲染问题。
* **连接性与授权稳定性修复**:解决了在 WSL2、SSH 容器及 IPv6 环境下的 OAuth 登录超时与回调失败问题;修复了令牌并发写入导致的竞态条件。
* **UX 与开发者工具改进**:新增 `claude project purge` 命令用于彻底清理项目状态;自动模式下的权限检查阻塞会有红色提示;修复了 VS Code/Cursor 终端下的滚动问题。
* **安全性与漏洞修复**:修复了 `allowManagedDomainsOnly` 在特定配置下被忽略的安全问题;增强了图片粘贴处理机制,防止大图导致会话中断。
3. Impact level (影响级别)
**Medium** (中)
尽管没有破坏性变更,但本次更新包含重要的安全修复(托管域权限和 Windows 剪贴板隐私)、关键的平台兼容性改进(Windows/WSL2)以及影响用户体验的多个 Bug 修复。
4. Action items for developers (开发者行动项)
* 如果你使用 Windows,建议更新以获得更好的 PowerShell 支持并修复剪贴板隐私问题。
* 若在 WSL2、SSH 或容器环境中遇到 OAuth 登录困难,请立即更新。
* 尝试使用新增的 `claude project purge [path] --dry-run` 命令来管理旧项目的状态数据。
* 检查企业环境下的 `allowManagedDomainsOnly` 配置,确保安全策略按预期生效。
* 如果你的工作流涉及通过自定义网关使用 Claude,请测试新的 `/model` 模型选择器功能。
💭 Model Reasoning
1. **Analyze the Request:**
* **Role:** World-class programmer, expert in dev tools/docs.
* **Task:** Analyze documentation changes in a single batch (Changelog).
* **Input:** Diff for `CHANGELOG.md.md` (version 2.1.126 vs previous 2.1.123).
* **Output Format:** Markdown with specific sections: Overall Summary, Key Themes, Impact Level, Action Items.
* **Language:** Chinese (as requested in the initial prompt "请用中文回复").
2. **Analyze the Input Data (The Diff):**
* **File:** `CHANGELOG.md.md`.
* **Version:** `2.1.126`.
* **Change Count:** 34 lines added.
* **Specific Changes:**
* *Gateway Integration:* `/model` picker uses gateway's `/v1/models` endpoint.
* *Project Management:* Added `claude project purge [path]` command to clear state (transcripts, tasks, etc.). Supports flags like `--dry-run`, `-y`.
* *Permissions:* `--dangerously-skip-permissions` now bypasses prompts for protected paths (`.claude/`, `.git/`, etc.), though catastrophic removal still prompts.
* *Auth/OAuth:* Terminal paste support for OAuth code (WSL2, SSH), fixed timeout/login errors on slow/proxied connections/IPv6.
* *Telemetry:* Added `claude_code.skill_activated` event with `invocation_trigger` attribute.
* *UI/UX:* Spinner turns red on permission stall. Fixed text rendering (JP/KR/CN) on Windows. Fixed scrolling in VS Code/Cursor. Fixed `Ctrl+L` to redraw screen instead of clearing input.
* *Deployment:* Host-managed deployments no longer auto-disable analytics on Bedrock/Vertex/Foundry.
* *Windows Support:* Detects PS7 (MSI, .NET tool). PowerShell is primary shell when tool is enabled. Clipboard writes fix security issue (EDR/SIEM visibility) and size limit.
* *Read Tool:* Removed malware assessment reminder (reduced false refusals).
* *Security:* Fixed `allowManagedDomainsOnly` / `allowManagedReadPathsOnly` ignore issue.
* *Bug Fixes (General):* Image pasting >2000px (downscaled), OAuth race conditions, "Stream idle timeout" (Mac sleep, long thinking), Agent SDK hang (malformed tool names), deferred tools availability, plan-mode tools, `/plugin` uninstall status, `/remote-control` connection feedback.
3. **Synthesize the Analysis:**
* **Overall Summary:** This release focuses on improving enterprise and gateway integrations, enhancing Windows/PowerShell support, and resolving numerous stability/UX bugs. It adds a project purge command and fixes critical security and connectivity issues.
* **Key Themes:**
* *Gateway & Enterprise Support:* Model picker integration with gateways, host-managed deployment analytics handling.
* *Windows & Shell Enhancements:* Better PowerShell detection, security fixes for clipboard, PowerShell as primary shell.
* *Reliability & Connectivity:* OAuth improvements for remote environments (WSL2, containers), fixing timeouts, and race conditions.
* *UX & Developer Experience:* New purge command, spinner color changes, scroll fixes, input behavior fixes.
* *Bug Cleanup:* Fixing image handling, rendering issues, and agent SDK hangs.
* **Impact Level:**
* *Medium.* There are significant fixes (OAuth, Windows security, Gateway support) but they are largely additive or corrective, not breaking changes. The "Security" fix regarding managed domains is important but likely specific to enterprise setups. The Windows clipboard fix resolves a privacy/EDR issue.
* **Action Items:**
* Check if your workflow benefits from the new `claude project purge` command.
* If using Windows, verify PowerShell 7 detection and updated clipboard behavior.
* If using a custom gateway, verify the new `/model` picker behavior.
* Review `allowManagedDomainsOnly` security fix if you use managed settings.
* Update if you faced issues with OAuth on WSL2/SSH or Japanese text rendering on Windows.
4. **Draft the Response in Chinese:**
* *Summary:* 版本 2.1.126 主要增强了企业级网关集成和 Windows/PowerShell 支持,修复了多项连接稳定性与安全漏洞,并新增了项目清理命令。
* *Themes:*
* 网关与企业集成
* Windows 与 PowerShell 体验优化
* 连接性与授权修复 (OAuth, WSL2, SSH)
* 稳定性与 Bug 修复
* 开发者工具增强
* *Impact:* Medium。虽然没有破坏性变更,但包含重要的安全修复和平台兼容性改进。
* *Action Items:* (Translate the bullets above).
5. **Refine the Output:** Ensure the tone is professional ("world-class programmer") and concise.
* *Refining "Themes":* Grouping similar items helps readability.
* *Gateway & Integration:* `/model` picker logic.
* *Windows/Shell:* PowerShell primary, clipboard security, text rendering.
* *Connectivity:* OAuth fixes for non-standard environments.
* *UX:* Purge command, spinner colors.
* *Refining "Impact":* "Medium" fits best. The "Security" tag in the changelog is notable.
* *Refining "Action Items":* Make them actionable for a dev.
6. **Final Polish (Self-Correction during drafting):**
* Make sure to mention the specific command `claude project purge` as it's a new feature.
* Highlight the clipboard security fix on Windows as it's a privacy concern.
* Ensure the translation is natural (e.g., "Gateway" -> "网关", "PowerShell" stays as "PowerShell").
7. **Final Output Generation** (matches the provided good response).