← 返回更新日志

Pi v0.79.7

2026-06-18 · GitHub 原文
### 新功能 - **自动主题模式** - `/settings` 现在可以选择独立的亮色和暗色主题,并跟随终端配色方案的变化。详见 [选择主题](https://github.com/earendil-works/pi/blob/v0.79.7/packages/coding-agent/docs/themes.md#selecting-a-theme)。 - **默认仅更新自身** - `pi update` 现在仅更新 pi 本身,若需同时更新 pi 和插件包可使用 `pi update --all`。详见 [安装与管理](https://github.com/earendil-works/pi/blob/v0.79.7/packages/coding-agent/docs/packages.md#install-and-manage)。 - **扩展 API 辅助函数** - 扩展程序可使用 `CONFIG_DIR_NAME` 获取项目配置路径,并导入编辑差异辅助函数以生成编辑类差异。详见 [`ctx.cwd`](https://github.com/earendil-works/pi/blob/v0.79.7/packages/coding-agent/docs/extensions.md#ctxcwd) 和 [SDK 导出](https://github.com/earendil-works/pi/blob/v0.79.7/packages/coding-agent/docs/sdk.md#exports)。 - **Warp 终端内联图片** - Warp 终端现在通过 Kitty 图形检测支持内联图片渲染。详见 [图片](https://github.com/earendil-works/pi/blob/v0.79.7/packages/coding-agent/docs/tui.md#image)。 ### 新增 - 新增自动主题模式,使 `/settings` 能够使用独立的亮色和暗色主题并跟随终端配色方案变化 ([#5874](https://github.com/earendil-works/pi/pull/5874))。 - 新增继承的 Warp 终端图片能力检测,使内联图片可通过 Warp 的 Kitty 图形支持进行渲染 ([#5841](https://github.com/earendil-works/pi/pull/5841) by [@dodiego](https://github.com/dodiego))。 - 从 coding-agent 公共 API 导出 `CONFIG_DIR_NAME`,使扩展程序无需硬编码 `.pi` 即可解析项目配置路径 ([#5869](https://github.com/earendil-works/pi/pull/5869) by [@xl0](https://github.com/xl0))。 - 从公共 API 导出编辑差异辅助函数(`generateDiffString`、`generateUnifiedPatch` 和 `EditDiffResult`),供需要编辑类差异的扩展程序使用 ([#5756](https://github.com/earendil-works/pi/pull/5756) by [@xl0](https://github.com/xl0))。 ### 变更 - 将直接运行 `pi update` 改为仅更新 pi,新增 `pi update --all` 用于同时更新 pi 和扩展,并明确了扩展更新提示。 - 在主题名称中保留 `/` 字符,用于自动亮色/暗色主题设置。 - 更新扩展文档、示例、运行时帮助、信任提示和配置标签,使其使用配置的项目配置目录,而非硬编码的 `.pi` 路径。 ### 修复 - 修复了 RPC 未知命令错误,使其包含请求 ID,防止客户端因等待响应而挂起 ([#5868](https://github.com/earendil-works/pi/issues/5868))。 - 修复了 `/model` 自动补全和模型选择搜索,无论先输入 provider 还是 model token,均能正确匹配查询。 - 修复了树形导航器,使其在横向滚动深层条目时保持选中项可读 ([#5830](https://github.com/earendil-works/pi/issues/5830))。