发布日期: 2026-06-30
版本号: v0.80.3

本次更新主要新增了多项功能:支持Anthropic Claude Sonnet 5模型,可通过Anthropic兼容及Bedrock提供商使用自适应思维功能;增加了可配置的输出间距、外部编辑器设置,并丰富了RPC会话树访问和扩展会话元数据更新功能;同时支持了现代Azure Foundry端点。此外,默认OpenAI模型已变更为GPT-5.5,并改进了OpenAI Codex响应的超时处理机制。修复方面解决了包括Claude Sonnet 5元数据、提供商HTTP错误处理、流式响应状态保留、预提示压缩逻辑、资源通知显示、启动基准测试、扩展工具应用、交互状态指示器、会话文件验证、消息渲染显示、响应截断错误处理、临时会话ID支持、BMP图像文件处理以及自动重试机制在内的多项问题。

更新内容 (中文)

新增功能

  • 支持 Anthropic Claude Sonnet 5 - Claude Sonnet 5 现可通过继承的 Anthropic 兼容与 Bedrock 提供商目录使用,并已启用自适应思考。详见提供商模型选项
  • 可配置输出间距 - outputPad 可控制用户消息、助手消息及思考块的水平内边距。详见设置
  • 外部编辑器配置 - externalEditor 允许 Ctrl+G 在 $VISUAL/$EDITOR 回退之前使用已配置的编辑器。详见设置快捷键
  • 更丰富的 RPC 会话树访问 - RPC 客户端可通过 get_entriesget_tree 检查会话条目和树快照。详见 get_entriesget_tree
  • 扩展会话元数据更新 - 扩展可通过 session_info_changed 观察会话名称变更。详见 session_info_changed
  • 支持现代 Azure Foundry 端点 - Azure OpenAI Responses 提供商设置现已支持当前的 Microsoft Foundry 端点 URL。详见 Azure OpenAI

