← All reports

Changes on 2026-10-11

6 total changes in 3 runs

19:23 EST

🤖 AI Batch Analysis

## 文档变更分析 ### 1. 总体概述 将 IAM 文档中两处错误链接的显示文本从 `"Anthropic profile login expired"` 改为 `"expired profile login error"`,同时将其中一处冒号改为句号以改善语句结构。 ### 2. 关键主题 - **链接文本优化**:错误链接的锚点地址(`#anthropic-profile-login-expired`)未变,仅调整了显示文本,使其更符合英文语法习惯(加冠词 "an" + 描述性文本 + "error") - **语句结构修正**:将冒号分隔的复合句拆分为独立句子,提升可读性 ### 3. 影响级别:**Low** 纯粹是文档措辞和语法的微调,不涉及任何功能、API、配置或错误码的变更。链接目标完全不变,开发者点击后跳转的页面一致。 ### 4. 开发者行动项 - 无需采取任何行动,此变更仅为文档润色。
💭 Model Reasoning
Let me analyze this documentation change. The diff shows two similar changes in `iam.md`: 1. `[Anthropic profile login expired]` → `an [expired profile login error]` 2. Same change in another location Both changes are about renaming the error message reference text from "Anthropic profile login expired" to "expired profile login error" in the link text. The actual link destination (`/docs/en/errors#anthropic-profile-login-expired`) remains the same. Also, the first change splits a sentence: "Claude Code refreshes the profile's login automatically, and when refresh fails" — the colon before it was changed to a period, making it a separate sentence. Let me be precise: - Line 117: The colon after "static credential" was changed to a period, making the following clause a new sentence rather than a continuation. The link text changed from "Anthropic profile login expired" to "expired profile login error" (with "an" article added before the link). - Line 269: Same link text change from "Anthropic profile login expired" to "expired profile login error" (with "an" article added before the link). This is a minor documentation improvement - better grammar/flow and more descriptive link text. The underlying error and link target are unchanged.

📚 Claude Code

15:52 EST

🤖 AI Batch Analysis

