跳到主内容
精选88pi coding agent(GitHub Releases)AI 编程与模型

pi coding agent v0.84.3:破坏性变更 GoogleThinkingLevel

v0.84.3

原文
推荐理由

涉及 GoogleThinkingLevel 类型的重命名与重构,属于破坏性变更。依赖该 SDK 或自定义适配器的开发者必须检查代码中的类型引用并及时迁移,否则会导致编译或运行时错误。

New Features

新功能

  • PowerShell tool — Use optional native PowerShell command execution on Windows. See PowerShell Tool.
  • Safer managed updates — Stage, verify, and atomically activate updates for installer-managed installations. See Install and Manage.
  • Model and thinking controls — Select thinking levels with /thinking, search defaults, keep selections session-scoped, and persist them explicitly with Ctrl+S. See Models and Thinking.
  • PowerShell 工具 — 在 Windows 上使用可选的原生 PowerShell 命令执行。参见 PowerShell 工具。
  • 更安全的托管更新 — 对由安装程序管理的安装进行分阶段、验证并原子化激活更新。参见安装与管理。
  • 模型与思维控制 — 使用 /thinking 选择思维层级,搜索默认值,保持选择范围限定于当前会话,并通过 Ctrl+S 显式持久化。参见模型与思维。

Breaking Changes

破坏性变更

  • Renamed the inherited GoogleThinkingLevel type to GoogleApiThinkingLevel and added ResolvedGoogleThinkingLevel for normalized adapter levels.
  • 将继承的 GoogleThinkingLevel 类型重命名为 GoogleApiThinkingLevel,并添加了用于规范化适配器层级的 ResolvedGoogleThinkingLevel。

Added

