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

pi coding agent v1.6.1:弃用 showCacheMissNotices

v1.6.1

原文
发到 X
推荐理由

v1.6.1 包含破坏性变更,直接移除了 showCacheMissNotices 相关 API 并重构了通知设置结构。依赖该配置的开发者必须检查 /settings 或代码中的 SettingsManager 调用,确保迁移到新的 notices.* 字段,否则可能导致功能异常。

New Features

新功能

  • Decision models in codemode: GitHub Copilot's gpt-6-luna-decisions and Radius decision models can be called from codemode models.classify(), and results include the provider's responseId. See Classify.
  • One setting per transcript notice: cache misses, cache warming, compaction costs, and reasoning drops each have their own setting under Notices in /settings. See Model and thinking.
  • Dialog status kind for extensions: ctx.ui.select(), ctx.ui.confirm(), and ctx.ui.input() accept blockedKind, so terminals with program status can show a dialog as a permission request, question, or login. See Program Status Kind.
  • codemode 中的决策模型:GitHub Copilot 的 gpt-6-luna-decisions 和 Radius 决策模型可从 codemode models.classify() 调用,结果中包含提供方的 responseId。参见 Classify。
  • 每个转录通知一项设置:缓存未命中、缓存预热、压缩成本和推理丢弃在 /settings 的 Notices 下各有独立设置。参见 Model and thinking。
  • 扩展的对话框状态类型:ctx.ui.select()、ctx.ui.confirm() 和 ctx.ui.input() 接受 blockedKind,因此具有程序状态的终端可以将对话框显示为权限请求、问题或登录提示。参见 Program Status Kind。

Breaking Changes

破坏性变更

  • Replaced the showCacheMissNotices setting with one setting per transcript notice: notices.cacheMisses, notices.cacheWarming, notices.compactionCosts, and notices.reasoningDrops, configured under Notices in /settings. An existing showCacheMissNotices value is migrated to all four. SettingsManager.getShowCacheMissNotices() and setShowCacheMissNotices() are removed; use getNotices() and setNotice() instead
  • 用每个转录通知一项设置替换了 showCacheMissNotices 设置:notices.cacheMisses、notices.cacheWarming、notices.compactionCosts 和 notices.reasoningDrops,在 /settings 的 Notices 下配置。现有的 showCacheMissNotices 值将迁移到全部四项。SettingsManager.getShowCacheMissNotices() 和 setShowCacheMissNotices() 已移除;请改用 getNotices() 和 setNotice()。

Added

