← 返回更新日志

Pi v0.75.5

2026-05-23 · GitHub 原文
### 新功能 - **更简洁的读取工具输出** - 折叠的 `read` 工具卡片默认仅显示读取的行,而 `Ctrl+O` 仍可展开完整文件内容。 - **Windows 下文件工具更快** - 内置文件工具现在在流式处理期间使用异步文件系统操作,图片缩放也在后台工作线程中运行,不阻塞主 TUI 线程。 - **更可靠的包更新** - `pi update` 和 git 包安装现在会同步已固定的 git 引用,并保持包设置完整。详见 [Packages](https://github.com/earendil-works/pi/blob/v0.75.5/packages/coding-agent/docs/packages.md)。 - **自定义 Anthropic 兼容的自适应思考** - 自定义提供商模型配置可通过 `compat.forceAdaptiveThinking` 启用自适应思考的 Claude 行为。详见 [Custom providers](https://github.com/earendil-works/pi/blob/v0.75.5/packages/coding-agent/docs/custom-provider.md) 和 [Models](https://github.com/earendil-works/pi/blob/v0.75.5/packages/coding-agent/docs/models.md)。 ### 新增 - 在自定义 Anthropic 兼容模型配置文档和验证中添加了 `compat.forceAdaptiveThinking` 支持 ([#4797](https://github.com/earendil-works/pi/pull/4797) by [@mbazso](https://github.com/mbazso))。 - 为 SDK 使用者添加了编辑工具结果详情的标准统一补丁 ([#4821](https://github.com/earendil-works/pi/issues/4821))。 ### 更改 - 更改折叠的读取工具卡片,使其在未展开时仅显示读取的行 ([#4916](https://github.com/earendil-works/pi/issues/4916))。 - 使用轻量级内置原生辅助工具替换了 Windows VT 输入继承的可选 `koffi` 依赖,在保留 Shift+Tab 处理功能的同时减小了安装体积 ([#4480](https://github.com/earendil-works/pi/issues/4480))。 - 更改根目录开发安装文档,改为使用 `npm install --ignore-scripts` ([#4868](https://github.com/earendil-works/pi/issues/4868))。 ### 修复 - 修复 `pi update`,使其将 git 固定的包同步至配置的引用 ([#4869](https://github.com/earendil-works/pi/issues/4869))。 - 修复 Windows 下的包/资源路径处理以及 glob/模式解析 ([#4873](https://github.com/earendil-works/pi/pull/4873) by [@mitsuhiko](https://github.com/mitsuhiko))。 - 修复配置模式匹配,使其从正确的基准目录解析模式 ([#4898](https://github.com/earendil-works/pi/pull/4898) by [@haoqixu](https://github.com/haoqixu))。 - 修复主题选择器,使其按内容名称而非基础名列出主题 ([#4830](https://github.com/earendil-works/pi/pull/4830) by [@Perlence](https://github.com/Perlence))。 - 修复 OpenCode Zen/Go 请求,使其发送基于会话的 OpenCode 路由头 ([#4847](https://github.com/earendil-works/pi/issues/4847))。 - 修复严格包管理器下 Amazon Bedrock 提供商的加载问题,通过从 `@earendil-works/pi-ai` 继承声明的 `@smithy/node-http-handler` 依赖 ([#4842](https://github.com/earendil-works/pi/issues/4842))。 - 修复继承的 Amazon Bedrock Claude 请求,使其默认发送模型输出令牌上限,避免触发 Bedrock 的 4096 令牌默认截断 ([#4848](https://github.com/earendil-works/pi/issues/4848))。 - 修复导出的会话 HTML,对属性值中的引号字符进行转义 ([#4832](https://github.com/earendil-works/pi/issues/4832))。 - 修复 GitHub Copilot 设备码登录,使其在支持浏览器的环境中继续打开验证 URL,同时在无头模式下忽略浏览器启动失败 ([#4788](https://github.com/earendil-works/pi/pull/4788) by [@vegarsti](https://github.com/vegarsti))。 - 修复 git 包安装,使其将现有检出同步至请求的引用,并更新包设置而不丢失过滤器 ([#4870](https://github.com/earendil-works/pi/issues/4870))。 - 发布了 0.74.2 救援版本,提示 Node 20 用户在升级至新版 Pi 前需先升级 Node ([#4876](https://github.com/earendil-works/pi/issues/4876))。 - 修复最终的 bash 工具卡片,避免渲染重复的完整输出截断路径 ([#4819](https://github.com/earendil-works/pi/issues/4819))。 - 修复 bash 工具截断行数计算,忽略末尾换行符作为额外输出行 ([#4818](https://github.com/earendil-works/pi/issues/4818))。 - 修复页脚主目录缩写逻辑,避免缩短仅共享相同前缀的同级路径 ([#4878](https://github.com/earendil-works/pi/issues/4878))。 - 修复 macOS Bun 发行版二进制文件,使其正确解析原生剪贴板旁路组件,从而让 Ctrl+V 图片粘贴能加载 `@mariozechner/clipboard` ([#4307](https://github.com/earendil-works/pi/issues/4307))。 - 修复编码代理工具,使其在流式处理期间避免同步文件系统操作,并将图片缩放移至主 TUI 线程之外 ([#4756](https://github.com/earendil-works/pi/pull/4756) by [@mitsuhiko](https://github.com/mitsuhiko))。