新增

  • Added an optional powershell tool for Windows, configurable through defaultTools and the SDK. See PowerShell Tool.
  • Added a /thinking selector and searchable default choices to the model and thinking selectors; Ctrl+S saves the selected model as the global default. See Models and Thinking.
  • Added optional routing session IDs to exported compaction summary helpers so callers can preserve provider routing without enabling prompt cache writes.
  • Added transcript usage notices for compaction and branch summaries when cache miss notices are enabled.
  • Added session_compact_failed extension events so compaction failures and aborts expose their reason, retry state, source, and error message to handlers (#8175).
  • Added inherited provider-neutral toolChoice support to simple stream requests.
  • Added inherited automatic Anthropic server-side refusal fallback for supported first-party models, including returned-model usage pricing (#8017).
  • Added inherited configurable OpenAI-compatible thinking-token budget fields for vLLM, Qwen/SGLang, and llama.cpp servers. See OpenAI Compatibility (#8275 by @bnsd55).
  • Added inherited China-specific ZAI Coding Plan models, including GLM-4.6V vision support and API-equivalent usage cost estimates (#8220).
  • Added inherited deepseek-v4-pro-0813 support to the Qwen Token Plan Individual catalog (#8194).
  • 为 Windows 添加了可选的 powershell 工具,可通过 defaultTools 和 SDK 进行配置。参见 PowerShell 工具。
  • 在模型和思维选择器中添加了 /thinking 选择器和可搜索的默认选项;Ctrl+S 可将选定的模型保存为全局默认值。参见模型与思维。
  • 在导出的压缩摘要辅助函数中添加了可选的路由会话 ID,以便调用方在不启用提示缓存写入的情况下保留提供商路由。
  • 当启用缓存未命中通知时,为压缩和分支摘要添加了转录使用通知。
  • 添加了 session_compact_failed 扩展事件,使压缩失败和中止能够向处理程序暴露其原因、重试状态、来源和错误消息 (#8175)。
  • 为简单流请求添加了继承的提供商中立 toolChoice 支持。
  • 为受支持的官方模型(包括返回模型的用量定价)添加了继承的自动 Anthropic 服务端拒绝回退机制 (#8017)。
  • 为 vLLM、Qwen/SGLang 和 llama.cpp 服务器添加了继承的可配置 OpenAI 兼容思维令牌预算字段。参见 OpenAI 兼容性 (#8275 by @bnsd55)。
  • 添加了继承的中国专属 ZAI Coding Plan 模型,包括 GLM-4.6V 视觉支持和 API 等效用量成本估算 (#8220)。
  • 在 Qwen Token Plan Individual 目录中添加了对 deepseek-v4-pro-0813 的支持 (#8194)。

Changed

变更

  • Changed experimental installer-managed installations so pi update stages, verifies, and atomically activates the selected release in place. See Install and Manage.
  • Changed inherited built-in xAI models to use the Responses API with encrypted reasoning replay and made Grok 4.6 the default xAI model (#8124 by @Jaaneek).
  • Changed inherited Anthropic, Azure OpenAI, Google, Mistral, and OpenAI adapters to send Pi's default User-Agent unless overridden (#8305).
  • Changed Windows and WSL keybinding defaults to avoid terminal-reserved shortcuts for image paste, model cycling, editor undo, fullscreen transcript navigation and search, and message queueing (#8372).
  • Changed Bun release archives to ship the native clipboard binary only inside the wrapper package, removing a duplicate platform package from each archive.
  • Changed package resource glob expansion to use Node.js's built-in implementation with deterministic visible-path matching, reducing the installed runtime dependency tree.
  • Changed the bundled Node.js runtime to load jiti only when importing an extension and Babel only when uncached source needs transformation, reducing CLI startup time and bundle size.
  • Changed syntax highlighting to initialize only twenty common languages eagerly and defer the remaining grammars until after the initial TUI render, reducing CLI startup time.
  • Changed the Node.js CLI and RPC entrypoints to load a bundled runtime, reducing startup filesystem reads while keeping the public library and legacy module paths on the modular runtime for normal dependency identity.
  • Changed session sharing to render clickable terminal links, display only the canonical Radius artifact URL, and include the current system prompt and active tool definitions in Radius session shares.
  • 更改了实验性的安装程序托管安装,使其原地执行 pi 更新阶段、验证并原子化激活所选版本。参见安装与管理。
  • 更改了继承的内置 xAI 模型以使用 Responses API 并支持加密推理回放,同时将 Grok 4.6 设为默认 xAI 模型 (#8124 by @Jaaneek)。
  • 更改了继承的 Anthropic、Azure OpenAI、Google、Mistral 和 OpenAI 适配器,除非被覆盖,否则均发送 Pi 的默认 User-Agent (#8305)。
  • 更改了 Windows 和 WSL 的快捷键默认设置,以避免终端保留的图像粘贴、模型切换、编辑器撤销、全屏对话导航与搜索以及消息排队等快捷方式冲突 (#8372)。
  • 更改了 Bun 发布归档文件,使其仅在包装包内包含原生剪贴板二进制文件,并从每个归档文件中移除重复的平台包。
  • 更改了包资源通配符展开逻辑,以使用 Node.js 内置的实现进行确定性的可见路径匹配,从而减少已安装运行时依赖树的大小。
  • 更改了捆绑的 Node.js 运行时,使其仅在导入扩展时加载 jiti,仅在需要转换未缓存源代码时加载 Babel,从而减少 CLI 启动时间和打包体积。
  • 更改了语法高亮逻辑,使其仅预先初始化二十种常用语言,并将其余语法的加载推迟到初始 TUI 渲染之后,从而减少 CLI 启动时间。
  • 更改了 Node.js CLI 和 RPC 入口点,使其加载捆绑的运行时,在保持公共库和遗留模块路径位于模块化运行时上以确保正常依赖标识的同时,减少启动时的文件系统读取操作。
  • 更改了会话共享功能,使其渲染可点击的终端链接,仅显示标准的 Radius 工件 URL,并在 Radius 会话共享中包含当前系统提示词和活跃工具定义。

Fixed

修复了

  • Fixed failed extension factories leaving event subscriptions, provider registrations, and default flag state active (#8424 by @acmerfight).
  • Fixed models.json typings omitting the documented OpenAI-compatible compat.supportsFinishReason provider and model override (#8487 by @petrroll).
  • Fixed /model and /thinking selections being persisted globally unless explicitly saved with Ctrl+S (#5263).
  • Fixed JSON and RPC toolcall_start events omitting the tool call id and name (#7953 by @christianklotz).
  • Fixed extensions failing to load when the Node.js CLI runs as a single-executable application (#8237).
  • Fixed nested Markdown skills inside .agents/skills/ grouping directories not being discovered.
  • Fixed compaction and branch summarization requests exposing tools to providers.
  • Fixed single-object edit tool inputs failing validation by accepting them as one-edit arrays in both coding-agent and harness edit tools (#7835).
  • Fixed root Markdown files such as README.md and AGENTS.md in skill directories being reported as broken skills unless they declare valid skill frontmatter (#7805).
  • Fixed the default Cerebras model referencing an unavailable Z.AI model.
  • Fixed inherited OpenAI-compatible Chat Completions reasoning replay to preserve and resend assistant-level reasoning_details verbatim and in order (#7994).
  • Fixed inherited Anthropic server-side fallback responses being priced with the requested model instead of the returned fallback model (#8285).
  • Fixed inherited GitHub Copilot login triggering model-policy rate limits by limiting policy updates, retrying model discovery once, and honoring server retry delays (#7850).
  • Fixed inherited Amazon Bedrock dropping and failing to replay opaque redacted reasoning from non-Anthropic models (#8314 by @seiji).
  • Fixed inherited Z.AI Coding Plan models deriving incomplete reasoning-effort metadata, including missing GLM-5.3 low, high, and max levels (#8336).
  • Fixed inherited DeepSeek V4 Flash on OpenCode and OpenCode Go omitting its supported low thinking level (#8181 by @tianshuang).
  • Fixed inherited Azure OpenAI Responses ignoring toolChoice in provider-specific stream requests.
  • Fixed inherited Amazon Bedrock response hooks receiving only a synthesized request id instead of the raw response headers (#8234).
  • Fixed inherited Kimi usage reporting so top-level cached_tokens count as cache reads instead of normal input tokens (#8075).
  • Fixed inherited Google custom models ignoring thinkingLevelMap, which dropped extended thinking controls (#8135).
  • Fixed writes to auth.json and models-store.json overriding administrator-managed file permissions and ACLs (#7779).
  • Fixed UTF-8 BOM markers preventing frontmatter and user configuration files from loading (#8337).
  • Fixed invalid settings files being easy to miss during interactive startup by rendering warnings with the file path inside the TUI (#7829).
  • Fixed the subagent example repeatedly prompting before running project-local agents in trusted repositories (#8261).
  • Fixed npm package update checks treating older registry versions as available updates, preventing pi update from downgrading already-newer installed packages (#8226).
  • Fixed built-in llama.cpp models disappearing from /model when /llama refreshed a configured server under PI_OFFLINE, and included idle-slept sleeping router models in the selectable catalog (#8167).
  • Fixed pi.registerFlag() accepting default values that do not match the declared flag type (#8064).
  • Fixed Z.AI Coding Plan defaults referencing the removed GLM-5.1 model (#8096).
  • Fixed repeated ambiguous truncated-response recovery being mislabeled as context overflow (#8130).
  • Fixed duplicate fullscreen right-click paste in VS Code-based terminals on Windows (#8186).
  • Fixed inherited padded text exceeding narrow terminal widths (#8252).
  • Fixed inherited wrapped Markdown table links leaking color into borders and neighboring cells, including tables inside blockquotes (#8335).
  • Fixed llama.cpp login guidance to direct users to /llama before /model when no local models are loaded (#8203).
  • 修复了失败的扩展工厂导致事件订阅、提供者注册和默认标志状态保持活跃的问题 (#8424 by @acmerfight)。
  • 修复了 models.json 类型定义遗漏了文档中记录的 OpenAI 兼容 compat.supportsFinishReason 提供者和模型覆盖的问题 (#8487 by @petrroll)。
  • 修复了 /model 和 /thinking 选择被全局持久化保存的问题,除非显式使用 Ctrl+S 保存 (#5263)。
  • 修复了 JSON 和 RPC toolcall_start 事件遗漏工具调用 ID 和名称的问题 (#7953 by @christianklotz)。
  • 修复了当 Node.js CLI 作为单可执行应用程序运行时扩展无法加载的问题 (#8237)。
  • 修复了 .agents/skills/ 目录中的嵌套 Markdown 技能分组目录未被发现的问题。
  • 修复了压缩和分支摘要请求向提供者暴露工具的问题。
  • 修复了单对象编辑工具输入验证失败的问题,通过在 coding-agent 和 harness 编辑工具中将它们接受为单编辑数组来解决 (#7835)。
  • 修复了技能目录中的根 Markdown 文件(如 README.md 和 AGENTS.md)在未声明有效的技能 frontmatter 时被报告为损坏技能的问题 (#7805)。
  • 修复了默认 Cerebras 模型引用不可用的 Z.AI 模型的问题。
  • 修复了继承自 OpenAI 兼容的 Chat Completions 推理回放功能,以按原样且按顺序保留并重发助手级别的 reasoning_details(#7994)。
  • 修复了继承自 Anthropic 的服务端回退响应被错误地按请求模型而非返回的回退模型计费的问题(#8285)。
  • 修复了继承自 GitHub Copilot 登录触发模型策略速率限制的问题,方法包括限制策略更新、重试模型发现一次以及尊重服务端重试延迟(#7850)。
  • 修复了继承自 Amazon Bedrock 丢弃并未能重放来自非 Anthropic 模型的模糊脱敏推理内容的问题(由 @seiji 提交 #8314)。
  • 修复了继承自 Z.AI Coding Plan 模型推导出不完整的推理力度元数据的问题,包括缺失 GLM-5.3 的低、高和最大级别(#8336)。
  • 修复了继承自 DeepSeek V4 Flash 在 OpenCode 和 OpenCode Go 中省略其支持的低思考级别的问题(由 @tianshuang 提交 #8181)。
  • 修复了继承自 Azure OpenAI Responses 忽略 provider-specific stream 请求中 toolChoice 的问题。
  • 修复了继承自 Amazon Bedrock 响应钩子仅接收合成请求 ID 而非原始响应头的问题(#8234)。
  • 修复了继承自 Kimi 的使用量报告问题,使顶层 cached_tokens 计为缓存读取而非普通输入令牌(#8075)。
  • 修复了继承自 Google 自定义模型忽略 thinkingLevelMap 的问题,该问题导致扩展思考控制丢失(#8135)。
  • 修复了向 auth.json 和 models-store.json 写入时覆盖管理员管理的文件权限和 ACL 的问题(#7779)。
  • 修复了 UTF-8 BOM 标记阻止 frontmatter 和用户配置文件加载的问题(#8337)。
  • 修复了在交互式启动期间难以发现无效设置文件的问题,通过在 TUI 中以文件路径呈现警告来解决(#7829)。
  • 修复了 subagent 示例在可信仓库中运行项目本地代理之前反复提示的问题(#8261)。
  • 修复了 npm 包更新检查将较旧的注册表版本视为可用更新的问题,从而防止 pi update 降级已更新的已安装包(#8226)。
  • 修复了在 PI_OFFLINE 下 /llama 刷新配置的服务器时内置 llama.cpp 模型从 /model 消失的问题,并将空闲休眠的路由器模型包含在可选目录中(#8167)。
  • 修复了 pi.registerFlag() 接受与声明的标志类型不匹配的默认值的问题(#8064)。
  • 修复了 Z.AI Coding Plan 默认值引用已移除的 GLM-5.1 模型的问题(#8096)。
  • 修复了重复的模糊截断响应恢复被错误标记为上下文溢出的问题(#8130)。
  • 修复了 Windows 上基于 VS Code 的终端中重复的全屏右键粘贴问题 (#8186)。
  • 修复了继承的填充文本超出窄终端宽度的问题 (#8252)。
  • 修复了继承的换行 Markdown 表格链接将颜色泄漏到边框和相邻单元格的问题,包括块引用内的表格 (#8335)。
  • 修复了 llama.cpp 登录引导,当未加载本地模型时,将用户引导至 /llama 而非 /model (#8203)。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近