← 返回更新日志

Pi v0.79.4

2026-06-15 · GitHub 原文
### 新功能 - **自动首次运行主题选择** - pi 在首次运行时检测终端背景,并默认使用 `dark` 或 `light` 主题。请参阅 [选择主题](https://github.com/earendil-works/pi/blob/v0.79.4/packages/coding-agent/docs/themes.md#selecting-a-theme)。 - **独立二进制文件完整性校验和** - GitHub 发布资源现包含 `SHA256SUMS` 文件,用于验证独立二进制文件的下载。请参阅 [快速开始安装](https://github.com/earendil-works/pi/blob/v0.79.4/packages/coding-agent/docs/quickstart.md#install)。 ### 新增 - 为独立二进制文件的 GitHub 发布资源添加了 `SHA256SUMS` 完整性校验文件 ([#5739](https://github.com/earendil-works/pi/issues/5739))。 - 添加了基于终端背景的首次运行交互式主题检测功能 ([#5385](https://github.com/earendil-works/pi/pull/5385),由 [@vegarsti](https://github.com/vegarsti) 贡献)。 ### 修复 - 修复了 bash 工具输出收集逻辑:在子进程退出后、后代进程仍在写入时,继续持续读取 stdout/stderr,避免晚期输出被截断 ([#5753](https://github.com/earendil-works/pi/pull/5753),由 [@Mearman](https://github.com/Mearman) 贡献)。 - 修复了 `/tree` 帮助信息的渲染:在窄终端上显示紧凑的换行控件,而非将其截断 ([#5055](https://github.com/earendil-works/pi/issues/5055))。 - 修复了 SIGTERM/SIGHUP 交互式关闭逻辑:确保信号处理器在终端清理完成前保持安装状态,防止 `signal-exit` 重新发送信号导致终端停留在原始/Kitty 键盘模式 ([#5724](https://github.com/earendil-works/pi/issues/5724))。 - 修复了扩展文档:明确说明 `pi.getActiveTools()` 返回活动工具名称,而 `pi.getAllTools()` 返回工具元数据 ([#5729](https://github.com/earendil-works/pi/issues/5729))。 - 修复了问答与问卷扩展示例:对过长的提示词、选项和帮助文本进行换行处理,而非直接截断 ([#5708](https://github.com/earendil-works/pi/pull/5708),由 [@xl0](https://github.com/xl0) 贡献)。 - 修复了 `pi list`、`pi install` 和 `pi update` 等包命令:即使扩展程序留有后台句柄未关闭,命令在完成操作后也能正常终止 ([#5687](https://github.com/earendil-works/pi/issues/5687))。 - 修复了 `pi update` 在 pnpm 全局安装场景下的问题:当配置的 `global-bin-dir` 与当前活跃的 pnpm 主目录不匹配时 ([#5689](https://github.com/earendil-works/pi/issues/5689))。 - 修复了使用范围或标签(例如 `@^1.2.7`)的 npm 包规范:确保已安装的包资源能正常加载,而非被误判为不匹配的确切版本锁定 ([#5695](https://github.com/earendil-works/pi/issues/5695))。 - 修复了继承自 Anthropic 的 1 小时提示词缓存写入成本计算:将 1 小时缓存写入价格调整为输入价格的 2 倍,而非使用 5 分钟缓存写入费率 ([#5738](https://github.com/earendil-works/pi/pull/5738),由 [@theBucky](https://github.com/theBucky) 贡献)。 - 修复了继承自 GitHub Copilot Claude 的自适应思考工作量元数据,使其与手动核对的 Copilot 模型能力保持一致 ([#4637](https://github.com/earendil-works/pi/issues/4637))。 - 修复了继承自 OpenCode/OpenCode Go 的补全模型元数据:对于拒绝 `prompt_cache_retention` 的路由,省略长保留期缓存字段 ([#5702](https://github.com/earendil-works/pi/issues/5702))。 - 修复了继承自 CJK 宽字符的覆盖层合成逻辑:当覆盖层起始于全宽单元格内时,确保边框保持对齐 ([#5297](https://github.com/earendil-works/pi/issues/5297))。 - 修复了继承自 WezTerm 的 Kitty 内联图像渲染:在完整重绘回退期间,确保在绘制图像位置前预留图像填充行,且不影响高图像定位 ([#5618](https://github.com/earendil-works/pi/issues/5618), [#4415](https://github.com/earendil-works/pi/issues/4415))。 - 修复了自定义提供商配置:纯大写的 API 密钥和 Header 值现在保持为字面量,不再被误认为旧版环境变量引用;环境变量请使用显式的 `$ENV_VAR` 语法 ([#5661](https://github.com/earendil-works/pi/issues/5661))。