Claude Code 2.1.145 更新:新增 agents JSON 输出及多项修复
原标题:2.1.145
AI 摘要
Claude Code 发布 2.1.145 版本更新,新增 `claude agents --json` 命令以 JSON 格式列出会话,便于脚本集成;为 OTEL spans 添加 agent_id 属性并修复追踪父子关系;状态栏 JSON 输入现包含 GitHub 仓库和 PR 信息;/plugin 界面在安装前显示插件详情;修复了多个 bug,包括权限绕过、MCP 错误提示、终端显示冻结、Windows PowerShell 命令分隔符、语音对讲、任务列表顺序、市场横幅、PR 徽章更新、非 ASCII 名称、/review 查询、插件验证、技能无限循环等问题;Read 工具在超限时返回截断内容而非报错。
正文节选
- Added `claude agents --json` to list live Claude sessions as JSON for scripting (tmux-resurrect, status bars, session pickers) - Added `agent_id` and `parent_agent_id` attributes to `claude_code.tool` OTEL spans, and fixed trace parenting so background subagent spans nest under the dispatching Agent tool span - Status line JSON input now includes GitHub repo and PR information when detected - `/plugin` Discover and Browse screens now show a plugin's commands, agents, skills, hooks, and MCP/LSP