## 文档变更分析 ### 1. 总体概要 本次更新涵盖企业 SSH 会话管控、Worktree 生命周期 Hooks 细化、以及沙箱权限边界条件三个领域,核心是为管理员提供更精细的桌面会话控制能力,并明确 Hooks 和沙箱在新增工具/场景下的行为边界。 ### 2. 关键主题 - **企业 SSH 锁定方案**:新增 `disableDesktopLocalSessions` 配置,可联合 `sshConfigs` + `sshHostAllowlist` 禁用本地会话、仅允许指定 SSH 连接,实现"仅远程开发"的管控模型 - **Worktree Hooks 场景扩展**:`WorktreeCreate`/`WorktreeRemove` 触发场景明确覆盖 `EnterWorktree`/`ExitWorktree` 工具、workflows、以及 `claude remote-control` worktree 模式;同时新增子代理/工作流完成后 worktree 不自动清理的行为说明 - **沙箱中变量赋值命令的权限穿透**:`FOO=bar npm test`、`make CC=clang`、`eval "ls"` 等因变量前置可能改变执行程序,不再自动放行,需显式 allow rule 匹配 ### 3. 影响等级:**Medium** - **非 Breaking**:所有变更均为文档补充和澄清,未引入新的破坏性行为 - `disableDesktopLocalSessions` 是面向管理员的增量管控能力,需 Desktop v1.37937.0+ - Worktree Hooks 行为变更(子代理不自动清理、ExitWorktree 拒绝移除 hook 创建的 worktree 除非 `discard_changes: true`)可能影响现有 Hook 使用者的预期,但属边界场景 - 沙箱变量赋值命令的权限提示可能让部分用户感到新出现的弹窗,但这是对已有安全逻辑的文档化 ### 4. 开发者行动项 - **企业管理员**:若需锁定桌面为纯 SSH 模式,部署 `disableDesktopLocalSessions` + `sshConfigs` + `sshHostAllowlist` 组合配置,确保 `sshHostAllowlist` 中的 pattern 匹配 `sshConfigs` 中的 hostname(不含 `user@`),并将三键放入最高优先级的 managed source - **Hook 开发者**:审查现有 `WorktreeRemove` Hook 是否正确处理 `ExitWorktree` 和 `remote-control` 清理路径(此路径无用户确认提示),并为子代理/workflow 完成后遗留的 worktree 安排独立清理策略 - **沙箱用户**:若遇到 `FOO=bar cmd`、`make VAR=val` 或 `eval "..."` 类命令反复弹权限提示,添加对应 allow rule(如 `Bash(FOO=bar npm *)`、`Bash(eval "ls")`),注意通配符 `Bash(eval *)` 对 `eval` 无效,需完整匹配 - **版本检查**:使用 `disableDesktopLocalSessions` 前确认 Claude Desktop ≥ v1.37937.0 - **SSH Host 用户名**:`sshHost` 省略 `user@` 时,将使用 `~/.ssh/config` 中该 host 的 `User` 字段或本地用户名,确认此默认行为符合预期
💭 Model Reasoning
Let me analyze the three documentation changes: 1. **desktop.md** (+23/-0): Adds documentation about: - SSH host behavior when `user@` is omitted (falls back to `~/.ssh/config` User or local username) - New section on turning off local sessions and distributing SSH connections via `disableDesktopLocalSessions` combined with `sshConfigs` and `sshHostAllowlist` - Detailed deployment example and verification steps - Notes about version requirements (v1.37937.0+), managed settings placement, and what these keys don't affect (CLI, Cowork, cloud sessions) 2. **hooks.md** (+21/-4): Updates WorktreeCreate and WorktreeRemove hook documentation: - Expanded list of when WorktreeCreate runs (added EnterWorktree tool, workflows, remote-control worktree mode) - Clarification that `git worktree add` via Bash tool doesn't trigger WorktreeCreate hook - Expanded WorktreeRemove triggers (ExitWorktree tool, remote-control cleanup scenarios) - New behavior: subagent/workflow worktrees are kept after completion, WorktreeRemove doesn't run for them - ExitWorktree without `discard_changes: true` refuses to remove hook-created worktrees - No prompt before hook runs for ExitWorktree or remote-control cleanup - Reworked fallback behavior documentation (no WorktreeRemove hook scenario split into more cases) - Clarification that background-session delete checks only apply on that specific route 3. **sandboxing.md** (+7/-1): Updates sandboxing permission behavior: - Changed "fall back to the regular permission flow" to "run outside the sandbox" for clarity - New section explaining that some sandboxed commands go through regular permission flow (e.g., `FOO=bar npm test`, `make CC=clang`, `eval "ls"`) because variable assignments can change which program runs - Example allow rules for these patterns - Note that allow rules also approve unsandboxed retries Key themes: - Enterprise/admin controls for SSH session management - Worktree lifecycle hook refinements with new tools (EnterWorktree, ExitWorktree, remote-control) - Sandboxing security edge cases with variable assignments and eval Impact: Medium - these are documentation updates for existing features/new settings. The `disableDesktopLocalSessions` is new but well-documented. The sandboxing and hooks changes describe behavior that may already exist but wasn't documented. Action items for developers: - Enterprise admins: consider deploying `disableDesktopLocalSessions` + `sshConfigs` + `sshHostAllowlist` to lock down Desktop to SSH-only - Hook users: update WorktreeCreate/WorktreeRemove hooks to handle new ExitWorktree/remote-control scenarios - Hook users: be aware subagent/workflow worktrees are no longer auto-cleaned - Sandbox users: add allow rules for commands with variable assignments (e.g., `Bash(FOO=bar npm *)`) to avoid recurring prompts - Check Desktop version >= v1.37937.0 for `disableDesktopLocalSessions`

📚 Claude Code

04:10 EST

🤖 AI Batch Analysis

