← 返回更新日志

Pi v0.83.0

2026-07-29 · GitHub 原文
### 新功能 - **面向外部客户端的凭据导出** — `pi auth print-api-key` 和 `pi auth print-bearer-token` 可导出已配置的凭据,支持自动 OAuth 刷新及最小有效期强制校验。 - **无头 OpenRouter 登录** — 当回环回调不可用时,可通过 SSH 粘贴重定向 URL 或授权码来完成 `/login`。详见 [OpenRouter](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/providers.md#openrouter)。 - **GitHub Copilot 上的 Claude Opus 5** — 通过 GitHub Copilot 使用 Claude Opus 5,支持自适应思考与 100 万上下文窗口。详见 [GitHub Copilot](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/providers.md#github-copilot)。 ### 破坏性更新 - 将内置 TypeBox 别名升级至 1.3.7,移除了包括 `Type.Base`、`Type.Awaited`、`Type.Promise`、`Type.AsyncIterator`、`Type.Iterator`、`Type.Options` 和 `Value.Mutate` 在内的已弃用 API,同时修复了可空数组工具参数的编译时校验。使用已移除 API 的扩展必须迁移至受支持的 TypeBox API。详见 [包依赖](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/packages.md#dependencies) ([#7243](https://github.com/earendil-works/pi/pull/7243),由 [@petrroll](https://github.com/petrroll) 贡献)。 ### 新增 - 新增 `pi auth print-api-key` 和 `pi auth print-bearer-token` 命令,用于向外部客户端导出已配置的凭据,包含自动 OAuth 刷新及可配置的最小令牌有效期 ([#7168](https://github.com/earendil-works/pi/pull/7168))。 - 向扩展暴露会话已解析的模型作用域 `ctx.scopedModels`。详见 [扩展上下文](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/extensions.md#ctxmodelregistry--ctxmodel--ctxthinkinglevel--ctxscopedmodels) ([#7191](https://github.com/earendil-works/pi/pull/7191),由 [@pungggi](https://github.com/pungggi) 贡献,[#7215](https://github.com/earendil-works/pi/pull/7215))。 - 为支持的文本和图像提供商传输层新增继承式的逐请求 `fetch` 注入。 - 为部分流式消息新增继承式的 `"pending"` 停止原因。详见 [自定义提供商流模式](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/custom-provider.md#stream-pattern) ([#7151](https://github.com/earendil-works/pi/pull/7151),由 [@lucasmeijer](https://github.com/lucasmeijer) 贡献)。 - 在 Google、Anthropic、Amazon Bedrock、Mistral 和 OpenAI 流中新增继承式的原始提供商停止原因;未映射的终止原因现作为提供商错误显示,而非成功停止 ([#7272](https://github.com/earendil-works/pi/pull/7272))。 - 为远程和无头环境在 OpenRouter 登录中新增手动输入重定向 URL 和授权码的功能。详见 [OpenRouter](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/providers.md#openrouter) ([#7114](https://github.com/earendil-works/pi/pull/7114),由 [@rgarcia](https://github.com/rgarcia) 贡献)。 - 为 GitHub Copilot 新增继承式的 Claude Opus 5 支持,包含自适应思考与 100 万上下文窗口。详见 [GitHub Copilot](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/providers.md#github-copilot) ([#7158](https://github.com/earendil-works/pi/pull/7158),由 [@jay-aye-see-kay](https://github.com/jay-aye-see-kay) 贡献)。 ### 变更 - 修改继承式 OAuth 凭据解析逻辑,改为在令牌剩余有效期不足五分钟时刷新,而非等待过期 ([#7168](https://github.com/earendil-works/pi/pull/7168))。 ### 修复 - 切换工具输出展开状态时,新增状态行 ([#7180](https://github.com/earendil-works/pi/issues/7180)). - 修复了基于文件的 `SYSTEM.md` 和 `APPEND_SYSTEM.md` 提示词在交互式启动上下文列表中缺失的问题。详见 [系统提示词文件](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/usage.md#system-prompt-files) ([#7096](https://github.com/earendil-works/pi/issues/7096)). - 修复了当链接的 Git worktree 嵌套在主仓库下时,上下文文件被加载两次的问题。详见 [上下文文件](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/usage.md#context-files) ([#7221](https://github.com/earendil-works/pi/pull/7221) 由 [@arajkumar](https://github.com/arajkumar) 修复). - 修复了 llama.cpp 流式响应报告零 token 用量且会话上下文计数为空的问题。详见 [llama.cpp](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/llama-cpp.md) ([#7258](https://github.com/earendil-works/pi/pull/7258) 由 [@SteveImmanuel](https://github.com/SteveImmanuel) 修复). - 修复了在进行中的响应期间进行会话替换和已提交树导航时,应中止并持久化当前轮次而非留下悬空工具调用的问题。详见 [会话](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/usage.md#sessions) ([#7022](https://github.com/earendil-works/pi/pull/7022) 由 [@tmustier](https://github.com/tmustier) 修复). - 修复了失败的 Git 包安装留下部分目录从而阻碍干净重试的问题。详见 [安装与管理](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/packages.md#install-and-manage) ([#7210](https://github.com/earendil-works/pi/pull/7210) 由 [@haoqixu](https://github.com/haoqixu) 修复). - 修复了 `/model` 选择器在过滤时保留过时选中项而非高亮最佳匹配的问题 ([#7211](https://github.com/earendil-works/pi/pull/7211) 由 [@christianbasch](https://github.com/christianbasch) 修复). - 修复了直接 RPC bash 命令绕过扩展 `user_bash` 处理器的问题。详见 [用户 Bash 事件](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/extensions.md#user-bash-events) ([#7214](https://github.com/earendil-works/pi/pull/7214)). - 修复了扩展重新加载资源后,技能、提示词和主题丢失包来源元数据的问题。详见 [资源事件](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/extensions.md#resource-events) ([#6968](https://github.com/earendil-works/pi/issues/6968)). - 修复了并发运行的用户 bash 命令的取消逻辑,确保所有活动命令均被中止 ([#7103](https://github.com/earendil-works/pi/pull/7103) 由 [@yzhg1983](https://github.com/yzhg1983) 修复). - 修复了扩展在交互式启动期间切换会话时出现重复消息的问题 ([#7110](https://github.com/earendil-works/pi/pull/7110) 由 [@yzhg1983](https://github.com/yzhg1983) 修复). - 修复了继承的 Qwen Token Plan 推理模型未能发送其服务特定的思维控制及支持的推理力度级别的问题 ([#6951](https://github.com/earendil-works/pi/issues/6951), [#6998](https://github.com/earendil-works/pi/issues/6998)). - 修复了继承的 Z.AI 输出限制通过不受支持的参数发送的问题。详见 [提供商](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/providers.md) ([#7174](https://github.com/earendil-works/pi/pull/7174) 由 [@HyeokjaeLee](https://github.com/HyeokjaeLee) 修复). - 修复了显式配置的 Amazon Bedrock 配置文件被环境 AWS 访问密钥覆盖的问题。详见 [Amazon Bedrock](https://github.com/earendil-works/pi/blob/v0.83.0/packages/coding-agent/docs/providers.md#amazon-bedrock) ([#7176](https://github.com/earendil-works/pi/pull/7176) 由 [@christianbasch](https://github.com/christianbasch) 修复). - 修复了继承的图片回退路径在窄终端中溢出、缩短了主目录路径,并在终端支持超链接时使绝对路径可点击的问题 ([#7262](https://github.com/earendil-works/pi/pull/7262)). - 修复了当畸形数据块同时包含空的 `custom` 对象时,继承的 OpenAI 兼容工具调用丢失其函数参数的问题 ([#7288](https://github.com/earendil-works/pi/pull/7288) 由 [@sunnyyoung](https://github.com/sunnyyoung) 修复).