← 返回更新日志

Pi v0.80.3

2026-06-30 · GitHub 原文
### 新功能 - **支持 Anthropic Claude Sonnet 5** - 通过继承的 Anthropic 兼容及 Bedrock 提供商目录,现已支持 Claude Sonnet 5,并启用了自适应思考功能。请参阅 [Providers](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/providers.md) 和 [Model Options](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/usage.md#model-options). - **可配置的输出间距** - `outputPad` 用于控制用户消息、助手消息和思考块的横向内边距。请参阅 [Settings](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/settings.md#ui--display). - **外部编辑器配置** - `externalEditor` 允许 Ctrl+G 在回退到 `$VISUAL`/`$EDITOR` 之前使用已配置的外部编辑器。请参阅 [Settings](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/settings.md#ui--display) 和 [Keybindings](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/keybindings.md). - **更丰富的 RPC 会话树访问功能** - RPC 客户端现在可使用 `get_entries` 和 `get_tree` 检查会话条目与树快照。请参阅 [get_entries](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/rpc.md#get_entries) 和 [get_tree](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/rpc.md#get_tree). - **扩展会话元数据更新** - 扩展程序现在可通过 `session_info_changed` 监听会话名称的更改。请参阅 [session_info_changed](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/extensions.md#session_info_changed). - **支持现代 Azure Foundry 端点** - Azure OpenAI Responses 提供商配置现已支持最新的 Microsoft Foundry 端点 URL。请参阅 [Azure OpenAI](https://github.com/earendil-works/pi/blob/v0.80.3/packages/coding-agent/docs/providers.md#azure-openai). ### 新增 - 新增继承的 Anthropic Claude Sonnet 5 模型支持。 - 新增 `get_entries` 和 `get_tree` RPC 命令,用于通过 RPC 读取会话条目和树快照([#6078](https://github.com/earendil-works/pi/pull/6078) by [@geraschenko](https://github.com/geraschenko))。 - 新增 `./rpc-entry` 包导出,用于直接在 RPC 模式下启动 Pi。 - 新增扩展会话名称更改事件([#6175](https://github.com/earendil-works/pi/pull/6175) by [@xl0](https://github.com/xl0))。 - 新增继承的 Azure OpenAI Responses 支持,以适配现代 Microsoft Foundry 端点 URL([#6004](https://github.com/earendil-works/pi/pull/6004) by [@gukoff](https://github.com/gukoff))。 - 新增继承的 `Usage.reasoning` 令牌计数,用于支持报告推理/思考令牌用量的提供商([#6057](https://github.com/earendil-works/pi/issues/6057))。 - 新增 `externalEditor` 的 settings.json 覆盖项,用于 Ctrl+G 外部编辑器命令,Windows 下默认回退到记事本,其他平台回退到 `nano`([#6122](https://github.com/earendil-works/pi/issues/6122))。 - 新增 `outputPad` 设置项,用于控制用户消息、助手消息和思考块的横向内边距([#6168](https://github.com/earendil-works/pi/issues/6168))。 ### 更改 - 将默认 OpenAI 模型更改为 `gpt-5.5`。 - 更改继承的 OpenAI Codex Responses SSE 响应头等待逻辑,改为使用配置的 HTTP 超时时间,而非之前的固定 20 秒超时,从而减少慢速连接下的超时误报([#4945](https://github.com/earendil-works/pi/issues/4945))。 ### 修复 - 修复了继承的 Claude Sonnet 5 元数据,使其在针对 Anthropic 兼容服务和 Bedrock 的请求中使用自适应思考负载。 - 修复了继承生成的 Xiaomi MiMo 模型定价,使其与 models.dev 当前的按量付费定价保持一致 ([#6138](https://github.com/earendil-works/pi/issues/6138))。 - 修复了继承的提供商 HTTP 错误处理,使其包含响应体而非不透明的 SDK 消息 ([#5832](https://github.com/earendil-works/pi/pull/5832),由 [@stephanmck](https://github.com/stephanmck) 贡献)。 - 修复了继承的 `streamSimple()` 最大令牌限制,使那些将输入和输出计入同一上下文窗口的提供商不再拒绝长请求 ([#5595](https://github.com/earendil-works/pi/issues/5595))。 - 修复了继承的 OpenAI Responses 流,在输出项乱序完成时保留推理重放状态 ([#6009](https://github.com/earendil-works/pi/issues/6009))。 - 修复了继承的 Z.AI 保留思考请求,在启用思考时发送 `thinking.clear_thinking: false`,使重放的 `reasoning_content` 能够参与提供商缓存 ([#6083](https://github.com/earendil-works/pi/issues/6083))。 - 修复了预提示压缩逻辑,使其在压缩完成后停止而非立即继续 ([#6074](https://github.com/earendil-works/pi/pull/6074),由 [@yzhg1983](https://github.com/yzhg1983) 贡献)。 - 修复了资源通知,在恢复会话时使其保持在消息之前 ([#6048](https://github.com/earendil-works/pi/pull/6048),由 [@haoqixu](https://github.com/haoqixu) 贡献)。 - 修复了启动基准测试计时输出,使其在 TUI 关闭后打印,保留扩展计时,并在停止基准测试模式前清空终端查询回复 ([#6030](https://github.com/earendil-works/pi/pull/6030) 和 [#6063](https://github.com/earendil-works/pi/pull/6063),均由 [@xl0](https://github.com/xl0) 贡献)。 - 修复了扩展工具更改,使其在同一代理运行期间的下一次提供商请求前生效,且不会丢失 `before_agent_start` 系统提示覆盖 ([#6162](https://github.com/earendil-works/pi/issues/6162))。 - 修复了当 undici 在终止中途 HTTP 响应时抛出内部客户端错误导致的崩溃问题 ([#6133](https://github.com/earendil-works/pi/issues/6133))。 - 修复了压缩事件回归测试,以覆盖状态指示器清理逻辑,确保 CI 持续通过。 - 修复了交互式状态指示器,当启用“收缩时清除”时,结束工作、重试、压缩或分支摘要的指示器不再导致 TUI 缩小 ([#6026](https://github.com/earendil-works/pi/pull/6026))。 - 修复了 `--session` 和 `SessionManager.open()`,使其拒绝非空但无效会话文件且不覆盖它们 ([#6002](https://github.com/earendil-works/pi/issues/6002))。 - 修复了用户消息转录渲染,保留 Markdown 转义序列(如 `\"`)中的可见反斜杠 ([#6105](https://github.com/earendil-works/pi/issues/6105))。 - 修复了因输出长度限制而停止的助手消息,使其显示可见的“响应不完整”错误 ([#4290](https://github.com/earendil-works/pi/issues/4290))。 - 修复了 `--no-session --session-id` 参数,使临时 CLI 运行能够使用确定性会话 ID 以实现提供商缓存亲和性 ([#6070](https://github.com/earendil-works/pi/issues/6070))。 - 修复了磁盘 BMP 图像文件的检测、转换为 PNG 格式,以及通过 `read` 命令和 CLI `@file` 输入进行附加的问题 ([#6047](https://github.com/earendil-works/pi/issues/6047))。 - 修复了针对明确提示调用方重试请求的提供商流错误的自动重试机制 ([#6019](https://github.com/earendil-works/pi/issues/6019))。