← 返回更新日志

Pi v0.80.7

2026-07-14 · GitHub 原文
### 破坏性变更 - 从 `models.json` 中移除了 `openai-responses` 的 `compat.sendSessionIdHeader` 标志。会话亲和性行为现在由 `compat.sessionAffinityFormat`(`"openai"`、`"openai-nosession"` 或 `"openrouter"`)控制。请将 `sendSessionIdHeader: false` 替换为 `sessionAffinityFormat: "openai-nosession"`([#6496](https://github.com/earendil-works/pi/pull/6496) by [@petrroll](https://github.com/petrroll))。 ### 新功能 - **支持缓存的动态工具加载** - 扩展可在执行期间添加工具,同时受支持的 Anthropic 和 OpenAI Responses 模型会保留提示词缓存前缀。详见 [动态工具加载](https://github.com/earendil-works/pi/blob/v0.80.7/packages/coding-agent/docs/extensions.md#dynamic-tool-loading)。 - **消息复制快捷键** - 使用 `Ctrl+X` 可复制对话记录中的最后一条助手消息,或 `/tree` 中选中的消息,使历史消息和分支消息可直接复制。详见 [显示与消息队列](https://github.com/earendil-works/pi/blob/v0.80.7/packages/coding-agent/docs/keybindings.md#display-and-message-queue)。 - **Fable 5 的 `xhigh` 和 `max` 思考级别** - 生成的提供商目录中现已原生支持 `xhigh` 和 `max` 思考级别。详见 [模型选项](https://github.com/earendil-works/pi/blob/v0.80.7/packages/coding-agent/docs/usage.md#model-options)。 ### 新增 - 为通过工具结果激活的扩展工具添加了支持缓存的动态工具加载功能。受支持的 Anthropic 和 OpenAI Responses 模型会在可用时加载定义,同时保留缓存的提示词前缀。详见 [动态工具加载](https://github.com/earendil-works/pi/blob/v0.80.7/packages/coding-agent/docs/extensions.md#dynamic-tool-loading)([#6474](https://github.com/earendil-works/pi/pull/6474))。 - 在所有生成的提供商目录中,为 Claude Fable 5 添加了继承的原生 `xhigh` 和 `max` 思考级别([#6490](https://github.com/earendil-works/pi/pull/6490) by [@davidbrai](https://github.com/davidbrai))。 - 新增 `Ctrl+X` 快捷键,用于复制最后一条助手消息或 `/tree` 中选中的消息。 - 为 OpenAI 和 Codex Responses 添加了继承的 `toolChoice` 支持,包括必需工具选择和命名工具选择([#6588](https://github.com/earendil-works/pi/pull/6588) by [@xl0](https://github.com/xl0))。 ### 修复 - 修复了继承的 OpenRouter 模型上下文窗口,使其使用顶级提供商的实际上下文长度([#6481](https://github.com/earendil-works/pi/pull/6481) by [@davidbrai](https://github.com/davidbrai))。 - 修复了继承的 OpenRouter OpenAI 兼容会话 ID,使其使用 `x-session-id` 请求头,而非 OpenAI 特定的会话亲和性字段([#6496](https://github.com/earendil-works/pi/pull/6496) by [@petrroll](https://github.com/petrroll))。 - 修复了当剪贴板不包含图像时,`Ctrl+V` 无法粘贴文本的问题。 - 修复了 `/login amazon-bedrock` 命令,使其现在会提示输入并保存 Bedrock API 密钥,而不仅仅是显示环境 AWS 凭据设置说明。 - 修复了继承的 Amazon Bedrock 环境 AWS 凭据,使其继续使用 SigV4 认证,包括自定义模型 ID 的情况([#6532](https://github.com/earendil-works/pi/pull/6532) by [@ribelo](https://github.com/ribelo))。 - 修复了继承的 Cloudflare Workers AI 和 AI Gateway 认证,当存储的凭据仅包含 API 密钥时,会使用环境账户 ID 和网关 ID([#6292](https://github.com/earendil-works/pi/pull/6292) by [@markphelps](https://github.com/markphelps))。 - 修复了继承的旧版终端解码问题,支持 `Alt+,` 和 `Alt+.` 等 Alt+符号 键组合([#6523](https://github.com/earendil-works/pi/pull/6523) by [@ribelo](https://github.com/ribelo))。 - 修复了 GitHub Copilot `mai-code-1-flash-picker` 模型的请求路由,使其通过 `/responses` 端点转发([#6544](https://github.com/earendil-works/pi/pull/6544) by [@petrroll](https://github.com/petrroll))。 - 修复了分支摘要功能,使其支持与使用环境认证而非 API 密钥的提供商配合工作([#6595](https://github.com/earendil-works/pi/pull/6595) by [@davidbrai](https://github.com/davidbrai))。 - 修复了继承的 Amazon Bedrock 错误处理,使其报告未处理的提供商停止原因,而不再仅显示 `An unknown error occurred`([#6598](https://github.com/earendil-works/pi/pull/6598) by [@davidbrai](https://github.com/davidbrai))。 - 修复了当已安装的软件包存在冲突的 peer dependencies 时,npm 软件包无法正确移除的问题([#6604](https://github.com/earendil-works/pi/pull/6604) by [@davidbrai](https://github.com/davidbrai))。 - 修复了当 `encrypted_content` 仅出现在终端响应事件中时,继承的 Azure OpenAI Responses 推理重播功能的问题([#6608](https://github.com/earendil-works/pi/pull/6608) by [@davidbrai](https://github.com/davidbrai))。 - 修复了继承的 Anthropic 兼容代理在 `message_delta` 事件中省略 `usage` 字段时的问题([#6611](https://github.com/earendil-works/pi/pull/6611) by [@davidbrai](https://github.com/davidbrai))。 - 修复了继承的 OpenCode OpenAI Responses 模型,使其在保留其他缓存亲和性数据的同时,省略不受支持的 `session-id` 请求头([#6645](https://github.com/earendil-works/pi/pull/6645) by [@davidbrai](https://github.com/davidbrai))。 - 通过从默认提示词中移除当前日期,修复了跨日期的系统提示词缓存失效问题([#6621](https://github.com/earendil-works/pi/issues/6621))。