新增内容

  • 新增继承的 Anthropic Claude Sonnet 5 模型支持。
  • 新增 get_entriesget_tree RPC 命令,用于通过 RPC 读取会话条目和树快照(相关 PR #6078,由 @geraschenko 提交)。
  • 新增 ./rpc-entry 包导出,用于直接以 RPC 模式启动 Pi。
  • 新增扩展用的会话名称变更事件(相关 PR #6175,由 @xl0 提交)。
  • 新增继承的 Azure OpenAI Responses 支持,适用于现代 Microsoft Foundry 端点 URL(相关 PR #6004,由 @gukoff 提交)。
  • 新增继承的 Usage.reasoning 令牌计数,适用于报告推理/思考令牌使用量的提供商(相关 Issue #6057)。
  • 新增 externalEditor 设置项,用于在 settings.json 中覆盖 Ctrl+G 外部编辑器命令,Windows 上默认回退至记事本,其他系统默认为 nano相关 Issue #6122)。
  • 新增 outputPad 设置项,用于控制用户消息、助手消息和思考内容的水平内边距(相关 Issue #6168)。

变更内容

  • 默认 OpenAI 模型变更为 gpt-5.5
  • 继承的 OpenAI Codex Responses SSE 响应头等待时间现使用配置的 HTTP 超时设置,取代原先固定的 20 秒超时,从而减少在慢速连接上的误超时问题(相关 Issue #4945)。

修复内容

  • 修复继承的 Claude Sonnet 5 元数据,使其在 Anthropic 兼容和 Bedrock 请求中使用自适应思考负载。
  • 修复继承的小米 MiMo 生成模型定价,使其与 models.dev 上的当前按需定价一致(相关 Issue #6138)。
  • 修复继承的提供商 HTTP 错误,使其包含响应正文而非不透明的 SDK 消息(相关 PR #5832,由 @stephanmck 提交)。
  • 修复继承的 streamSimple() 最大令牌限制,防止因输入和输出共用同一上下文窗口而导致长请求被拒绝的提供商出错(相关 Issue #5595)。
  • 修复继承的 OpenAI Responses 流,以在输出项乱序完成时保留推理重放状态(相关 Issue #6009)。
  • 修复继承的 Z.AI 保留思考请求,在启用思考时发送 thinking.clear_thinking: false,允许重放的 reasoning_content 参与提供商缓存(相关 Issue #6083)。
  • 修复预提示压缩,使其在压缩后停止而非立即继续(相关 PR #6074,由 @yzhg1983 提交)。
  • 修复资源通知,使其在恢复会话时保持在消息之前(相关 PR #6048,由 @haoqixu 提交)。
  • 修复启动基准测试计时输出,使其在 TUI 关闭后打印、保留扩展计时,并在停止基准模式前排空终端查询回复(相关 PR #6030,由 @xl0 提交;相关 PR #6063,由 @xl0 提交)。
  • 修复扩展工具变更,使其在同一代理运行的下一次提供商请求前应用,且不丢失 before_agent_start 系统提示覆盖(相关 Issue #6162)。
  • 修复在终止流式 HTTP 响应时 undici 发出内部客户端错误导致的崩溃问题(相关 Issue #6133)。
  • 修复压缩事件回归测试,以涵盖状态指示器清理并确保 CI 通过。
  • 修复交互式状态指示器,使结束工作、重试、压缩或分支摘要指示器在启用“收缩时清除”时不再缩小 TUI(相关 PR #6026)。
  • 修复 --sessionSessionManager.open(),使其在会话文件非空且无效时拒绝而不覆盖(相关 Issue #6002)。
  • 修复用户消息转录渲染,以在 Markdown 转义序列(如 \")中保留可见的反斜杠(相关 Issue #6105)。
  • 修复因输出长度被截断的助手消息,使其显示可见的未完成响应错误(相关 Issue #4290)。
  • 修复 --no-session --session-id,使临时 CLI 运行可使用确定性会话 ID 以实现提供商缓存亲和性(相关 Issue #6070)。
  • 修复磁盘 BMP 图像文件,使其可通过 read 和 CLI @file 输入被检测、转换为 PNG 并附加(相关 Issue #6047)。
  • 修复对提供商流错误的自动重试,适用于明确告知调用者重试请求的情况(相关 Issue #6019)。

更新内容 (原始)

New Features

  • Anthropic Claude Sonnet 5 support - Claude Sonnet 5 is available through inherited Anthropic-compatible and Bedrock provider catalogs with adaptive thinking enabled. See Providers and Model Options.
  • Configurable output spacing - outputPad controls horizontal padding for user messages, assistant messages, and thinking blocks. See Settings.
  • External editor configuration - externalEditor lets Ctrl+G use a configured editor before $VISUAL/$EDITOR fallbacks. See Settings and Keybindings.
  • Richer RPC session tree access - RPC clients can inspect session entries and tree snapshots with get_entries and get_tree. See get_entries and get_tree.
  • Extension session metadata updates - Extensions can observe session name changes through session_info_changed. See session_info_changed.
  • Modern Azure Foundry endpoint support - Azure OpenAI Responses provider setup supports current Microsoft Foundry endpoint URLs. See Azure OpenAI.

Added

  • Added inherited Anthropic Claude Sonnet 5 model support.
  • Added get_entries and get_tree RPC commands for reading session entries and tree snapshots over RPC (#6078 by @geraschenko).
  • Added a package ./rpc-entry export for launching Pi directly in RPC mode.
  • Added session-name change events for extensions (#6175 by @xl0).
  • Added inherited Azure OpenAI Responses support for modern Microsoft Foundry endpoint URLs (#6004 by @gukoff).
  • Added inherited Usage.reasoning token counts for providers that report reasoning/thinking token usage (#6057).
  • Added an externalEditor settings.json override for Ctrl+G external editor commands, with default fallbacks to Notepad on Windows and nano elsewhere (#6122).
  • Added an outputPad setting for user message, assistant message, and thinking horizontal padding (#6168).

Changed

  • Changed the default OpenAI model to gpt-5.5.
  • Changed inherited OpenAI Codex Responses SSE response-header waits to use the configured HTTP timeout instead of the previous fixed 20 second timeout, reducing false timeouts on slow connections (#4945).

Fixed

  • Fixed inherited Claude Sonnet 5 metadata to use adaptive thinking payloads for Anthropic-compatible and Bedrock requests.
  • Fixed inherited generated Xiaomi MiMo model pricing to match current pay-as-you-go pricing from models.dev (#6138).
  • Fixed inherited provider HTTP errors to include response bodies instead of opaque SDK messages (#5832 by @stephanmck).
  • Fixed inherited streamSimple() max-token caps so providers that count input and output against one context window do not reject long requests (#5595).
  • Fixed inherited OpenAI Responses streams to preserve reasoning replay state when output items finish out of order (#6009).
  • Fixed inherited Z.AI preserved thinking requests to send thinking.clear_thinking: false when thinking is enabled, allowing replayed reasoning_content to participate in provider caching (#6083).
  • Fixed pre-prompt compaction to stop after compaction instead of continuing immediately (#6074 by @yzhg1983).
  • Fixed resource notifications to stay before messages when resuming sessions (#6048 by @haoqixu).
  • Fixed startup benchmark timing output to print after TUI shutdown, preserve extension timings, and drain terminal-query replies before stopping benchmark mode (#6030 by @xl0, #6063 by @xl0).
  • Fixed extension tool changes to apply before the next provider request in the same agent run without dropping before_agent_start system-prompt overrides (#6162).
  • Fixed a crash when undici emits an internal client error while terminating a mid-stream HTTP response (#6133).
  • Fixed the compaction event regression test to cover status indicator cleanup and keep CI passing.
  • Fixed interactive status indicators so ending work, retry, compaction, or branch-summary indicators no longer shrink the TUI when clear-on-shrink is enabled (#6026).
  • Fixed --session and SessionManager.open() to reject non-empty invalid session files without overwriting them (#6002).
  • Fixed user-message transcript rendering to keep visible backslashes in Markdown escape sequences such as \" (#6105).
  • Fixed assistant messages stopped by output length to show a visible incomplete-response error (#4290).
  • Fixed --no-session --session-id so ephemeral CLI runs can use deterministic session IDs for provider cache affinity (#6070).
  • Fixed disk BMP image files to be detected, converted to PNG, and attached through read and CLI @file inputs (#6047).
  • Fixed auto-retry for provider stream errors that explicitly tell callers to retry the request (#6019).

下载链接