← 返回更新日志

Pi v0.79.1

2026-06-09 · GitHub 原文
### 新功能 - **Claude Fable 5** - Claude Fable 5 现已在 Anthropic 和 Amazon Bedrock 提供商处可用,支持自适应思考与 `xhigh` 处理强度。 - **提示词模板默认值** - 提示词模板现在可以使用默认位置参数(如 `${1:-7}`)来处理可选值。详见 [提示词模板参数](https://github.com/earendil-works/pi/blob/v0.79.1/packages/coding-agent/docs/prompt-templates.md#arguments)。 - **可配置的项目信任默认值** - `defaultProjectTrust` 允许用户默认选择对未解析的项目信任请求是询问、始终信任还是从不信任,扩展程序也可检查实际信任决策。详见 [项目信任](https://github.com/earendil-works/pi/blob/v0.79.1/packages/coding-agent/docs/security.md#project-trust) 和 [`ctx.isProjectTrusted()`](https://github.com/earendil-works/pi/blob/v0.79.1/packages/coding-agent/docs/extensions.md#ctxisprojecttrusted)。 - **自然的扩展自动补全触发器** - 扩展自动补全提供商可以声明触发字符(如 `#` 或 `$`),从而无需斜杠命令前缀即可打开建议。详见 [自动补全提供商](https://github.com/earendil-works/pi/blob/v0.79.1/packages/coding-agent/docs/extensions.md#autocomplete-providers)。 ### 新增 - 为提示词模板位置参数添加了默认值展开功能,例如 `${1:-7}` ([#5553](https://github.com/earendil-works/pi/pull/5553) by [@dannote](https://github.com/dannote))。 - 添加了 `areExperimentalFeaturesEnabled` 功能开关,允许用户选择加入早期功能 ([#5547](https://github.com/earendil-works/pi/pull/5547) by [@vegarsti](https://github.com/vegarsti))。 - 为扩展程序添加了 `ctx.isProjectTrusted()`,用于观察实际的项目信任决策,包括临时信任决策 ([#5523](https://github.com/earendil-works/pi/issues/5523))。 - 添加了全局 `defaultProjectTrust` 设置,用于默认选择对未解析的项目信任请求是询问、始终信任还是从不信任。 - 为 `ctx.ui.addAutocompleteProvider()` 包装器添加了扩展自动补全触发字符支持 ([#4703](https://github.com/earendil-works/pi/issues/4703))。 - 为 Anthropic 和 Amazon Bedrock 提供商添加了源自 `@earendil-works/pi-ai` 的 Claude Fable 5 模型支持,包含自适应思考与 `xhigh` 处理强度支持。 ### 修复 - 修复了继承的 Amazon Bedrock 推理配置文件 ARN 区域解析问题,使其优先使用 ARN 内置区域而非 `AWS_REGION` ([#5527](https://github.com/earendil-works/pi/pull/5527) by [@AJM10565](https://github.com/AJM10565))。 - 修复了斜杠命令自动补全可见时继承的 IME 硬件光标定位问题 ([#5283](https://github.com/earendil-works/pi/pull/5283) by [@smoosex](https://github.com/smoosex))。 - 修复了继承的 z.ai 关闭思考请求,使其正确发送提供商的 `thinking: { type: "disabled" }` 兼容参数 ([#5330](https://github.com/earendil-works/pi/issues/5330))。 - 修复了继承的 OpenCode 补全模型元数据,使其将显式 `maxTokens` 发送为 `max_tokens` ([#5331](https://github.com/earendil-works/pi/issues/5331))。 - 修复了继承的 Moonshot Kimi 关闭思考请求,使其正确发送提供商的 `thinking: { type: "disabled" }` 兼容参数 ([#5531](https://github.com/earendil-works/pi/issues/5531))。 - 修复了继承的 Azure OpenAI Responses 请求,以禁用服务器端响应存储 ([#5530](https://github.com/earendil-works/pi/issues/5530))。 - 修复了继承的 Azure GPT-5.4 和 GPT-5.5 上下文窗口元数据,将其调整为 1,050,000 tokens,以匹配 Azure Foundry 部署,而非 OpenAI 的 272k 限制 ([#5559](https://github.com/earendil-works/pi/issues/5559))。 - 修复了继承的 OpenAI 和 Azure GPT-5 Pro `maxTokens` 元数据,将其调整为 128,000,纠正了上游将输入子限制重复作为输出限制的错误值 ([#5559](https://github.com/earendil-works/pi/issues/5559))。 - 修复了继承的提示词历史记录导航,在从历史记录浏览返回时恢复当前草稿 ([#5494](https://github.com/earendil-works/pi/issues/5494))。 - 修复了继承的拉丁文与中日韩(CJK)混合文本换行问题,使无空格 CJK 序列能在字素边界处正确换行,避免留下过长的尾部空白 ([#5495](https://github.com/earendil-works/pi/issues/5495))。 - 修复了扩展 OAuth 登录提示,使已提交的提示词行保持稳定,而非镜像当前输入值 ([#5433](https://github.com/earendil-works/pi/issues/5433))。 - 修复了 `/reload` 命令,使其能将更新后的 `steeringMode` 和 `followUpMode` 设置应用到当前会话 ([#5377](https://github.com/earendil-works/pi/issues/5377))。 - 修复了无效的 `models.json` 语法处理逻辑,使其跳过启动配置迁移,并报告正常的文件路径感知模型错误,而非原始 JSON 解析堆栈跟踪 ([#5418](https://github.com/earendil-works/pi/issues/5418))。 - 修复了 GitHub 发布说明和交互式更新日志链接,使其能正确解析包相对文档 URL ([#5516](https://github.com/earendil-works/pi/issues/5516))。 - 修复了 CLI 帮助和版本输出,包括普通重定向的 `--help`/`--version` 输出,并简化了 `list`/`config` 帮助文本。 - 修复了从临时会话执行 `/new` 的问题,确保新建会话保持为临时会话,而非默认持久化 ([#5045](https://github.com/earendil-works/pi/issues/5045))。 - 澄清了自定义模型文档,说明 `name` 和 `modelOverrides.name` 不会替换页脚或主模型列表中的模型 ID ([#4841](https://github.com/earendil-works/pi/issues/4841))。