# 文档变更批量分析
## 1. 总体摘要
本次更新涉及 48 个页面,主要包含 Claude Code 桌面应用的 UX 大幅改写(分屏视图、任务建议、面板操作)、MCP 服务器网关认证支持(v2.1.299+)、登录认证排错指南新增,以及大量代码块语法标注从 `json`/`sse` 统一迁移为 `text` 的渲染优化。
## 2. 关键主题
- **桌面应用交互重塑**:分屏视图快捷键语义反转(Option+点击=并排,Cmd+点击=新窗口)、新增 `Cmd+Ctrl+W` 退出分屏、任务建议卡片 UI 全面重设计(Start / Do it here / Options / Start all)
- **面板与复制操作改进**:面板打开方式文档重写、"Copy path"升级为 Copy 子菜单(绝对路径/相对路径/文件名)
- **MCP 网关 Header 认证**:v2.1.299+ 支持在 OAuth 登录请求中携带自定义 Header(如 `X-API-Key`),解决网关拦截问题
- **MCP 断连重试细化**:headless/SDK 场景下区分瞬态错误(后台重试约 30 分钟)与需要重新登录(`needs-auth` 状态,需 `claude mcp login`)
- **登录排错新章节**:覆盖登录过期、组织限制(`forceLoginOrgUUID`)、强制登录方式(`forceLoginMethod`)、旧版本行为
- **Devcontainer 认证持久化**:补充 `CLAUDE_CONFIG_DIR` 必须设置的排查说明,防止重建后重复首次设置
- **Computer Use 门槛**:macOS 上现要求 macOS 14+
- **代码块语法迁移**:`json`/`sse`/`jsonl` → `text`(+`wrap`),纯渲染层面变更,不影响功能
- **措辞与格式微调**:数字千位分隔符、语法修正、`Enable`→`Allow`、URL 末尾斜杠等
## 3. 影响级别:**Medium**
**理由**:桌面应用的分屏快捷键语义反转和任务建议 UI 重写会直接影响用户肌肉记忆和工作流;MCP 网关 Header 支持是需要版本升级的功能性变更;Computer Use 的 macOS 14 门槛限制部分用户。但无破坏性 API 变更,大量页面仅涉及文档渲染或措辞调整。
## 4. 开发者行动项
- **更新桌面应用操作习惯**:分屏快捷键已反转——`Option+点击` = 并排分屏,`Cmd+点击` = 新窗口;新增 `Cmd+Ctrl+W`(macOS)/ `Ctrl+Alt+W`(Windows)退出分屏
- **MCP 网关认证场景**:若 MCP 服务器位于需要自定义 Header 的网关后,升级至 v2.1.299+ 并在服务器配置中设置 `headers` 或 `headersHelper`
- **Devcontainer 用户检查**:确认 `devcontainer.json` 的 `containerEnv` 正确设置 `CLAUDE_CONFIG_DIR`,否则重建后 `.claude.json` 丢失导致重复首次设置
- **macOS Computer Use**:确认系统版本 ≥ macOS 14,否则功能不可用
- **登录问题排查**:若登录后仍反复弹出登录提示,按新增排错章节检查——过期、`forceLoginOrgUUID`/`forceLoginMethod` 限制、或版本低于 v2.1.290
💭 Model Reasoning
Let me analyze the documentation changes across all 48 pages to provide a comprehensive summary.
Let me categorize the changes:
1. **desktop.md** - Major changes:
- Pane arrangement instructions rewritten (more detailed)
- "Copy path" changed to "Copy" submenu (absolute path, relative path, filename)
- New keyboard shortcut mapping: Cmd+Ctrl → Ctrl+Alt
- New shortcut: Cmd+Ctrl+W to take focused session out of split view
- Computer use now requires macOS 14 or later
- Split view session behavior changed: Option+click for side-by-side, Cmd+click for new window (was reversed before)
- Task suggestions UI completely redesigned with new buttons (Start, Do it here, Options, Start all)
2. **devcontainer.md** - Auth persistence clarification:
- Clarified that `CLAUDE_CONFIG_DIR` is needed to keep `.claude.json` inside the volume
- Added note about checking `containerEnv` if setup repeats after rebuild
3. **iam.md** - Login improvements:
- Expanded login skip conditions (API key, earlier sign-in)
- New section: "Login prompt still appears after an earlier sign-in" with troubleshooting (expired, org restriction, required login method, older version)
4. **mcp.md** - MCP server changes:
- Expanded reconnection behavior for headless/SDK sessions (transient errors vs auth needed)
- New section: Sign in to MCP server behind a gateway that requires a header (v2.1.299+)
- Background command output section restructured for MCP clients
- `ask` tool control: prompt in terminal no longer has "remember choice" option
5. **monitoring-usage.md** - `has_hooks` field now includes mods
6. **settings.md** - "sign-in session" → "account details" in `.claude.json` description
7. **get-started.md** - Minor: URL trailing slash, code block language changes (json→text)
8. **Models/overview.md** - Minor wording change
9. **Migration guide** - Punctuation fixes (periods)
10. **Pricing** - Table formatting changes (adding "USD" to CCU prices)
11. **API overview** - Minor wording/link changes
12. **Rate limits** - Code block language change (json→text)
13. **Beta headers** - Code block language change
14. **Service tiers** - Code block language change
15. **Errors** - Code block language changes, link text improvement
16. **Build-with-claude overview** - "Enable" → "Allow" for programmatic tool calling
17. **Text generation** - Same "Enable" → "Allow" change
18. **Vision** - Number formatting (commas in large numbers), FAQ wording
19. **PDF support** - Code block language change, step description simplified
20. **Streaming** - Code block language changes (sse→text), wording improvement for thinking section
21. **Prompt caching** - Code block language changes, grammar fix ("caches" instead of "cache"), formatting fix
22. **Batch processing** - Code block language changes, imperative mood fix
23. **Context editing** - Code block language changes
24. **Citations** - Code block language changes, grammar fix ("and those citations" clarification)
25. **Search results** - Code block language changes
Major patterns:
1. **Code block language changes**: Many pages changed from `json`/`sse`/`jsonl` to `text` (with optional `wrap`) - this is a documentation rendering change, not a functional change
2. **Desktop app UX overhaul**: Significant changes to pane management, split view, task suggestions
3. **MCP improvements**: Gateway header support, better reconnection docs, background command docs
4. **Login/auth troubleshooting**: New section for persistent login prompt issues
5. **Devcontainer persistence**: Clarified setup for keeping auth across rebuilds
6. **macOS 14 requirement**: Computer use now requires macOS 14+
7. **Minor wording/formatting**: Various grammar, punctuation, number formatting fixes
Impact assessment: Medium-High. The desktop.md changes are significant for developers using the desktop app (split view behavior changed, new task UI, macOS requirement). The MCP gateway header support and login troubleshooting are also notable. The code block language changes are cosmetic only.
Action items:
1. Update desktop app workflows - split view keyboard shortcuts changed (Cmd+click is now new window, Option+click is side-by-side)
2. If using computer use on macOS, ensure macOS 14+
3. For MCP servers behind gateways requiring headers, upgrade to v2.1.299+ and configure headers
4. For devcontainer users, verify CLAUDE_CONFIG_DIR is set to prevent repeated setup
5. Review new login troubleshooting steps if experiencing persistent login prompts