← 返回更新日志

Pi v0.67.1

2026-04-13 · GitHub 原文
### 遥测 交互模式现在会在向 `settings.json` 写入 `lastChangelogVersion` 后,向 `https://pi.dev/install?version=x.y.z` 发送轻量级匿名安装/更新遥测 ping。 为什么需要此功能: - Pi 需要可靠的按版本使用信号,以了解各版本是否被采用,并为持续开发争取资金提供依据。 - npm 下载量并不能准确反映 Pi 的实际使用情况。 工作原理: - 仅在交互模式下运行。 - 不会在 RPC 模式、打印模式、JSON 模式或 SDK 模式下运行。 - 全新交互安装时,Pi 会写入 `lastChangelogVersion`,然后发送 ping。 - 后续交互启动时,如果本地更新日志包含比之前存储的 `lastChangelogVersion` 更新的条目,Pi 会写入新的 `lastChangelogVersion`,然后发送 ping。 - 请求采用“发送即忘”(fire-and-forget)机制。启动过程不会等待响应,任何错误都会被忽略。 收集的数据: - 仅包含请求路径中的 Pi 版本号,例如 `https://pi.dev/install?version=0.67.1`。 - 服务器仅存储按版本聚合的计数器,例如 `{ "0.67.1": 3 }`。 - 不存储 IP 地址、客户端标识符、提示词、路径、模型、认证状态或任何其他用户级数据。它实际上只会为该版本递增计数器。 如何禁用: - `/settings` → 禁用 `Install telemetry` - `settings.json` → 将 `enableInstallTelemetry` 设置为 `false` - `PI_OFFLINE=1` - `PI_TELEMETRY=0` ### 新功能 - 在 `models.json` 中全面支持 `openRouterRouting`,包括回退机制、参数要求、数据收集、ZDR、忽略列表、量化、提供商排序、最高价格以及首选吞吐量和延迟限制。详见 [docs/models.md](docs/models.md)。 - 启动时设置 `PI_CODING_AGENT=true` 环境变量,以便子进程能够检测自身是否运行在编码代理(coding agent)内部。 ### 新增 - 在 `models.json` 中新增完整的 `openRouterRouting` 字段支持,包括回退机制、参数要求、数据收集、ZDR、忽略列表、量化、提供商排序、最高价格以及首选吞吐量和延迟限制([#2904](https://github.com/badlogic/pi-mono/pull/2904) by [@zmberber](https://github.com/zmberber)) - 启动时设置 `PI_CODING_AGENT=true` 环境变量,以便子进程能够检测自身是否运行在编码代理内部([#2868](https://github.com/badlogic/pi-mono/issues/2868)) ### 修复 - 修复了遥测说明在交互更新日志中的渲染问题,通过将相关部分移至 `### Telemetry` 标题下,使启动时显示完整的发布说明而非仅版本标题。 - 更新 `antigravity-image-gen.ts` 示例扩展以使用 User-Agent 版本 `1.21.9`([#2901](https://github.com/badlogic/pi-mono/pull/2901) by [@aadishv](https://github.com/aadishv)) - 将默认 Antigravity User-Agent 版本提升至 `1.21.9`([#2901](https://github.com/badlogic/pi-mono/pull/2901) by [@aadishv](https://github.com/aadishv)) - 修复了 Gemma 4 思考级别映射,使其在 `MINIMAL` 和 `HIGH` 之间路由,并将 Pi 推理级别映射到模型支持的思考级别([#2903](https://github.com/badlogic/pi-mono/pull/2903) by [@aadishv](https://github.com/aadishv)) - 修复了 Gemini 2.5 Flash Lite 的最小思考预算,使其使用模型支持的 512 个 token 最小值,而非常规 Flash 的 128 个 token 最小值,从而避免无效的 thinking budget 错误([#2861](https://github.com/badlogic/pi-mono/pull/2861) by [@JasonOA888](https://github.com/JasonOA888)) - 修复了 OpenAI Codex Responses 请求转发配置的 `serviceTier` 值的问题,恢复了 Codex 会话的服务层级选择功能([#2996](https://github.com/badlogic/pi-mono/pull/2996) by [@markusylisiurunen](https://github.com/markusylisiurunen)) - 通过用基于循环的 push 替换 `Array.push(...spread)`,修复了长会话中 `Container.render()` 的栈溢出问题,防止子输出超出 V8 调用栈参数限制时触发 `RangeError: Maximum call stack size exceeded`([#2651](https://github.com/badlogic/pi-mono/issues/2651)) - 修复了编辑器在粘贴标记周围的粘性列跟踪问题,使垂直光标导航能够恢复光标进入粘贴标记前的列位置,而不是跳入或跳过粘贴的内容([#3092](https://github.com/badlogic/pi-mono/pull/3092) by [@Perlence](https://github.com/Perlence)) - 修复了 `/tree` 分支摘要期间输入的排队消息,使其在导航完成后自动刷新,不再卡在转向队列中([#3091](https://github.com/badlogic/pi-mono/pull/3091) by [@Perlence](https://github.com/Perlence))