---
id: 20260520-T0-16
title: "Claude Code更新v2.1.145：支持JSON格式会话列表"
title_en: "Claude Code v2.1.145 Adds Session JSON Export"
url: https://ai.daily.yangsir.net/daily/20260520-T0-16
issue_date: 2026-05-20
publish_date: 2026-05-19T21:31:07.000Z
category: release
source_name: "Claude Code Releases"
source_url: https://github.com/anthropics/claude-code/releases/tag/v2.1.145
---

# Claude Code更新v2.1.145：支持JSON格式会话列表

Anthropic更新Claude Code至v2.1.145版本。主要新增功能包括通过`claude agents --json`命令以JSON格式输出实时会话列表，便于脚本集成；优化了Claude Code工具的OTEL追踪性能，并修复了背景子代理的追踪父子关系问题。

## English Version

**Claude Code v2.1.145 Adds Session JSON Export**

Claude Code released v2.1.145, adding a `claude agents --json` command to list live sessions in JSON format for scripting, improving OTEL tracing performance, and fixing span parenting for background subagents.

---

**来源**：[Claude Code Releases](https://github.com/anthropics/claude-code/releases/tag/v2.1.145)

**详情页**：https://ai.daily.yangsir.net/daily/20260520-T0-16

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*