发布日期: 2026-06-18
版本号: v0.79.7

本次更新为编程代理工具添加了多项新功能,包括支持自动切换明暗主题、将默认更新改为仅更新工具自身(新增 --all 参数用于同时更新扩展)、为扩展开发提供配置目录名与编辑差异工具的API导出,以及新增了对Warp终端内联图像渲染的支持。同时,优化了更新命令的行为与提示,更新了相关文档以使用配置化的项目路径,并修复了RPC错误信息、模型选择自动补全及树状导航器显示等多个问题。

更新内容 (中文)

新功能

  • 自动主题模式 - /settings 可为浅色和深色主题分别设置,并跟随终端配色方案变化。参见选择主题
  • 默认仅更新自身 - pi update 现在仅更新 pi 本体,使用 pi update --all 可同时更新 pi 和包。参见安装与管理
  • 扩展 API 辅助工具 - 扩展可使用 CONFIG_DIR_NAME 定位项目配置路径,并导入编辑差异辅助工具以生成编辑样式差异。参见 ctx.cwdSDK 导出
  • Warp 内联图像支持 - Warp 终端现在可通过 Kitty 图形检测实现内联图像渲染。参见图像

新增

  • 新增自动主题模式,使 /settings 可使用独立的浅色/深色主题并跟随终端配色方案变化 (#5874)。
  • 新增 Warp 终端图像能力检测继承功能,使内联图像可通过 Warp 的 Kitty 图形支持渲染 (#5841,由 @dodiego 贡献)。
  • 从 coding-agent 公共 API 导出 CONFIG_DIR_NAME,使扩展无需硬编码 .pi 即可解析项目配置路径 (#5869,由 @xl0 贡献)。
  • 从公共 API 导出编辑差异辅助工具 (generateDiffStringgenerateUnifiedPatchEditDiffResult),供需要编辑样式差异的扩展使用 (#5756,由 @xl0 贡献)。

变更

  • 将裸 pi update 命令改为仅更新 pi,新增 pi update --all 用于同时更新 pi 和扩展,并优化扩展更新提示。
  • 在主题名称中保留 / 字符用于自动浅色/深色主题设置。
  • 更新扩展文档、示例、运行时帮助、信任提示和配置标签,使用已配置的项目配置目录替代硬编码的 .pi 路径。

修复

  • 修复 RPC 未知命令错误现在包含请求 ID,避免客户端因等待响应而挂起 (#5868)。
  • 修复 /model 自动补全和模型选择搜索,无论先输入提供商还是模型 token 均可匹配查询。
  • 修复树状导航器,使深层条目可水平平移,确保选中项保持可读 (#5830)。

更新内容 (原始)

New Features

  • Automatic theme mode - /settings can choose separate light and dark themes and follow terminal color-scheme changes. See Selecting a Theme.
  • Self-only updates by default - pi update now updates pi only, with pi update --all for updating pi and packages together. See Install and Manage.
  • Extension API helpers - extensions can use CONFIG_DIR_NAME for project config paths and import edit diff helpers for edit-style diffs. See ctx.cwd and SDK Exports.
  • Warp inline images - Warp terminals now get inline image rendering through Kitty graphics detection. See Image.

Added

  • Added automatic theme mode so /settings can use separate light and dark themes and follow terminal color-scheme changes (#5874).
  • Added inherited Warp terminal image capability detection so inline images render through Warp’s Kitty graphics support (#5841 by @dodiego).
  • Exported CONFIG_DIR_NAME from the coding-agent public API so extensions can resolve project config paths without hardcoding .pi (#5869 by @xl0).
  • Exported edit diff helpers (generateDiffString, generateUnifiedPatch, and EditDiffResult) from the public API for extensions that need edit-style diffs (#5756 by @xl0).

Changed

  • Changed bare pi update to update only pi, added pi update --all for updating pi and extensions together, and clarified extension update prompts.
  • Reserved / in theme names for automatic light/dark theme settings.
  • Updated extension docs, examples, runtime help, trust prompts, and config labels to use the configured project config directory instead of hardcoded .pi paths.

Fixed

  • Fixed RPC unknown-command errors to include the request id so clients do not hang waiting for a response (#5868).
  • Fixed /model autocomplete and model selection searches to match provider/model queries regardless of whether the provider or model token is typed first.
  • Fixed the tree navigator to horizontally pan deep entries so the selected item remains readable (#5830).

下载链接