← 返回更新日志

Pi v0.79.0

2026-06-08 · GitHub 原文
### 新功能 - **本地输入的信任机制** - Pi 现在在加载项目本地设置、资源、指令和包之前会进行询问,支持保存决策,并为非交互模式提供 `--approve` / `--no-approve` 控制选项。参见 [Project Trust](https://github.com/earendil-works/pi/blob/v0.79.0/packages/coding-agent/README.md#project-trust)。 - **扩展控制的信任决策** - 全局扩展和 CLI 扩展可以在项目本地资源加载之前处理 `project_trust`,进行决策、记忆或延迟项目信任。参见 [`project_trust`](https://github.com/earendil-works/pi/blob/v0.79.0/packages/coding-agent/docs/extensions.md#project_trust)。 - **页脚显示缓存命中率** - 交互页脚现在会显示最新的提示词缓存命中率 (`CH`)。参见 [Interactive Mode](https://github.com/earendil-works/pi/blob/v0.79.0/packages/coding-agent/README.md#interactive-mode)。 - **更丰富的 SDK 和 RPC 扩展接口** - 公共导出现在包含 RPC 扩展 UI 的请求/响应类型以及包资源路径辅助函数。参见 [Extension UI Protocol](https://github.com/earendil-works/pi/blob/v0.79.0/packages/coding-agent/docs/rpc.md#extension-ui-protocol) 和 [SDK Exports](https://github.com/earendil-works/pi/blob/v0.79.0/packages/coding-agent/docs/sdk.md#exports)。 ### 新增 - 新增 `project_trust` 扩展事件,使全局和 CLI 扩展能够在启动和运行时工作目录切换期间决定或延迟项目信任。 - 为项目本地设置、资源、指令和包添加了项目信任门控机制 ([#5332](https://github.com/earendil-works/pi/pull/5332))。 - 在交互页脚中添加了最新的提示词缓存命中率。 - 从公共 API 导出了 RPC 扩展 UI 的请求和响应类型 ([#5455](https://github.com/earendil-works/pi/issues/5455))。 - 从公共 API 导出了 coding-agent 包的资源路径辅助函数 ([#5415](https://github.com/earendil-works/pi/issues/5415))。 ### 修复 - 修复了包导出问题,移除了指向不存在的构建输出的过时 `./hooks` 子路径。 - 修复了继承的 TUI 渲染问题,当内容缩减为零时会清除残留行。 - 修复了继承的自动补全建议,在编辑器光标移动后刷新 ([#5499](https://github.com/earendil-works/pi/pull/5499) by [@Roman-Galeev](https://github.com/Roman-Galeev))。 - 修复了 `/reload` 命令,当隐式信任的会话创建项目 `.pi` 目录时,会持久化项目信任设置。 - 修复了项目信任输入发现机制,使其能够跨平台遍历父目录。 - 修复了继承的 Shift+Enter 处理偶发问题,将 Kitty 键盘协议的回退机制从基于超时改为基于响应 ([#5188](https://github.com/earendil-works/pi/issues/5188))。 - 修复了压缩摘要系统提示词,为非代码代理使用中性的 AI 助手措辞 ([#5401](https://github.com/earendil-works/pi/issues/5401))。 - 修复了 `models.json` 模式支持,以及针对 `compat.supportsDeveloperRole: false` 的继承 OpenAI Responses 自定义提供商处理逻辑 ([#5456](https://github.com/earendil-works/pi/issues/5456))。 - 修复了继承的提示词历史导航,向上浏览时将光标置于开头,向下浏览时置于末尾 ([#5454](https://github.com/earendil-works/pi/issues/5454))。 - 修复了 tmux 设置文档,明确 `extended-keys-format csi-u` 需要 tmux 3.5,并补充了 tmux 3.2-3.4 的回退方案说明 ([#5432](https://github.com/earendil-works/pi/issues/5432))。 - 修复了继承的 OpenRouter 路由偏好设置,使其在自定义提供商的基础 URL 不直接指向 OpenRouter 时也能正常工作 ([#5347](https://github.com/earendil-works/pi/issues/5347))。 - 修复了内置工具展开提示的样式,统一了右括号的显示样式 ([#5359](https://github.com/earendil-works/pi/issues/5359))。 - 修复了技能包装提示词,在技能指令和用户消息之间插入空格 ([#5371](https://github.com/earendil-works/pi/pull/5371) by [@Perlence](https://github.com/Perlence))。