### 整体摘要 文档新增了关于在 Spinner(加载指示器)旁显示实时 Token 计数的说明,该功能用于监控当前对话轮次的输出消耗;同时更新了状态行文档,明确区分了该实时计数与 Verbose 模式下上下文计数器的差异。 ### 关键主题 * **细粒度成本可视化**: 新增 UI 功能,实时显示当前轮次的输出 Token 量(包括流式文本、思考过程、工具调用及前台 Subagent 的输出)。 * **统计概念澄清**: 明确界定了三种不同的 Token 维度:`当前轮次输出`(Spinner 旁)、`会话总用量`(/usage)以及`上下文大小`(Verbose 模式)。 * **UI 交互细节**: 详细说明了该计数的重置时机(每轮开始或对话压缩时)及隐藏条件(无输出、终端过窄或屏幕阅读器模式)。 ### 影响程度 **Medium** * **理由**: 这是一个非破坏性的功能增强。它为开发者提供了即时的反馈机制,有助于更直观地理解单次操作(特别是工具调用和长任务)的资源消耗,从而优化 Prompt 或工作流。 ### 开发者行动项 * 利用 Spinner 旁的实时计数来快速评估特定工具调用或 Subagent 的 Token 开销。 * 注意该计数仅统计**输出**(下行流量),不包含 Prompt 和历史记录等**输入**(上行流量)。 * 结合 `/usage` 命令查看全貌,利用该新功能排查具体的“昂贵”轮次。 * 在窄终端窗口下使用时,需知悉该计数可能会自动隐藏。
💭 Model Reasoning
1. **Analyze the Request**: * **Role**: World-class programmer analyzing documentation changes. * **Format**: Markdown, concise, insightful, Chinese language. * **Input**: Two pages changed (`costs.md`, `statusline.md`). `costs.md` adds a new section about live token counting. `statusline.md` updates a description of the token counter to differentiate it from the new feature in `costs.md`. * **Output structure**: Overall Summary, Key Themes, Impact Level, Action Items. 2. **Analyze the Diff**: * **`costs.md`**: * Added a new section: "Read the token count beside the spinner". * **Feature**: Displays a live, approximate token count next to the spinner during execution (e.g., `Deciphering… (10m 27s · ↓ 5.5k tokens)`). * **Scope**: Only covers *output* of the current turn (text, tool calls, thinking, subagents). * **Exclusions**: Inputs (prompt, history, context). * **Behavior**: Resets per turn/compaction. Hidden if no output yet, row too narrow, or screen reader mode. * **Differentiation**: Clarifies this differs from `/usage` (whole session) and verbose mode (context size). * **`statusline.md`**: * Updated bullet point about "verbose mode token counter". * **Change**: Explicitly states the verbose mode counter shows *context size* (based on last API response) and contrasts it with the *per-turn count beside the spinner* (linking to `costs.md`). 3. **Synthesize Analysis**: * **What changed**: A new UI feature showing real-time token generation for the *current turn*, and a clarification to distinguish this from the existing "verbose mode" context size counter. * **Why it matters**: Developers often worry about token costs and rate limits. Seeing how many tokens are generated *per turn* helps diagnose long-running operations or expensive tool usage instantly, without waiting for the session to finish or checking the `/usage` command. It clarifies the difference between "Context size" (what you send) and "Output size" (what you get back). 4. **Drafting the Response (in Chinese)**: * *Overall Summary*: 文档新增了一项实时监控功能,即在 Spinner 旁边显示当前轮次的输出 Token 计数,并更新了状态行文档以区分该功能与 Verbose 模式下的上下文计数器。 * *Key Themes*: * **实时成本可视化**: 引入了“Spinner 旁的 Token 计数”,帮助开发者即时监控当前轮次的输出流量。 * **概念澄清**: 明确区分了三种不同的 Token 计量方式:当前轮次输出、整个会话总用量(`/usage`)以及上下文大小。 * **用户体验优化**: 针对终端宽度和无障碍模式增加了显示细节说明,确保 UI 精细化。 * *Impact Level*: * **Level**: Medium. * **Reasoning**: 虽然不是破坏性变更,但新增的实时反馈对关心成本和性能的开发者非常有价值,能更直观地理解单次请求的资源消耗。 * *Action items*: * 利用新的 Spinner 计数功能实时监控单次操作(如 Subagent 调用)的输出 Token 消耗。 * 理解“当前轮次输出”与“上下文大小”的区别,以便更准确地分析成本来源。 * 在较窄的终端窗口中注意该计数可能会被隐藏。 5. **Refining the Language**: Ensure professional, concise Chinese phrasing. * "Spinner 旁" -> "加载指示器旁" or keep "Spinner" as it's a common term among devs. I'll use "Spinner" but maybe explain slightly or just use it as it fits the context. * "Current turn" -> "当前轮次". * "Context size" -> "上下文大小". 6. **Final Polish**: * **Summary**: 新增了对 Spinner 旁 Token 计数的文档说明,该功能实时显示当前轮次的输出量;同时更新了状态行文档,以明确区分该实时计数与 Verbose 模式下的上下文计数器。 * **Themes**: * **精细化成本监控**: 新增 UI 元素展示单次对话轮次的输出 Token 量(包括思考、工具调用等)。 * **概念辨析**: 清晰界定了“轮次输出”、“会话总量”和“上下文大小”三种 Token 统计维度的区别。 * **UI 适配细节**: 说明了计数显示的隐藏条件(如无输出、窗口过窄、屏幕阅读器模式)。 * **Impact**: Medium. 这是一个非常有用的可观测性增强,能帮助开发者即时评估工具调用的开销,但不会影响现有代码逻辑。 * **Actions**: * 观察该实时计数以评估特定工具或 Subagent 的运行开销。 * 结合 `/usage` 命令和该实时计数,全面分析 Token 消耗结构。 * 留意该计数仅统计输出(下行数据),不含输入(Prompt/History)。 7. **Final Check against constraints**: Markdown format? Yes. Concise? Yes. Chinese? Yes. Max 5 action items? Yes. 8. **Generate Output**.

📚 Claude Code