发布日期: 2026-06-22
版本号: v0.79.10

本次更新新增了扩展压缩事件上下文,其中 session_before_compact 和 session_compact 事件现在包含 reason 和 willRetry 元数据,使扩展能够区分手动压缩、阈值自动压缩和溢出重试流程。同时优化了更新流程,pi update 命令将安装精确检查的版本,更新通知会显示变更日志链接,使升级过程更加可靠。此外还修复了多项问题,包括 find 工具在嵌套 git 仓库边界处的行为、用法文档斜杠命令表格遗漏、继承的 OpenAI 兼容流加密推理细节的保留、TUI 文档链接、会话替换或重载时的界面信息显示、计划模式示例的工具保留与执行逻辑,以及版本更新通知的显示准确性。

更新内容 (中文)

新功能

  • 扩展压缩事件上下文 - 扩展 session_before_compactsession_compact 事件现在包含 reasonwillRetry 字段,使扩展能够区分手动 /compact、阈值自动压缩和溢出重试流程。详见 session_before_compact / session_compact通过扩展进行自定义摘要
  • 更安全的更新流程 - pi update 将安装精确检查的 Pi 版本,且更新通知会显示变更日志 URL,使升级更具可预测性。详见 安装与管理

新增

  • 为扩展的 session_before_compactsession_compact 事件添加了 reasonwillRetry 元数据,以便扩展能区分手动、阈值和溢出压缩流程(#5962,由 @PizzaMarinara 贡献)。

修复

  • 修复了 find 工具在父级 .gitignore 规则忽略嵌套仓库时,需尊重嵌套 git 仓库边界的问题(#5960)。
  • 修复了使用文档斜杠命令表格以包含 /trust/import#5959)。
  • 修复了继承的 OpenAI 兼容流处理,以在匹配的工具调用增量到达前,保留加密的 reasoning_details#5114)。
  • 修复了指向计划模式扩展示例的 TUI 文档链接失效问题(#5957)。
  • 修复了会话替换或重载期间发出的临时扩展 UI 和会话开始消息,使其保持可见,并在重载完成前阻止重载输入(#5943)。
  • 修复了计划模式示例以保留活动自定义工具,在未找到计划时跳过操作提示,并从 agent_end 正确排队后续的细化/执行操作(#5940)。
  • 修复了 pi update 以安装 Pi 更新检查返回的确切版本,使 --force 重新安装该检查版本,在无可用版本时失败而非回退到无版本重新安装,并报告新旧版本。
  • 修复了更新通知以将实际变更日志 URL 显示为超链接文本。

更新内容 (原始)

New Features

  • Extension compaction event context - Extension session_before_compact and session_compact events now include reason and willRetry, so extensions can distinguish manual /compact, threshold auto-compaction, and overflow retry flows. See session_before_compact / session_compact and Custom Summarization via Extensions.
  • Safer update flow - pi update installs the exact checked Pi version, and update notices show the changelog URL, making upgrades more predictable. See Install and Manage.

Added

  • Added reason and willRetry metadata to extension session_before_compact and session_compact events so extensions can distinguish manual, threshold, and overflow compaction flows (#5962 by @PizzaMarinara).

Fixed

  • Fixed the find tool to respect nested git repository boundaries when parent .gitignore rules ignore the nested repo (#5960).
  • Fixed the usage docs slash command table to include /trust and /import (#5959).
  • Fixed inherited OpenAI-compatible streaming to preserve encrypted reasoning_details that arrive before matching tool call deltas (#5114).
  • Fixed broken TUI documentation links to the plan-mode extension example (#5957).
  • Fixed transient extension UI and session-start messages emitted during session replacement or reload so they remain visible, and kept reload input blocked until reload completes (#5943).
  • Fixed the plan-mode example to preserve active custom tools, skip the action prompt when no plan is found, and queue refinement/execution follow-ups correctly from agent_end (#5940).
  • Fixed pi update to install the exact version returned by the Pi update check, make --force reinstall that checked version, fail instead of falling back to an unversioned reinstall when no version is available, and report both the old and updated versions.
  • Fixed update notifications to display the actual changelog URL as the hyperlink text.

下载链接