新增

  • Added compat.supportsStrictMode for google-generative-ai and google-vertex models in models.json, so Gemini 3+ models served under IDs without the version can use strict tools (#12321)
  • Added a blockedKind option to ctx.ui.select(), ctx.ui.confirm() and ctx.ui.input() that sets the kind of blocked program status (OSC 7501) the dialog reports, for example "permission" for a select that approves an action. See Dialogs
  • Added full_output_error to the bash tool's structured output and fullOutputError to its details, BashResult and BashExecutionMessage, giving the reason when truncated output could not be saved to a temp file. User bash output that was truncated without a saved file now says so in the model context and the TUI (#10585)
  • Added the gpt-6-luna-decisions decision model for GitHub Copilot, callable from codemode models.classify() with text and images (#12395)
  • Added decision models on the Radius provider, callable from codemode models.classify()
  • Added responseId to codemode models.classify() results. OpenRouter's System One fills it with its generation ID, and its billed cost replaces the catalog estimate. See codemode
  • 在 models.json 中为 google-generative-ai 和 google-vertex 模型添加了 compat.supportsStrictMode,以便通过不带版本号的 ID 提供的 Gemini 3+ 模型可使用严格工具(#12321)
  • 为 ctx.ui.select()、ctx.ui.confirm() 和 ctx.ui.input() 添加了 blockedKind 选项,用于设置对话框报告的阻塞程序状态类型(OSC 7501),例如批准操作的 select 使用 "permission"。参见 Dialogs
  • 向 bash 工具的结构化输出添加了 full_output_error,并向其详细信息 BashResult 和 BashExecutionMessage 添加了 fullOutputError,以说明当截断的输出无法保存到临时文件时的原因。现在,未在模型上下文和 TUI 中保存文件的截断用户 bash 输出会明确提示(#10585)
  • 为 GitHub Copilot 添加了 gpt-6-luna-decisions 决策模型,可通过 codemode models.classify() 调用文本和图片(#12395)
  • 在 Radius 提供方上添加了决策模型,可通过 codemode models.classify() 调用
  • 在 codemode models.classify() 的结果中添加了 responseId。OpenRouter 的 System One 将其填充为其生成 ID,且计费成本取代了目录估算值。参见 codemode

Changed

更改

  • Changed the default Mistral model from devstral-medium-latest to mistral-medium-latest, because Mistral retired Devstral and the model catalog no longer lists it
  • Changed after_provider_response to also fire for HTTP error responses (4xx/5xx) and for each retried attempt on OpenAI, Azure OpenAI, Anthropic, and Google models, as it already did for OpenAI Codex, Mistral, Radius, and Amazon Bedrock, so extensions can read the status and retry-after of rate-limited requests (#12376)
  • Changed first-time setup to show the colored pi logo and only ask about analytics; the theme defaults to the system theme, which follows the terminal's colors
  • 将默认 Mistral 模型从 devstral-medium-latest 更改为 mistral-medium-latest,因为 Mistral 已停用 Devstral,且模型目录不再列出该模型
  • 修改了 after_provider_response,使其在 OpenAI、Azure OpenAI、Anthropic 和 Google 模型的 HTTP 错误响应(4xx/5xx)以及每次重试时触发,就像它对 OpenAI Codex、Mistral、Radius 和 Amazon Bedrock 所做的那样,以便扩展程序可以读取速率限制请求的状态和重试间隔时间 (#12376)
  • 更改首次设置以显示彩色 pi 标志并仅询问关于分析数据的问题;主题默认跟随系统主题,后者遵循终端的颜色

Fixed

已修复

  • Fixed selecting the xhigh thinking level for Gemini 4 Hydrogen and Neon on the google and google-vertex providers failing with Unsupported Google thinking level mapping ... xhigh -> xhigh (#12184)
  • Fixed sessions with very many entries after the last compaction (about 120k or more) failing to load with RangeError: Maximum call stack size exceeded when building the context (#12154)
  • Fixed ctx.ui.pasteToEditor() and ctx.ui.setEditorText() not repainting the editor when called outside terminal input handling, such as after an await in a command handler (#12295)
  • Fixed the bash tool returning (no output) when the output ended with a line over 50KB followed by an empty line; it now shows the end of that line (#12350)
  • Fixed /tree navigation adding the branch's prompts to Up-arrow history again on every navigation; prompts already in history now move to the most recent position instead of repeating (#12279)
  • Fixed closing the console window or terminal tab on Windows skipping session_shutdown and leaving commands started by the bash tool running, for example sleep 300 from bash -c "sleep 300". pi now handles SIGHUP on Windows like on POSIX and waits for taskkill to finish before it exits. Quitting with Ctrl+D or /quit while a ! command runs, or ending RPC mode while a bash command runs, no longer leaves that command running on Windows either
  • Fixed the AuthStorage coalesced-reload test failing intermittently on systems with coarse file timestamps (#12190)
  • Fixed the thinkingLevelMap reference in the models.json schema and docs suggesting pi does not support the xhigh and max thinking levels; it now says they are opt-in and only offered when mapped, and the model guide explains how to map thinking levels (#12281)
  • Fixed Mermaid diagrams wider than the terminal falling back to their source without explanation; a note now says how many columns the diagram needs (#12324)
  • Fixed copies on Wayland silently failing when wl-copy guessed a non-text MIME type from the copied text, for example application/x-ruby for text starting with def, which clipboard managers such as Klipper discard; pi now copies as text/plain (#12446 by @ttempaa)
  • Fixed pi crashing when the bash tool or a ! command could not write its full-output temp file, for example when /tmp was full, over a per-user quota or not writable; both now keep the truncated output and say why the full output could not be saved. Opening the external editor and /share now report such failures instead of crashing (#10585)
  • Fixed /login showing a provider as configured when its stored auth.json key is a !command that fails, while requests failed with No API key found. /login now shows stored key did not resolve, getProviderAuthStatus() returns { configured: false, source: "stored" }, and entering the same !command again in /login runs it again instead of reusing the cached failure (#12164)
  • Fixed pi update run from WSL through the Windows installation of pi rebuilding that installation with Linux npm; it now stops and says that running the Windows installation from WSL is unsupported (#12172)
  • Fixed right-click paste inserting the clipboard twice in Tabby on Windows, which pastes on right-click itself (#12406)
  • Fixed dialogs shown before interactive mode starts, such as the project trust prompt, the missing session folder prompt and first-time setup, reporting no blocked program status (OSC 7501). Blocked messages of multi-line dialog titles are now the first line only, for example Trust project folder? instead of the folder path and explanation. The project trust prompt and first-time setup report kind=permission (#12439)
  • Fixed GitHub Copilot listing decision models the account cannot use, such as microsoft-decision-1 on accounts whose plan does not include it, where every call failed with HTTP 400. After /login or the next token refresh, only the decision models in the account's Copilot model catalog are listed (#12395)
  • Fixed the bash tool on Windows not finding Git for Windows installed outside Program Files and running commands through the WSL launcher System32\bash.exe instead. pi now asks the git.exe on PATH for its installation (git var GIT_SHELL_PATH, Git 2.47+) and uses its Git Bash before other bash.exe on PATH (#12408)
  • Fixed RPC mode, session loading, and llama.cpp model events rescanning an incomplete line on every chunk, which made large lines, such as messages with images, take time quadratic in their size. llama.cpp model events also accept lone CR line endings and CRLF split across chunks (#12224)
  • Fixed ! command output coming back collapsed after compaction, /reload, /resume or /tree while ctrl+o was set to expanded (#12426, #12427 by @acmerfight)
  • 修复了在 google 和 google-vertex 提供商中为 Gemini 4 Hydrogen 和 Neon 选择 xhigh 思考级别失败的问题,报错为 Unsupported Google thinking level mapping ... xhigh -> xhigh (#12184)
  • 修复了在最后一次压缩后条目非常多的会话(约 120k 或更多)在构建上下文时因 RangeError: Maximum call stack size exceeded 而加载失败的问题 (#12154)
  • 修复了 ctx.ui.pasteToEditor() 和 ctx.ui.setEditorText() 在终端输入处理之外调用(例如在命令处理程序中的 await 之后)时不重绘编辑器的问题 (#12295)
  • 修复了当输出以超过 50KB 的行结尾并后跟空行时,bash 工具返回 (no output) 的问题;现在它会显示该行的末尾内容 (#12350)
  • 修复了 /tree 导航在每次导航时再次将分支的提示词添加到上箭头历史中的问题;已在历史中的提示词现在移动到最新位置而不是重复出现 (#12279)
  • 修复了在 Windows 上关闭控制台窗口或终端标签页会跳过 session_shutdown 并导致由 bash 工具启动的命令(例如 sleep 300 from bash -c "sleep 300")继续运行的问题。pi 现在像 POSIX 一样在 Windows 上处理 SIGHUP,并在退出前等待 taskkill 完成。在使用 Ctrl+D 或 /quit 退出时如果 ! 命令正在运行,或在 bash 命令运行时结束 RPC 模式,Windows 上也不再让这些命令继续运行
  • 修复了 AuthStorage 合并重新加载测试在具有粗粒度文件时间戳的系统上间歇性失败的问题 (#12190)
  • 修复了 models.json 架构和文档中的 thinkingLevelMap 引用暗示 pi 不支持 xhigh 和 max 思考级别的问题;现在说明它们是可选的,仅在映射时提供,并且模型指南解释了如何映射思考级别 (#12281)
  • 修复了宽度超过终端宽度的 Mermaid 图表无声回退到其源代码的问题;现在会注明图表需要多少列 (#12324)
  • 修复了 Wayland 下 wl-copy 从复制文本中猜测出非文本 MIME 类型(例如以 def 开头的文本被识别为 application/x-ruby)时静默失败的问题,此类内容会被 Klipper 等剪贴板管理器丢弃;现在 pi 会将其作为 text/plain 复制 (#12446 by @ttempaa)
  • 修复了当 bash 工具或 ! 命令无法写入其完整输出的临时文件时 pi 崩溃的问题,例如在 /tmp 已满、超出用户配额或不可写时;现在两者都会保留截断后的输出并说明为何无法保存完整输出。打开外部编辑器和 /share 时会报告此类故障而非崩溃 (#10585)
  • 修复了 /login 在存储的 auth.json 密钥是一个失败的 !command 时仍显示该提供商已配置的问题,而请求则因未找到 API 密钥而失败。/login 现在会显示存储的密钥未能解析,getProviderAuthStatus() 返回 { configured: false, source: "stored" },并且在 /login 中再次输入相同的 !command 时会重新运行它,而不是重用缓存的失败结果 (#12164)
  • 修复了通过 WSL 从 Windows 安装的 pi 运行更新时重建该安装并使用 Linux npm 的问题;现在它会停止并说明从 WSL 运行 Windows 安装不受支持 (#12172)
  • 修复了在 Windows 上的 Tabby 中右键粘贴会将剪贴板内容插入两次的问题,因为 Tabby 本身就在右键点击时进行粘贴 (#12406)
  • 修复了在交互式模式启动之前显示的对话框(如项目信任提示、缺失会话文件夹提示和首次设置)未报告阻止程序状态(OSC 7501)的问题。多行对话框标题的阻止消息现在仅包含第一行,例如显示“信任项目文件夹?”而不是文件夹路径和解释。项目信任提示和首次设置会报告 kind=permission (#12439)
  • 修复了 GitHub Copilot 列出账户无法使用的决策模型的问题,例如在不包含该模型的计划账户上列出 microsoft-decision-1,导致每次调用都因 HTTP 400 而失败。在 /login 之后或下次令牌刷新后,仅列出账户 Copilot 模型目录中的决策模型 (#12395)
  • 修复了 Windows 上的 bash 工具未找到安装在 Program Files 之外的 Git for Windows,而是通过 WSL 启动器 System32\bash.exe 运行命令的问题。pi 现在会向 PATH 上的 git.exe 查询其安装位置(git var GIT_SHELL_PATH,Git 2.47+),并在 PATH 上的其他 bash.exe 之前使用其 Git Bash (#12408)
  • 修复了 RPC 模式、会话加载以及 llama.cpp 模型事件在每次处理数据块时重新扫描不完整行的问题,该问题导致大行(例如包含图片的消息)的处理时间随其大小呈二次方增长。llama.cpp 模型事件现在也接受单独的 CR 换行符以及跨数据块分割的 CRLF 换行符 (#12224)
  • 修复了在 compaction、/reload、/resume 或 /tree 操作后,当 ctrl+o 设置为展开状态时,! 命令的输出被折叠的问题 (#12426, #12427 by @acmerfight)

更进一步:量化金融体系

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

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件