# 文档变更批量分析
## 1. 总体概要
本次更新宣布了两个新模型(`claude-fable-5-2` 和 `claude-mythos-5-2`)、大量新的 API 错误类型(compaction 和 thread 相关),并增强了 hooks、监控遥测和桌面端 SSH 策略控制能力,同时清理了多处过时的最低版本要求。
## 2. 关键主题
- **新模型发布**:`claude-fable-5-2`(编码/企业/科学)和 `claude-mythos-5-2`(网络安全/生命科学研究,需验证计划)已加入 Messages API 所有端点
- **Compaction 错误体系**:新增 9 种 compaction 相关错误类型(签名无效、内容不匹配、块位置错误、工具引用过多等),表明 compaction 功能正在成熟
- **Thread 错误体系**:新增 4 种 thread 延续错误(已继续、进行中、指纹不匹配、未找到),为 thread 多轮对话提供更精确的错误处理
- **Hooks 增强**:MCP 工具返回过大时的错误处理说明;Cowork 会话中 `updatedToolOutput` 对 `AskUserQuestion`/`ExitPlanMode` 的忽略规则;权限规则解析字段 `toolName`/`ruleContent` 的文档化
- **监控遥测扩展**:`OTEL_METRICS_INCLUDE_*` 变量现在同时控制 metrics 和 events;`app.entrypoint` 新增 `claude-desktop`、`claude-desktop-3p`、`remote`、`remote_desktop`、`remote_mobile` 等值;新增跨端点活跃用户计数指导
- **版本门槛清理**:移除了多处 "Requires v2.1.221/222/223/224" 限制,说明这些功能已成为基线
- **Vertex 快速模式**:v2.1.322 在 Vertex global/us/eu 区域新增 fast mode
## 3. 影响等级:**Medium**
**理由**:新模型和大量新错误类型对 API 消费者有直接影响,但无破坏性变更;hooks 和监控的增强是增量式的,不需要修改现有代码;版本要求的移除对开发者是纯正面影响。
## 4. 开发者行动项
- **评估新模型适用场景**:如果涉及大规模编码/企业工作流,考虑 `claude-fable-5-2`;如需网络安全/生命科学领域的高能力模型,申请 Mythos 验证计划
- **处理新增 API 错误**:在 Messages API 集成中增加对 compaction 和 thread 错误码的识别与重试逻辑(特别是 `compaction_unavailable` 和 `thread_continue_in_flight`)
- **更新 hooks 逻辑**:若使用 MCP 工具 hook,增加对工具返回过大错误的处理;若在 Cowork 环境中使用 `PostToolUse` hook 修改 `AskUserQuestion`/`ExitPlanMode` 输出,需知该修改会被忽略
- **优化监控看板**:启用 `OTEL_METRICS_INCLUDE_ENTRYPOINT=true` 以区分桌面/移动/CLI 等端点来源,按新指导使用 `claude_code.user_prompt` 事件计算活跃用户数而非依赖 `session.count`
💭 Model Reasoning
Let me analyze these documentation changes across 18 pages to identify the key themes and impacts.
Key changes I see:
1. **New models announced**: `claude-fable-5-2` and `claude-mythos-5-2` added to the API messages documentation across multiple endpoints (messages, count_tokens, batches/create). Fable is for coding/enterprise/sciences, Mythos is for cybersecurity/life sciences research.
2. **Version requirement removals**: Several pages removed minimum version requirements (e.g., "Requires Claude Code v2.1.224 or later", "Requires v2.1.221", "Requires v2.1.222 or later", "Requires v2.1.223 or later"). This suggests the features have been available long enough that version gates are no longer needed.
3. **Hooks enhancements**:
- New documentation about MCP tool hook errors when tool answers are too large
- `updatedToolOutput` behavior in Cowork cloud sessions (ignored for AskUserQuestion/ExitPlanMode)
- Permission rule parsing in hooks (`toolName` and `ruleContent`)
- `updatedMCPToolOutput` clarification - now says "which also works for built-in tools" instead of "which works for all tools"
4. **Monitoring/telemetry updates**:
- Cardinality control env vars now affect both metrics AND events (not just metrics)
- `app.entrypoint` expanded with new values: `claude-desktop`, `claude-desktop-3p`, `remote`, `remote_desktop`, `remote_mobile`
- Guidance on counting active users vs sessions using `user_prompt` events
- Session count metric description simplified
5. **New API error types**:
- `AvailableToolsLimitExceededErrorDetails`
- Multiple compaction-related errors: `CompactionBlockAmbiguous`, `CompactionBlockMisplaced`, `CompactionContentMismatch`, `CompactionIncompleteTurn`, `CompactionNothingToSummarize`, `CompactionSignatureInvalid`, `CompactionTooManyToolReferences`, `CompactionToolChangesMismatch`, `CompactionUnavailable`
- Thread-related errors: `ThreadAlreadyContinued`, `ThreadContinueInFlight`, `ThreadFingerprintMismatch`, `ThreadNotFound`
6. **Desktop SSH settings**: New note about `permissions.disableBypassPermissionsMode` or `disableAutoMode` in local managed settings affecting SSH session mode selectors.
7. **Plugin project scope clarification**: "Each collaborator also runs... once per clone" instead of just "once"
8. **New beta header**: `admin-user-sign-out-2026-10-08`
9. **Changelog**: v2.1.322 adds fast mode on Vertex in global, us, and eu regions
10. **Minor wording changes**: Various documentation clarifications and simplifications.
Let me categorize the impact level. The new models and new API error types are significant for API users. The hooks changes are important for hook developers. The monitoring changes affect observability setups. Overall this is Medium impact - important new features but not breaking.