更新记录Changelog
每个版本的变更记录,与源码仓库 changes/ 目录同源;程序内的新版本提示也链接到本页。
What changed in each release, mirroring the changes/ directory of the source repository. The in-app update notice links here too.
0.1.10-rc.3rc.2 + Windows 启动清理的写访问探测修复(KI-23)+ Windows 测试门禁端到端通过(KI-21、KI-22)+ 并发设置写入不丢失键(KI-24;候选版 2026-12-06)rc.2 + the Windows startup cleanup's write-access probe fix (KI-23) + the Windows test gate passing end to end (KI-21, KI-22) + concurrent settings writers keep each other's keys (KI-24; release candidate 2026-12-06)
第三个 v0.1.10 候选版(预发布通道),取代 2026-12-05 自 6011ac61 发布的 rc.2;rc.1 的候选内容(流式 CPU 主线 ADR-0052、上游追平 Pi v1.7.0 ADR-0051、子代理停止与中断修复、含 ADR-0053 的已知问题批量处置)不变,完整说明见下方 0.1.10-rc.1 节与源码仓库 changes/v0.1.10.md,Breaking changes 与 rc.1、rc.2 逐字相同;stable 发布时本节折入 0.1.10。安装:已有用户执行 rpi update --rc(rpi update --all --rc 同时把七个锁步扩展更新到 0.1.10-rc.3);install.sh 不分发 RC(releases/latest 仍为稳定版 0.1.9)。本节与源码仓库 changes/v0.1.10-rc.3.md 同源。
The third v0.1.10 release candidate (pre-release channel), superseding rc.2 published on 2026-12-05 from 6011ac61; the rc.1 candidate content (the streaming CPU main line ADR-0052, upstream parity to Pi v1.7.0 ADR-0051, the subagent stop/interrupt fix, the known-issue batch including ADR-0053) is unchanged — see the 0.1.10-rc.1 section below and changes/v0.1.10.md in the source repository for the full text; the breaking changes are identical to rc.1 and rc.2; this section folds into 0.1.10 at stable-release time. Install: existing users run rpi update --rc (rpi update --all --rc also updates the seven lockstep extensions to 0.1.10-rc.3); install.sh does not serve RCs (releases/latest stays at the stable 0.1.9). This section mirrors changes/v0.1.10-rc.3.md in the source repository.
-
修复:Windows 启动清理——目录在移动前先按占用分类(KI-23,rpi
65b21893):Windows 自更新(ADR-0050)的启动清理扫描(以及同版本重装时对既有代副本的替换)此前以「改名到旁边失败」判定目录为活,前提是 Windows 拒绝改名含已加载库的目录。Windows 测试腿实测并非如此:目录可以改名,只有删除在库文件处失败,而枚举顺序排在库之前的文件已被删——某个进程正在使用、却没有 pin 覆盖的代,可能被改名为*.garbage-<pid>并被删掉一半。已映射的映像确实拒绝写访问(同时授予 DELETE 访问):现在目录类残留在任何移动之前逐文件以写方式打开(UpdateFs::probe_writable),共享冲突、锁冲突或用户映射节都把目录判为活——保持完整、保留原名(classify-only 扫描一致);同一探测也保护代替换。只读属性、ACL 拒绝与路径消失交由删除本身报告。windows-latest 上 platform 探针测试与加载夹具库的真实文件系统扫描测试通过(windows-tests run 47536965286、47542333015)。Unix 行为不变。 Fixed: the Windows startup cleanup classifies a directory before anything moves (KI-23, rpi65b21893): the startup cleanup scan of the Windows self-update (ADR-0050) — and the replacement of an existing generation copy on a same-version reinstall — classified a directory as live when renaming it aside failed, on the premise that Windows refuses to rename the directory of a loaded library. The Windows test leg measured otherwise: the directory renames, and only the deletion fails, at the library, after the files enumerated before it are gone — so a generation a process used without a pin covering it could have been renamed to*.garbage-<pid>and half deleted. A mapped image does refuse write access where it grants DELETE access: before anything moves, every file of a directory leftover is opened for writing (UpdateFs::probe_writable), and a sharing violation, a lock violation or a user-mapped section classifies the directory as live, whole and under its own name — in classify-only scans too; the same probe guards the generation replacement. Read-only attributes, ACL denials and vanished paths are left to the deletion to report. On windows-latest the platform probe test and the real-file-system scan test with the loaded fixture library pass (windows-tests runs 47536965286 and 47542333015). No behaviour change on Unix. -
Windows 测试门禁端到端通过(KI-21、KI-22;仅测试、工作流与探针,产品行为不变):
rpi-ext-host集成夹具按发布规则打包第一方 cdylib(KI-21,rpi881353a7);rpi更新测试选择在 Windows 上运行——package 命令把扩展加载预检作为注入缝,生产路径传空(KI-22,rpiec5e8c29、34d3cf75);windows-tests 工作流构建 cdylib 夹具、每条测试命令都运行到底、Rust 步骤失败后仍运行安装器套件,其载体探针覆盖rpi update的加载预检子进程(rpi --verify-extension接受原生探针、拒绝缺载体的包)。在设置写入修复之前的代码上,该工作流在 windows-latest 首次端到端通过(run 47542333015,于34d3cf75;工作流在发布提交上再次运行,编译 KI-24 的 Windows 专属部分:rpi-ext-host单元 113/113、集成 193/193,rpi更新测试选择 320 通过 / 0 失败 / 1 忽略,extension_host_w7_test5/5,PowerShell 7 与 5.1 下的test-install-ps1.ps1253/0、test-install-ps1-main.ps165/0)。另:rc.2 的 wasm(L1)载体实例化 fuel 预算修复(KI-18)与十二条确定性测试不变。 The Windows test gate passes end to end (KI-21, KI-22; tests, workflow and probe only — no product behaviour change): therpi-ext-hostintegration fixtures package the first-party cdylibs the way the release does (KI-21, rpi881353a7); therpiupdate test selection runs on Windows — the package commands take the extension load preflight as an injected seam and production passes nothing (KI-22, rpiec5e8c29,34d3cf75); the windows-tests workflow builds the cdylib fixtures, runs every test command to the end and runs the installer suites after a failed Rust step too, and its carrier probe exercises the load preflight child ofrpi update(rpi --verify-extensionaccepts the native probe and rejects a package whose carrier is missing). On the code before the settings-writer fix the workflow passed end to end on windows-latest for the first time (run 47542333015 on34d3cf75; the workflow runs again on the release commit, which compiles the Windows-only part of KI-24:rpi-ext-host113/113 unit and 193/193 integration, therpiupdate test selection 320 passed / 0 failed / 1 ignored,extension_host_w7_test5/5,test-install-ps1.ps1253/0 andtest-install-ps1-main.ps165/0 under PowerShell 7 and Windows PowerShell 5.1). The rc.2 wasm (L1) carrier instantiation fuel budget fix (KI-18) and the twelve deterministic tests are unchanged. -
修复:并发设置写入不再经由已退役的文件句柄读取(KI-24,rpi
025e32b2与50239270):两个 rpi 进程同时写settings.json时可能丢掉对方的键——宿主锁加在进程打开的那个文件上,而每次写入以 rename 替换文件,于是在打开文件与取锁之间被调度走的写入者可能锁住并读到已被替换的旧文件,随后的写入覆盖了对方的修改(本候选发布门禁发现;修复前 4800 次三写入者并行运行中丢失 24 次;修复后改写的两写入者并行 0/4800,三写入者形式剩余的丢失全部涉及 ADR-0040 之前的旧写入者)。现在取到锁后,每个当前版本的写入者——宿主协调器与镜像同一协议的两个扩展写入者(subagents 设置租约、statusline 编辑器)——都先核对句柄是否仍指向该设置文件(Unix 比较 dev/ino,Windows 比较卷序列号与文件索引;两个扩展 crate 为此在 Windows 目标上取得工作区的 windows-sys 依赖),不是则重新打开;为首写创建的文件若在取锁前被他人替换,则按「准备写入时文件已出现」冲突重新加载。兼容锁(ADR-0040 决策 7)仍留有一个按设计记录的窗口:ADR-0040 之前的旧版本二进制若在新写入者持锁期间打开了文件,它不会被下一个新写入者串行化。 Fixed: concurrent settings writers no longer read through a retired file handle (KI-24, rpi025e32b2and50239270): two rpi processes writingsettings.jsonat once could lose each other's keys — the host lock is taken on the file a process opened, and every write replaces the file by rename, so a writer that was descheduled between opening the file and taking the lock could end up locking and reading the replaced file, and its write overwrote the other process's change (found by this candidate's release gates; 24 lost updates in 4800 three-writer runs under load before; none between current writers after — the rewritten two-writer stress: 0 in 4800; the remaining losses of the three-writer form all involve the pre-ADR-0040 writer). Once the lock is granted, every current writer — the host coordinator and the two extension writers that mirror the protocol, the subagents settings lease and the statusline editor — now verifies that its handle still names the settings file (device and inode on Unix; volume serial and file index on Windows — the two extension crates take the workspace's windows-sys dependency on Windows targets for it) and reopens the file otherwise; a file created for a first write that another writer replaced meanwhile is reported as the "appeared while preparing" conflict and reloaded. One window of the compatibility lock (ADR-0040 decision 7) remains by design: a pre-ADR-0040 binary that opened the file while a new writer held the lock is not serialized against the next new writer. -
验证请求:Windows 上安装本候选后,在另一个 rpi 实例正在运行原生扩展时执行
rpi update(或rpi update --cleanup),该实例的扩展目录必须保持完整且保留原名,实例退出后rpi update --cleanup清掉旧代;可用源码仓库的pwsh -NoProfile -File scripts/test-windows-wasm-carrier.ps1 -Rpi <rpi.exe>对已安装二进制检查 wasm 与原生两种载体以及--verify-extension预检子进程(构建或经-NativePlugin传入夹具 cdylib 时);其余请求与 rc.2 相同(流式主线、Breaking 面、子代理修复、插件线、设置与工具、SSH 鼠标报告修复、Windows 启动与rpi update冒烟)。 Verification requests: after installing this candidate on Windows, runrpi update(orrpi update --cleanup) while another rpi instance is running a native extension — that instance's extension directory must stay whole and under its own name, andrpi update --cleanupafter the instance exits removes the old generation;pwsh -NoProfile -File scripts/test-windows-wasm-carrier.ps1 -Rpi <rpi.exe>from the source repository checks the wasm and native carriers and the--verify-extensionpreflight child against an installed binary (the native carrier when the fixture cdylib is built or passed via-NativePlugin); the other requests are those of rc.2 (the streaming main line, the BREAKING surfaces, the subagent fix, the plugin line, settings and tools, the SSH mouse-report fix, the Windows startup andrpi updatesmoke). -
已知边界:RC 端点(
https://revpi.dev/api/latest-rc-version.json)只在 Release 资产就位后才切换;stable 端点、schema/模型目录与扩展 registry 保持稳定值。Windows 自更新的既有限制(ADR-0050)不变;本候选的清理探测另有两条:探测与删除之间被映射的库仍只能由删除失败报告(以 stuck 形式落在旁边的路径上),探测读不到的子树不探测。 Known boundaries: the RC endpoint (https://revpi.dev/api/latest-rc-version.json) moves only after the Release assets are in place; the stable endpoint, the schema/model-catalog files and the extension registry stay at their stable values. The known limits of the Windows self-update (ADR-0050) are unchanged; the cleanup probe of this candidate adds two of its own: a library mapped between the probe and the deletion is still reported only by the deletion failing (as stuck, at the aside path), and a subtree the probe cannot read is not probed.
0.1.10-rc.2rc.1 + wasm(L1)扩展载体在 Windows 上的实例化 fuel 预算修复(KI-18)+ CI 端到端载体探针(候选版 2026-12-05)rc.1 + the wasm (L1) extension carrier's instantiation fuel budget fix on Windows (KI-18) + the CI end-to-end carrier probe (release candidate 2026-12-05)
第二个 v0.1.10 候选版(预发布通道),取代 2026-12-05 自 265b07c8 发布的 rc.1;rc.1 的候选内容(流式 CPU 主线 ADR-0052、上游追平 Pi v1.7.0 ADR-0051、子代理停止与中断修复、含 ADR-0053 的已知问题批量处置)不变,完整说明见下方 0.1.10-rc.1 节与源码仓库 changes/v0.1.10.md、Breaking changes 与 rc.1 逐字相同;stable 发布时本节折入 0.1.10。安装:已有用户执行 rpi update --rc(rpi update --all --rc 同时把七个锁步扩展更新到 0.1.10-rc.2);install.sh 不分发 RC(releases/latest 仍为稳定版 0.1.9)。本节与源码仓库 changes/v0.1.10-rc.2.md 同源。
The second v0.1.10 release candidate (pre-release channel), superseding rc.1 published on 2026-12-05 from 265b07c8; the rc.1 candidate content (the streaming CPU main line ADR-0052, upstream parity to Pi v1.7.0 ADR-0051, the subagent stop/interrupt fix, the known-issue batch including ADR-0053) is unchanged — see the 0.1.10-rc.1 section below and changes/v0.1.10.md in the source repository for the full text; the breaking changes are identical to rc.1; this section folds into 0.1.10 at stable-release time. Install: existing users run rpi update --rc (rpi update --all --rc also updates the seven lockstep extensions to 0.1.10-rc.2); install.sh does not serve RCs (releases/latest stays at the stable 0.1.9). This section mirrors changes/v0.1.10-rc.2.md in the source repository.
-
修复:wasm(L1)扩展载体的实例化 fuel 预算(KI-18,rpi
5b821e5b):rc.1 中所有带数据段的 wasm 扩展在 Windows 上都无法加载(Failed to load extension … instantiate: wasm trap: all fuel consumed by WebAssembly),所有平台上带start函数、表初始化或非常量全局初始化的 guest 同样如此——实例化会运行 guest 代码:wasmtime 把模块启动段(数据段复制、全局初始化、表段与start函数)编译成一个受 fuel 计量、由instantiate调用的函数,而宿主在实例化前未设置 fuel;Windows 不支持写时复制内存初始化,启动段对所有带数据段的 guest 都会运行。现在 store 在instantiate前携带CALL_FUEL预算、在模块自身的 engine 上创建,实例化错误给出 trap 原因。Windows(windows-latest)验证:rpi-ext-host单元测试 113/113(windows-tests run 47490535970);windows-tests 新增的端到端载体探针经真实rpi.exe加载带数据段的 wasm guest 与打包的原生夹具,并确认各自 init 注册的旗标(run 47496619300,本候选内容aa5a1712)。另:十二条负载敏感测试确定性化(较 rc.1 新增 KI-19 statusline 来源切换帧以 provider token 总数区分、KI-20 /tree 导航测试先等导航状态进入渲染),断言未放宽,产品行为不变。 Fixed: the wasm (L1) extension carrier's instantiation fuel budget (KI-18, rpi5b821e5b): in rc.1 every wasm extension with data segments failed to load on Windows (Failed to load extension … instantiate: wasm trap: all fuel consumed by WebAssembly), and on every platform a guest with astartfunction, table initializers or non-constant global initializers did — instantiation runs guest code: wasmtime compiles the module startup (data-segment copies, global initializers, table segments and thestartfunction) into one fuel-metered function thatinstantiateinvokes, and the host set no fuel before instantiating; Windows has no copy-on-write memory initialization, so the startup runs for every guest with data segments. The store now carries theCALL_FUELbudget beforeinstantiateand is created on the module's engine, and the instantiate error names the trap reason. Verified on windows-latest: therpi-ext-hostunit tests pass 113/113 (windows-tests run 47490535970), and the end-to-end carrier probe added to the workflow loads a data-segment wasm guest and the packaged native fixture through the realrpi.exeand sees the flags their inits register (run 47496619300 on this candidate's contentaa5a1712). Also: twelve load-sensitive tests are deterministic (new since rc.1: KI-19 tells the statusline source-switch frames apart by the provider total; KI-20 awaits the tree-navigation status before sampling) without relaxing an assertion and without a product change. -
验证请求:Windows 上安装本候选后,带数据段的 wasm(L1)扩展必须能加载(rc.1 中全部失败)——可用源码仓库的
pwsh -NoProfile -File scripts/test-windows-wasm-carrier.ps1 -Rpi <rpi.exe>对已安装二进制检查 wasm 载体(构建或经-NativePlugin传入夹具 cdylib 时同时检查原生载体;rc.1 在--ki18-probe处失败并打出 trap 文本,本候选通过);其余请求与 rc.1 相同(流式主线、Breaking 面、子代理修复、插件线、设置与工具、SSH 鼠标报告修复、Windows 启动与rpi update冒烟)。 Verification requests: after installing this candidate on Windows, a wasm (L1) extension with data segments must load (every one failed in rc.1) —pwsh -NoProfile -File scripts/test-windows-wasm-carrier.ps1 -Rpi <rpi.exe>from the source repository checks the wasm carrier against an installed binary (and the native carrier when the fixture cdylib is built or passed via-NativePlugin; rc.1 fails at--ki18-probewith the trap text; this candidate passes); the other requests are those of rc.1 (the streaming main line, the BREAKING surfaces, the subagent fix, the plugin line, settings and tools, the SSH mouse-report fix, the Windows startup andrpi updatesmoke). -
已知边界(Windows):
rpi-ext-host集成二进制首次在 Windows 运行(windows-tests run 47490535970)时 189 条中三条失败——两条原生插件(L0)夹具硬编码 Linux cdylib 文件名,一条 wasm 加载顺序测试的 canonical 键比较在 verbatim 前缀与 8.3 短名上不等(KI-21);原生载体本身已由载体探针经真实二进制验证(run 47496619300 列出夹具 init 注册的旗标),但该工作流中其后的测试步骤(rpi --lib更新测试、extension_host_w7_test、PowerShell 套件)仍未在 Windows 上运行。Windows 启动自更新的已知限制与性能/验证边界同 rc.1 节。 Known boundaries (Windows): when therpi-ext-hostintegration binary ran on Windows for the first time (windows-tests run 47490535970), three of its 189 tests failed — two native-plugin (L0) fixtures that hardcode Linux cdylib file names and a wasm loader-order test whose canonical-key comparison breaks on verbatim prefixes and 8.3 short names (KI-21); the native carrier itself is verified through the real binary by the carrier probe (run 47496619300 lists the flag the fixture's init registers), but the test steps after that binary in the workflow (therpi --libupdate tests,extension_host_w7_test, the PowerShell suites) still do not run on Windows. The Windows startup self-update limits and the performance/verification boundaries are those of the rc.1 section below.
0.1.10-rc.1流式 CPU 主线(活动代码块增量高亮与行缓存、transcript 同步、SSE/行读取线性化)+ 上游追平 Pi v1.7.0 + 子代理停止与中断修复 + 已知问题批量处置 + Windows 编译修复(2026-12-05)Streaming CPU main line (incremental highlighting and line cache for the active code block, transcript sync, linear SSE/line readers) + upstream parity to Pi v1.7.0 + subagent stop/interrupt fix + known-issue batch + Windows build fix (2026-12-05)
本节对应 0.1.10-rc.1 候选,与源码仓库 changes/v0.1.10.md 与 changes/v0.1.10-rc.1.md 同源。行为金标准升级到 Pi v1.7.0(fb0fe823,ADR-0051);插件 pin 随插件重定基切到 pi-subagents v0.90.0 / rpiv-mono v2.16.0(agent-smart-fetch 维持 v0.3.23);性能主线(ADR-0052)落地活动代码块增量高亮与行缓存/行集免深拷贝组装(P0)、transcript 同步脏标记/滚动帧切片/可恢复工具调用预览(P1)与 SSE 解码/行读取线性化(P2),每一帧与整块路径逐字节一致;子代理停止与中断修复(ADR-0052 决策 8)与已知问题批量处置(含 ADR-0053 的 SSH 鼠标报告修复)关闭了 v0.1.9 登记的缺陷。全部 v0.1.10 host-call 为 additive,rpiAbi 保持 1;冻结的 Component::render 签名作为上游只读数组的 rpi 变体保留。registry、schema、模型目录与版本端点均未变动(ADR-0042);第一次 GitHub prerelease 构建不完整(Windows 目标编译失败),由重建后的 RC 取代。
This section mirrors the 0.1.10-rc.1 candidate (changes/v0.1.10.md and changes/v0.1.10-rc.1.md in the source repository). The behavioral gold standard moves to Pi v1.7.0 (fb0fe823, ADR-0051); the plugin pins moved with the extension rebase to pi-subagents v0.90.0 / rpiv-mono v2.16.0 (agent-smart-fetch stays at v0.3.23); the streaming-CPU main line (ADR-0052) delivers incremental highlighting of the streaming code block with its line cache and segment-assembled frames (P0), transcript sync dirty marks, scroll-frame slicing and resumable tool-call previews (P1) and linear SSE decoding and line readers (P2), every frame byte-identical to the whole-block path; the subagent stop/interrupt fix (ADR-0052 decision 8) and the known-issue batch (including the SSH mouse-report fix of ADR-0053) close the defects v0.1.9 registered. Every v0.1.10 host-call is additive and rpiAbi stays 1; the frozen Component::render signature is kept as an rpi variant of upstream's read-only array. No registry, schema, model-catalog or version endpoint has moved (ADR-0042); the first GitHub prerelease build was incomplete (the Windows target failed to compile) and is superseded by the rebuilt RC.
-
Breaking changes(单列,迁移指引见
changes/v0.1.10.md):① provider 请求形状——openai-completions只对api.openai.com的 reasoning 模型用developer角色(compat.supportsDeveloperRole覆盖,#10741),Copilot GPT-5.3 Codex/MAI-Code 原位接收中途 system 消息(#12316),Mistral 仅在supportsStrictMode下发 strict 工具,strict:"prefer"遇无type节点回退 non-strict、"require"本地失败、仅enum节点保持 strict(#12049),non-strict Anthropic 保留根additionalProperties(#12067)与 Draft 7 tuple 的$schema(#12212),Copilot Responses 发送strict:false/constrained 时true(#12286),google 两 API 取compat.supportsStrictMode(#12321),Cloudflare Workers AI 发空字符串而非null(#12194),api.anthropic.com默认开启 message threads(compat.supportsMessageThreads: false或StreamOptions.disable_continuation恢复整请求),Codex 发送max_output_tokens/首个 developer item/configuration_update;Sol 成为 OpenAI/Azure/Codex 默认、多个模型下线;codemodemodels.generateImages接受可选第三参数、未知键抛错。② 设置与工具——安装遥测移除(enableInstallTelemetry/RPI_TELEMETRY/RPI_TELEMETRY_URL/telemetryUrl删除,旧文件可加载并于下次保存时丢弃旧键);notices.{cacheMisses,cacheWarming,compactionCosts,reasoningDrops}取代showCacheMissNotices(加载时迁移旧值、保存时移除旧键);find路径 pattern 相对搜索目录(src/*.ts不再匹配pkg/src/b.ts,任意深度用**/src/*.ts,#12066/#12020);无id的stop/interrupt被拒并列出活动运行;options.script明确拒绝,parallel的args.concurrency错误指向globalConcurrencyLimit。③ durable Rust API(experimental,不源码兼容)——signals(define_signal/read_signal/WakeReason/JoinPolicy::Any)、可 park 的工具(ToolPark、ToolExecute::cancel、invalid_park)、启动任务的 hooks(RunEndTask更名HookTask)、tagged union 与admit(tx, draft)(CommitResult改为Stored/Refusedtagged union,对自定义Storage实现为 BREAKING)、durationMs改为首次运行到结果、sleep 的until可选、pi.toolv4 与pi.generationv3(旧 reader 拒绝新记录,下一写升级)、codemode namespace 改由扩展声明(Extension.namespace;CodemodeNamespace/namespace_of/CodemodeToolOptions.namespaces移除无回退)、onAbort: "keep"。④ Rust additive 不等于上游 additive:公开 struct 新增字段(Usage.imageOutput、cost.imageOutput、ClassifierResult.responseId、ImagesOptions/ClassifierOptions字段、MarkdownTheme.streaming_highlighter与上述 durable 字段)——直接字面量构造需补字段或..Default::default();Markdown::render_shared返回SharedLines。⑤ 保留为 rpi 变体([VARIANT]):Component::render()保持冻结的Vec<String>签名(上游readonly string[],#9549 的滚动帧复用在 rpi-tui 内实现,扩展无需改动,ADR-0051 决策 4);interrupt以 SIGTERM 中止当前轮并置paused(ADR-0052 决策 8);超时 CSI 前缀 500 ms 拼接(ADR-0053)。pi-subagents v0.88.1→v0.90.0 与 rpiv-mono v2.15.0→v2.16.0 上游无 BREAKING 条目。 Breaking changes (listed here; migration guidance inchanges/v0.1.10.md): (1) provider request shapes —openai-completionssends reasoning models' system messages with thedeveloperrole only toapi.openai.com(compat.supportsDeveloperRoleoverrides, #10741), Copilot GPT-5.3 Codex/MAI-Code receive a later system message in place (#12316), Mistral gets strict tools only withsupportsStrictMode,strict:"prefer"falls back to a non-strict tool for an untyped schema node while"require"fails locally and onlyenumnodes stay strict (#12049), non-strict Anthropic requests keep the rootadditionalProperties(#12067) and the$schemaof Draft 7 tuples (#12212), Copilot Responses sendsstrict:falseandtrueonly when constrained (#12286), both Google APIs takecompat.supportsStrictMode(#12321), Cloudflare Workers AI sends an empty string instead ofnull(#12194), message threads are on by default forapi.anthropic.com(compat.supportsMessageThreads: falseorStreamOptions.disable_continuationrestores a full request), Codex sendsmax_output_tokens, a leading developer item andconfiguration_updateitems; Sol becomes the OpenAI/Azure/Codex default and several models are retired; codemodemodels.generateImagestakes an optional third argument and throws on unknown keys. (2) settings and tools — install telemetry removed (enableInstallTelemetry/RPI_TELEMETRY/RPI_TELEMETRY_URL/telemetryUrlgone; old files load and drop the keys on the next save);notices.{cacheMisses,cacheWarming,compactionCosts,reasoningDrops}replaceshowCacheMissNotices(migrated on load, legacy key removed on save);findpath patterns are relative to the search directory (src/*.tsno longer matchespkg/src/b.ts; use**/src/*.tsfor any depth, #12066/#12020); astop/interruptwithoutidis rejected with the active runs listed;options.scriptis refused andargs.concurrencyonparallelpoints atglobalConcurrencyLimit. (3) durable Rust API (experimental, not source-compatible) — signals (define_signal/read_signal/WakeReason/JoinPolicy::Any), tools that park (ToolPark,ToolExecute::cancel,invalid_park), hooks that start tasks (RunEndTaskrenamedHookTask), tagged unions andadmit(tx, draft)(CommitResultbecomes theStored/Refusedtagged union — breaking for customStorageimplementations),durationMsmeasured from the first run, an optional sleepuntil,pi.toolv4 andpi.generationv3 (old readers refuse new records, the next write upgrades), codemode namespaces declared by extensions (Extension.namespace;CodemodeNamespace/namespace_of/CodemodeToolOptions.namespacesremoved with no fallback) andonAbort: "keep". (4) Rust additive is not upstream additive: public structs gained fields (Usage.imageOutput,cost.imageOutput,ClassifierResult.responseId, theImagesOptions/ClassifierOptionsfields,MarkdownTheme.streaming_highlighterand the durable fields above), so direct literal construction must add the field or..Default::default();Markdown::render_sharedreturnsSharedLines. (5) kept as rpi variants ([VARIANT]):Component::render()keeps its frozenVec<String>signature (upstream'sreadonly string[]; the #9549 scroll-frame reuse is delivered inside rpi-tui, extensions need no change — ADR-0051 decision 4);interruptaborts the current turn with SIGTERM and settles the runpaused(ADR-0052 decision 8); a timed-out CSI prefix is joined for 500 ms (ADR-0053). pi-subagents v0.88.1→v0.90.0 and rpiv-mono v2.15.0→v2.16.0 carry no upstream BREAKING entries. -
已知边界(如实记录):R1.3 的 CPU 中位数目标未达——本候选最终同会话 A/B(每侧 9 次)中主场景与两个 100 tps 代码场景(阈值 ≤30%)为 35.6% / 49.5% / 77.6%(同场景纯计算 p95 比 5.7% / 23.7% / 22.2% 达标),
mermaid-streaming-fullscreenp95 比 1.01、CPU 比 1.04(阈值 0.90/1.00;Mermaid transformer 每帧重渲染增长的图,按构造每帧缓存未命中),mermaid-offCPU 比 1.08(p95 0.78 达标),亚毫秒文本场景 CPU 中位数 1.06–1.16(阈值 1.10;差异在纯计算之外——harness 帧日志与启动成本,关闭帧日志后 1.05),固定帧率输入→可见 p95 比在 26 个场景中的 15 个超过 1.10(lang-typescript-2402.36、cumulative-extension1.25、new-100tps1.23、lang-rust-2401.22,其余 1.10–1.19;每场景仅一两次按键的 harness 口径,候选全屏场景绝对值 0.97–1.36 ms),背压报告中主场景 60 fps 档占比 35%(一次性 368 ms 首帧后调度器各用 30 帧在 20/30 fps 档恢复;输入→可见 p95 1.06 ms,v0.1.9 为 10.84 ms);维护者 2026-12-03 裁决(ADR-0052 落地注记)不再追加优化、不改阈值,实测数字与归因见发布说明的 Known boundaries。内存:空会话 RES 单次 +3.6%、5 次中位 +2.6%(40144 → 41196 KiB,±3% 带内)、VIRT +0.7%,增长为文件页(RssFile +1.2 MiB),长会话 RES 为 v0.1.9 的 96.3–100.6% 且无代际增长;新增只读代码页 10×10 同路径对均值 667–761 KiB、七个采样标签 0/100 超出 2 MiB 预算。背压报告只观察不计入门禁;所有整块回退/重排/物化字节/sync 遍历均由探针字段计数并逐帧判定。第一次 rc.1 构建在 Windows 编译失败(见上条),在46c02a9c(run 47457468390)与1833b128(run 47464480740)上由windows-tests工作流在 windows-latest 编译全部目标(fmt/clippy -D warnings/全目标 check/rpi-durable 检查),其测试步骤有三条既有的rpi-ext-hostwasm 燃料测试在实例化处失败(实例化时 store 未携带 fuel,而 Windows 构建在受 fuel 计量的模块启动函数内复制数据段——KI-18,已在 rc.1 提交之后以5b821e5b修复并在 Linux 上以start函数与关闭写时复制内存初始化的引擎复现;修复提交上windows-testsrun 47490535970(5fe0805a)fmt/clippy -D warnings/全目标 check/rpi-durable 检查通过,rpi-ext-host单元测试 113/113、其集成二进制的 16 条 wasm 测试全部通过——wasm 扩展载体在修复提交上于 Windows 得到验证、在本 RC 提交上仍未验证;该集成二进制首次在 Windows 运行,186/189,两条失败为硬编码 Linux cdylib 文件名的原生插件(L0)夹具、一条为 canonical 键比较在 verbatim 前缀与 8.3 短名上不等的 wasm 加载顺序测试(KI-21),原生插件载体在 Windows 上未经该运行的测试验证、其后的测试步骤未运行),其余 Windows 专属回归测试多为cfg(windows)门控或在 Linux 上以 pwsh 模拟,本窗口除维护者的rpi-durable真机验证外未在 Windows 上运行;provider、订阅端点、图像/决策 API 与 MCP 只以离线 fixture/loopback 验证。完整表格与原始数字见changes/v0.1.10.md。 Known boundaries (recorded as measured): the R1.3 CPU-median targets are not met — in the final same-session A/B of this candidate (nine runs per side) the main scenario and the two 100 tps code scenarios (limit ≤ 30%) read 35.6% / 49.5% / 77.6% (their pure-compute p95 ratios of 5.7% / 23.7% / 22.2% are met),mermaid-streaming-fullscreenreads 1.01 on p95 and 1.04 on CPU (limits 0.90/1.00; the Mermaid transformer re-renders the growing diagram on every frame, a cache miss by construction),mermaid-offreads 1.08 on CPU (p95 0.78 is met), the sub-millisecond text scenarios read 1.06–1.16 on the CPU median (limit 1.10; the difference sits outside pure compute — harness frame-log and start-up cost, 1.05 with the log disabled), the fixed-cadence input-to-visible ratio exceeds 1.10 on 15 of the 26 scenarios (lang-typescript-2402.36,cumulative-extension1.25,new-100tps1.23,lang-rust-2401.22, the rest 1.10–1.19; a harness artifact over one or two keystrokes per scenario, the candidate's fullscreen absolutes 0.97–1.36 ms), and the backpressure run's 60 fps tier share for the main scenario is 35% (the scheduler spends 30 frames each at 20 and 30 fps recovering from the one-time 368 ms first render; input-to-visible p95 1.06 ms against 10.84 ms on v0.1.9); the maintainer decided on 2026-12-03 (ADR-0052 maintainer note) not to add an optimization round or change the thresholds, and the measured numbers and attribution are in the Known boundaries of the release notes. Memory: the empty session reads RES +3.6% in the single run and +2.6% on the 5-run medians (40144 → 41196 KiB, inside the ±3% band), VIRT +0.7%, file-backed (RssFile +1.2 MiB); the long session reads 96.3–100.6% RES of v0.1.9 with no generational growth; the new read-only code pages read 667–761 KiB on average over the 10×10 same-path pairs with 0 of 100 pairs over the 2 MiB budget at each of the seven labels. The backpressure report is observation only; every whole-block fallback, re-wrapped line, materialized byte and sync traversal is counted by the probe fields and judged per frame. The first rc.1 build failed to compile on Windows (see the previous bullet); on46c02a9c(run 47457468390) and1833b128(run 47464480740) thewindows-testsworkflow compiles every target on windows-latest (fmt, clippy -D warnings, the all-target check, the rpi-durable check), while its test step failed three pre-existingrpi-ext-hostwasm fuel tests at instantiation (the store carried no fuel when the guest was instantiated, and the Windows build runs the data-segment copies inside the fuel-metered module startup function — KI-18, fixed after the RC's commit in5b821e5band reproduced on Linux with astartfunction and an engine with copy-on-write memory initialization disabled; on the fixed commit,windows-testsrun 47490535970 (5fe0805a) passes fmt, clippy -D warnings, the all-target check and the rpi-durable check, therpi-ext-hostunit tests pass 113/113 and all 16 wasm tests of its integration binary pass — the wasm extension carrier is verified on Windows for the fixed commit and not for this RC's commit; that integration binary ran on Windows for the first time at 186/189 — two native-plugin (L0) fixtures that hardcode Linux cdylib file names and a wasm loader-order test whose canonical-key comparison breaks on verbatim prefixes and 8.3 short names (KI-21) — so the native plugin carrier on Windows is not verified by that run's tests and the test steps after it did not run); the other Windows-specific regression tests are mostlycfg(windows)-gated or pwsh-simulated on Linux and were not run on Windows in this window except for the maintainer'srpi-durableverification; providers, subscription endpoints, image/decision APIs and MCP were exercised with offline fixtures/loopback only. The full table and raw numbers are inchanges/v0.1.10.md. -
目录与默认模型:用钉死的 Pi v1.7.0 生成器重生成目录(manifest
2026-11-29T11:17:37.016Z):43 家 provider、1840 个条目(1673 chat / 77 image / 90 classifier)。OpenAI/Azure/OpenAI Codex 新增 GPT-6.2 Astra/Sol,默认gpt-6.2-sol(Azure 1.05M、Codex Sol 500K/Astra 272K);Qwen Token Plan 拆为 Team/Individual 并改用按计划 key(QWEN_TOKEN_PLAN_TEAM{,_CN}_API_KEY/QWEN_TOKEN_PLAN_INDIVIDUAL{,_CN}_API_KEY,旧区域 key 回退);qwen4-max取代-preview;Ant Ling 改用 Ling 3.x;Mistral 默认mistral-medium-latest;Groq 跳过已下线模型;Radius 新增静态图像/决策模型。 Catalog and defaults: The catalog is regenerated with the pinned Pi v1.7.0 generator (manifest2026-11-29T11:17:37.016Z): 43 providers and 1840 entries (1673 chat / 77 image / 90 classifier). OpenAI/Azure/OpenAI Codex gain GPT-6.2 Astra/Sol, defaulting togpt-6.2-sol(Azure 1.05M, Codex Sol 500K/Astra 272K); Qwen Token Plan splits into Team/Individual and prefers per-plan keys (QWEN_TOKEN_PLAN_TEAM{,_CN}_API_KEY/QWEN_TOKEN_PLAN_INDIVIDUAL{,_CN}_API_KEY, falling back to the shared regional keys);qwen4-maxreplaces-preview; Ant Ling uses Ling 3.x; Mistral defaults tomistral-medium-latest; Groq skips retired models; Radius gains static image/decision models. -
请求形状(Breaking):
openai-completions只对api.openai.com的 reasoning 模型用developer角色,其余主机用system(compat.supportsDeveloperRole覆盖,#10741);Copilot GPT-5.3 Codex 与 MAI-Code 模型把会话中途的 system 消息原位发送而不折叠进首段 prompt(supportsMidConvoSystemMessages,#12316);Mistral 无supportsStrictMode不发 strict 工具;strict:"prefer"遇无type的 schema 节点回退 non-strict、"require"本地失败、仅enum节点保持 strict(#12049),non-strict Anthropic 保留根additionalProperties(#12067)与 Draft 7 tuple 的$schema(#12212),Copilot Responses 发送strict:false/constrained 时true(#12286),google 两 API 取compat.supportsStrictMode且带前缀的 Gemini 3+ ID 获得严格工具(#12321),Cloudflare Workers AI 无文本工具调用后发空字符串(#12194)(Breaking,R2-A02);Anthropic threads 对api.anthropic.com默认开启;Codex 发送max_output_tokens(≥16)、把 system prompt 作为首个 developer item、以所选 effort 起步并把后续变化作为configuration_update、replay 工具调用带status:"completed";Cloudflare 525、网关文案、Anthropicapi_error、OpenRouter 空响应与 socket 错误码等进入重试分类,request_too_large仅精确匹配。 Request shapes (breaking):openai-completionssends system messages of reasoning models with thedeveloperrole only toapi.openai.com, other hosts getsystem(compat.supportsDeveloperRoleoverrides, #10741); Copilot GPT-5.3 Codex and the MAI-Code models receive a system message sent later in the conversation in place instead of folding it into the leading prompt (supportsMidConvoSystemMessages, #12316); Mistral sends strict tools only withsupportsStrictMode;strict:"prefer"falls back to a non-strict tool for a schema node withouttype,"require"fails locally and onlyenumnodes stay strict (#12049), non-strict Anthropic requests keep the rootadditionalProperties(#12067) and the$schemaof Draft 7 tuples (#12212), Copilot Responses sendsstrict:falseandtrueonly when constrained (#12286), both Google APIs takecompat.supportsStrictModeand prefixed Gemini 3+ ids get strict tools (#12321), Cloudflare Workers AI sends an empty string instead ofnullafter a text-less tool call (#12194) (breaking, R2-A02); Anthropic threads are on by default forapi.anthropic.com; Codex sendsmax_output_tokens(≥16), puts the system prompt in a leading developer item, starts at the selected effort and sends later changes asconfiguration_update, and replays tool calls withstatus:"completed"; Cloudflare 525, gateway wording, Anthropicapi_error, OpenRouter empty responses and socket codes are retried, andrequest_too_largematches only as a whole identifier. -
图像、决策与 onResponse:
ImagesOptions {aspectRatio, size}转发到 OpenRouterimage_config;新增pi-image(POST <baseUrl>/image)与pi-decision(POST <baseUrl>/decision)协议,服务 Radius;additive 的Usage.imageOutput/cost.imageOutput分开计价图像 token,OpenRouter/pi-image/pi-decision 保留 reasoning;ClassifierResult.responseId携带生成 ID;OpenRouter 无 choices/provider error/失败 finish 判失败并使用上报成本。onResponse对 4xx/5xx 与每次重试触发;Codex WebSocket 连接 45 分钟后不再复用。 Images, decisions and onResponse:ImagesOptions {aspectRatio, size}forwards to OpenRouter'simage_config; the newpi-image(POST <baseUrl>/image) andpi-decision(POST <baseUrl>/decision) protocols serve Radius; additiveUsage.imageOutput/cost.imageOutputprice image tokens separately, and OpenRouter/pi-image/pi-decision keep reasoning tokens;ClassifierResult.responseIdcarries the generation ID; OpenRouter image generation fails on no choices/provider errors/unsuccessful finishes and uses the reported cost.onResponsefires for 4xx/5xx and every retried attempt; Codex WebSocket connections are no longer reused after 45 minutes. -
MCP、codemode 与子代理:服务器把整数请求 ID/进度 token 回显为字符串(
"1")时现在能匹配;SSE 解析统一(CRLF 跨 chunk、lone CR、多行data:);models.generateImages(model, context, {aspectRatio?, size?})接受可选第三参数,未知键抛错。子代理stop/interrupt的 schema、终态卡片与真实终态快照已修复(详见changes/v0.1.10.md)。 MCP, codemode and subagents: A server echoing an integer request id or progress token as a string ("1") now matches; the SSE parser is shared (CRLF split across chunks, lone CR, multi-linedata:);models.generateImages(model, context, {aspectRatio?, size?})accepts the optional third argument and throws on unknown keys. The subagentstop/interruptschema, terminal cards and real terminal snapshot are fixed (seechanges/v0.1.10.md). -
内部与 additive:
rpiAbi保持 1;Session JSONL 外层、Component::render与MarkdownTheme.highlight_code不变;Usage.imageOutput、cost.imageOutput、ClassifierResult.responseId、ImagesOptions.aspectRatio/size/sessionId、ClassifierOptions.sessionId为公开 struct 的新字段,直接字面量构造需补..Default::default();AWS SSO 代理与 Google custom fetch 记为[N/A-struct]。本页不代表任何打包、registry、端点、tag 或 Release 动作已经发生。 Internal and additive:rpiAbistays 1; the Session JSONL outer framing,Component::renderandMarkdownTheme.highlight_codeare unchanged;Usage.imageOutput,cost.imageOutput,ClassifierResult.responseId,ImagesOptions.aspectRatio/size/sessionIdandClassifierOptions.sessionIdare new public struct fields, so direct literal construction needs..Default::default(); the AWS SSO proxy and Google custom fetch are recorded as[N/A-struct]. This page does not imply that any packaging, registry, endpoint, tag or Release action has happened. -
遥测移除(Breaking)、Program Resume 与
--agent-dir:rpi 不再向revpi.dev/api/report-install上报安装与更新(上游 v1.7.0 移除该 ping);enableInstallTelemetry设置及其/settings行、RPI_TELEMETRY/RPI_TELEMETRY_URL环境变量与telemetryUrl设置连同端点契约一并删除,旧settings.json仍可加载并于下次保存时丢弃旧键;CLI attribution 头改为无条件发送。首次设置只询问匿名使用数据共享(主题步骤取消,主题默认 system,对话框显示彩色 logo;enableAnalytics不变,f8149d1ab);恢复提示To resume this session:与命令分两行打印,便于三击选中命令(#12237)。notices.{cacheMisses,cacheWarming,compactionCosts,reasoningDrops}取代showCacheMissNotices(加载时迁移旧值、保存时移除旧键),/settings的 Notices 子菜单四项独立开关。在设置OSC7577_TOKEN的终端里,交互模式经 OSC 7577 上报恢复当前会话的命令(rpi --session <id> [--agent-dir <dir>] [--session-dir <dir>]加启动时的限制/资源旗标),会话变化时替换、挂起(fg)后重复、退出时清除;--agent-dir <dir>是RPI_CODING_AGENT_DIR的命令行形式,旗标优先于环境变量。 Telemetry removal (breaking), Program Resume and--agent-dir: rpi no longer reports installs and updates torevpi.dev/api/report-install(upstream removed the ping in v1.7.0); theenableInstallTelemetrysetting and its/settingsrow, theRPI_TELEMETRY/RPI_TELEMETRY_URLenvironment variables and thetelemetryUrlsetting are removed together with the endpoint contract, an oldsettings.jsonstill loads and drops them on the next save, and the CLI attribution header is sent unconditionally. First-time setup asks only about anonymous usage data sharing (the theme step is gone because the theme defaults to the system theme, and the dialog shows the colored app logo;enableAnalyticsis unchanged,f8149d1ab); the resume hint printsTo resume this session:and the command on separate lines so the command can be selected with a triple-click (#12237).notices.{cacheMisses,cacheWarming,compactionCosts,reasoningDrops}replaceshowCacheMissNotices(old values migrate on load, the old key goes on save), with four independent switches in the/settingsNotices submenu. In terminals that setOSC7577_TOKEN, interactive mode reports the command that brings the current session back over OSC 7577 (rpi --session <id> [--agent-dir <dir>] [--session-dir <dir>]plus the restriction and resource flags rpi was started with), replaced when the session changes, repeated after a suspend (fg) and cleared on quit;--agent-dir <dir>is the command-line form ofRPI_CODING_AGENT_DIRand wins over the variable. -
工具、会话、扩展 UI 与终端(Pi v1.6.1–v1.7.0):bash 截断输出无法保存完整文件时保留截断输出并说明原因(#10585),超长行的末尾可见(#12350/#12062),Windows 经
git var GIT_SHELL_PATH发现 Git Bash(#12408);pi.exec信号终止报告128+N(#12088);Esc 中断的批量调用中未开始者各得Operation aborted(#9986);read的非视觉模型注记移入details.imageUnsupportedByModel(#12131);find路径 pattern 相对搜索目录(Breaking,#12066/#12020);tool_search加载的 MCP 工具在 resume//reload不丢失(#11996);/login的失败!command密钥显示stored key did not resolve(#12164);ctx.ui.select/confirm/input接受 additive 的blockedKind进入 OSC 7501(#12439);键位提示跟随重映射键(#12518/#12245),自动补全与历史去重修复(#12309/#12312/#12279);Kitty 图片 ID 有符号 32 位、全屏重绘保留图片、overlay 遮挡图片等终端修复(#12548/#12010/#12017/#11584/#12416/#12446/#12406);set_suspend_signal_handler()additive 钩子(#12283);Markdown/Mermaid 四项修复(#12389/#12324/#11092);/copy跳过无文本的非正常结束回复(#12119/#12121)。启动诊断按会话去重,rpc/print 模式不重复session_start(#10470)。 Tools, sessions, extension UI and terminal (Pi v1.6.1–v1.7.0): bash keeps truncated output with the reason when the full output cannot be saved (#10585), shows the end of an overlong trailing line (#12350/#12062) and finds Git Bash throughgit var GIT_SHELL_PATHon Windows (#12408);pi.execreports128 + signal(#12088); calls not yet started when Esc aborts a batch each getOperation aborted(#9986);read's non-vision note moves todetails.imageUnsupportedByModel(#12131);findpath patterns are relative to the search directory (breaking, #12066/#12020); MCP tools loaded bytool_searchsurvive resume//reload(#11996); a failing!commandkey in/loginshowsstored key did not resolve(#12164);ctx.ui.select/confirm/inputtake the additiveblockedKindthat reaches OSC 7501 (#12439); key hints follow remapped keys (#12518/#12245), autocomplete and history fixes (#12309/#12312/#12279); terminal fixes for Kitty image ids, images across full redraws and overlays and more (#12548/#12010/#12017/#11584/#12416/#12446/#12406); the additiveset_suspend_signal_handler()hook (#12283); four Markdown/Mermaid fixes (#12389/#12324/#11092);/copyskips replies that ended abnormally without text (#12119/#12121). Startup diagnostics dedupe per session and rpc/print modes no longer doublesession_start(#10470). -
Experimental durable 栈,Pi v1.6.0–v1.7.0(Breaking:durable Rust API):信号——
define_signal/Harness::signal/tx.signal五种结果、任务 memo 保留值、read_signal版本迁移,睡眠可等待信号,WakeReason,JoinPolicy::Any,SubmissionDraft.notify在结算 commit 投递内置SubmissionSettled;工具可 park(ToolPark::{Sleep, Wait},taggedkind,v1.6.1),唤醒后带api.wake/api.checkpoint重跑,cancel清理外部工作,非法 park 以invalid_park结束,wrapper 自身的 park 无效,durationMs改为首次运行到结果的跨度;executeTool(..., wait: false)返回{taskId, result(context)},createTask(key),唤醒后需显式 key,restart 保留已 park 或未开始调用的abandonOnRestart子任务;beforeTool可sleep作为运行前的门,每次唤醒/注册表发布/打开重走call阶段,HookApi::now();afterTools/onYield可返回{kind:"tasks"}(AfterToolsDecision/YieldDecision,pi.live.run.yield),RunEndTask更名HookTask;pi.toolv4 与pi.generationv3(旧 Harness 阻断新记录、把无until的 sleep 视为到期);codemode namespace 改由Extension.namespace声明,CodemodeNamespace/namespace_of/CodemodeToolOptions.namespaces无回退移除;CommitResult为 tagged union,onAbort:"keep",images/fit,listDir竞态与read注记修复(#11994/#12131),深所有权链 O(n²) 改为线性(#11963 家族wait()拒绝面为 [N/A-lang]),Harness::close释放 provider 资源(#11961)。默认 CLI 仍不注册 durable 命令;Windows 编译以稳定 API shim 修复(KI-02,维护者 2026-12-03 已在 Windows 真机验证)。评审修复(APPROVE WITH NITS):失败的 Session 不经过close(),Harness 的 close 监听器同样 join 调用并释放 provider 资源;yield 期间 abort 的 generation 以aborted结束;新增ToolExecute::has_cancel/GenerationHooks::has_after_run,cleanup 期间 api 仍可上报而嵌套调用/任务拒绝;未提供的调用 abort 报tool_unavailable;background owner 下未加载链的子任务不计入作用域;#unknownsChanged移植后全量空闲检查仅在一次链加载解开未知后运行;测试scheduler_idle_scopes(7)、失败路径 provider 清理、ReadAfterWrite、any等待的wake().active。 Experimental durable stack, Pi v1.6.0–v1.7.0 (breaking: durable Rust API): signals —define_signal,Harness::signal/tx.signalwith five results, values kept in task memos,read_signalversion migration, sleeps that wait for signals,WakeReason,JoinPolicy::AnyandSubmissionDraft.notifydelivering the built-inSubmissionSettledin the settling commit; tools that park (ToolPark::{Sleep, Wait}, tagged bykind, v1.6.1) run again withapi.wake/api.checkpoint,cancelcleans up external work, an invalid park endsinvalid_park, a wrapper's own park is invalid anddurationMsis the span from the first run to the result;executeTool(..., wait: false)returns{taskId, result(context)},createTask(key), explicit keys after a wake, and a restart keeps theabandonOnRestartchildren of a parked or unstarted call; abeforeToolsleepgates the call before it runs and every wake, registry publication or open reruns thecallphase (HookApi::now());afterTools/onYieldmay return{kind:"tasks"}(AfterToolsDecision/YieldDecision,pi.live.run.yield) andRunEndTaskis renamedHookTask;pi.toolv4 andpi.generationv3 (an older Harness blocks the new records and treats a sleep withoutuntilas due); code-mode namespaces are declared byExtension.namespaceandCodemodeNamespace/namespace_of/CodemodeToolOptions.namespacesare removed without fallback;CommitResultis a tagged union, plusonAbort:"keep",images/fit, thelistDirrace andreadnote fixes (#11994/#12131), deep ownership chains costing linear instead of quadratic time, andHarness::closereleasing provider resources (#11961; thewait()rejection surface is [N/A-lang]). The default CLI still registers no durable commands; the Windows compile is fixed with a stable-API shim (KI-02; verified by the maintainer on a Windows machine on 2026-12-03). Review fixes (APPROVE WITH NITS): a failed Session never runsclose(), so the Harness's close listeners join the invocations and release the provider resources too; a generation aborted while yielding endsaborted;ToolExecute::has_cancelandGenerationHooks::has_after_rungate the cleanup and the answer hold, a cleanup's api still reports while nested calls and tasks refuse; an aborted unoffered call reportstool_unavailable; an unloaded child of a background owner is outside its own conversation's scope; with#unknownsChangedported, a full idle check runs only after a chain load resolved an unknown; testsscheduler_idle_scopes(7), provider cleanup on failure,ReadAfterWrite, ananywait'swake().active. -
插件重定基(pi-subagents v0.90.0、rpiv-mono v2.16.0):
subagent新增顶层label(命名子会话、状态/Fleet 行与事件description)、globalConcurrencyLimit、配置disabledFeatures(特性组门禁:schema 丢弃参数、调用被拒)与fastServiceTier(仅校验保存);前台子代理在扩展总线发task:subagent:lifecycle,每个后台子项发subagent:async-started;精确"null"/workflow:"false"占位参数被忽略,options.script与workflow:true改为明确拒绝(ADR-0016);进度行携带sessionFile;超时输出附Recovery summary(非 Git 目录一行说明);output文件启动时删除、完成时才写;脏树拒绝点名 checkout 与 ≤10 个文件;worktree 子项提交后保留不在其他引用上的分支并在结果/通知中说明;并行结果附Worktree handoff:参考行;Fleet 展开视图显示完整多行bash命令;后台子项的嵌套运行归属根运行;终态事件先于终态状态落盘;Windows 锁定的status.json记事件并后台补写。ask-user-question 回执行按终端宽度截断、解码字符串形式的questions,问卷打开时报 OSC 7501blocked(kindquestion,「等待你的回答」)。todo:maxWidgetLines: 0关闭浮层,标题行左键单击折叠/展开,子会话启动不清空前台已完成行,action参数获得描述。扩展 ABI additive:mountComponent选项blocked、setWidget选项onHeadingClick与总线事件rpi:widget:heading-click(rpiAbi保持 1)。 Extension rebase (pi-subagents v0.90.0, rpiv-mono v2.16.0):subagentgains a top-levellabel(names the child session, status/Fleet rows and the eventdescription),globalConcurrencyLimit, the configdisabledFeatures(feature-group gate: the schema drops the parameters and calls using them are refused) andfastServiceTier(validated and kept only); foreground subagent runs reporttask:subagent:lifecycleon the extension bus and every background child emitssubagent:async-started; exact"null"/workflow:"false"placeholder arguments are ignored,options.scriptandworkflow:trueare now refused explicitly (ADR-0016); progress rows carrysessionFile; a timed-out child leaves aRecovery summary(one line outside a Git work tree); theoutputfile is removed at start and written only on completion; a refused dirty worktree names the checkout and up to ten files; a worktree child that committed keeps its branch when its commits are on no other ref and the result/notice says so; parallel results end with aWorktree handoff:reference; the expanded Fleet view shows a child's whole multi-linebashcommand; a background child's nested runs are filed under the root run; the terminal event line precedes the terminal status write; a lockedstatus.jsonon Windows is recorded and caught up in the background. ask-user-question clamps receipt lines to the terminal width, decodes stringifiedquestionsand reports OSC 7501blocked(kindquestion, "Waiting for your answer") while a questionnaire is open. todo:maxWidgetLines: 0turns the overlay off, a left click on the heading row toggles it, a child session's start no longer hides the foreground's completed rows, and theactionparameter is described. Additive extension ABI:mountComponentoptionblocked,setWidgetoptiononHeadingClickand the bus eventrpi:widget:heading-click(rpiAbistays 1). -
流式代码块增量高亮(性能 P0,ADR-0052):仍在流式输出的围栏代码块不再每帧整块重新高亮(此前约 70 µs/行 Rust、320 µs/行 TypeScript,240 行块每帧 17–80 ms);活动块在最后一个完整行处保存可恢复的 syntect 状态,每帧只解析新增完整行与开放行,渲染字节与整块路径逐字节一致——整块路径仍是测试 oracle,也是语言标签、主题/语法代际、Mermaid/transform 改写等键或前缀变化时的回退路径(计入
highlight_fallbacks)。code-fullscreen-new-100tps的逐帧 layout 不再随活动块增长(对活动块行数的回归斜率 <2 µs/行,v0.1.9 约 42),追加帧整块重高亮为 0;26 个 replay 场景的最终屏幕、终端字节与帧序列与前一候选完全一致。MarkdownTheme新增可选streaming_highlighter工厂(additive;它是 rpi-tui 的公开 struct 而非扩展 ABI,树外字面量构造需补该字段;identity()、快照与未设置的主题保持整块路径,highlight_code契约不变);增量路径按组件 opt-in——只有仍在流式的助手文本/思考槽位开启,流式结束即释放状态(消息以未闭合 fence 结束也不保留解析器状态),闭合围栏按 CommonMark 规则判定(同 marker、长度 ≥ 开 fence、缩进 ≤ 3 空格),非前缀set_text、invalidate()或组件释放时同样释放。 Incremental highlighting of streaming code blocks (performance P0, ADR-0052): a fenced code block that is still streaming no longer re-runs syntect on the whole block every frame (previously about 70 µs per Rust line and 320 µs per TypeScript line, 17–80 ms per frame for a 240-line block); the active block keeps a resumable syntect state after its last complete line and each frame parses only the lines that completed plus the open line, byte-identical to the whole-block path — which remains the test oracle and the fallback for every key or prefix change (language tag, theme or grammar generation, Mermaid/transform rewrite), counted ashighlight_fallbacks. The per-frame layout cost ofcode-fullscreen-new-100tpsno longer grows with the active block (regression slope under 2 µs per active-block line; v0.1.9 about 42) with zero whole-block re-highlights on append frames; the final screen, terminal bytes and frame sequences of all 26 replay scenarios are identical to the previous candidate.MarkdownThemegains the optionalstreaming_highlighterfactory (additive; it is a public rpi-tui struct outside the extension ABI, so struct-literal constructions must add the field;identity(), snapshot and third-party themes that leave it unset keep the whole-block path, and thehighlight_codecontract is unchanged). The incremental path is opt-in per component: only the assistant text/thinking slots enable it while they stream and release the state when streaming ends (a message ending in an unclosed fence keeps no parser state); the closing fence follows the CommonMark rule (same marker, at least the opener's length, up to three spaces of indentation), and a non-prefixset_text,invalidate()or the component's release drop the state as well. -
流式代码块行缓存与行集免深拷贝组装(性能 P0,ADR-0052):仍在流式输出的围栏代码块此前每帧仍要对全部完整行重新换行、补宽,并把整条消息的渲染行复制两次;现在活动块把每个完整行的最终输出保存在按内容校验的行缓存里(新 token 行必须以缓存行为前缀),每帧只排版开放行与块的收尾行;帧与块的行集由共享段组装,内部布局路径不再复制任何渲染行(冻结的
Component::render边界仍物化一次Vec<String>),块键借用源文本;流式高亮器以共享向量交出已提交行,不再每帧复制。输出与整块排法逐字节一致:26 个 replay 场景的最终屏幕、终端字节与帧序列与前一候选完全一致;追加帧rewrapped_lines与materialized_line_bytes为 0,code-fullscreen-1mib-main的逐帧 layout 不再随活动块增长(斜率 0.46 ± 0.22 µs/行,V110-05 后 3.61,v0.1.9 69.41),code-fullscreen-lang-json-240的 CPU 再降 35%、纯计算 p95 再降 66%。Markdown::render_shared改为返回分段的SharedLines(rpi-tui 自有 API,非扩展 ABI),StreamingCodeHighlighter新增带默认实现的highlight_lines;嵌套 transcript 文档(R3.3.3)经评估收益不显著(30–60 个稳定槽位场景在 80 列每帧仅省 15–22 µs 即 7–10%,200 列无收益),未启用。 Line cache and segment-assembled frames for the streaming code block (performance P0, ADR-0052): a fenced code block that is still streaming used to re-wrap and pad every complete line on each frame and to copy the rendered lines of the whole message twice; the active block now keeps the final output of every complete line in a line cache validated by content (the new token lines must extend the cached ones) and lays out only the open line and the block's closing lines per frame; frame and block line sets are assembled from shared segments, so the internal layout path copies no rendered line (the frozenComponent::renderboundary still materializes oneVec<String>), block keys borrow the source text, and the streaming highlighter hands out its committed lines as a shared vector instead of copying them every frame. The output is byte-identical to the whole-block layout: the final screen, terminal bytes and frame sequences of all 26 replay scenarios match the previous build;rewrapped_linesandmaterialized_line_bytesare 0 on append frames, the per-frame layout ofcode-fullscreen-1mib-mainno longer grows with the active block (slope 0.46 ± 0.22 µs per line; 3.61 after V110-05, 69.41 in v0.1.9), andcode-fullscreen-lang-json-240drops another 35% CPU and 66% pure-compute p95.Markdown::render_sharedreturns the segmentedSharedLines(an rpi-tui API outside the extension ABI) andStreamingCodeHighlightergainshighlight_lineswith a default implementation; the nested transcript document (R3.3.3) was evaluated and not enabled (15–22 µs, 7–10%, per frame with 30–60 stable slots at 80 columns; no gain at 200). -
transcript 同步脏标记、滚动帧列切片与可恢复的工具调用预览(性能 P1,ADR-0052):全屏 transcript 的高度索引此前每帧遍历全部直接子组件;现在组件可通过
cache_revision_marks_dirty(additive,默认 false)宣告其修订变化,索引只复查被标记的子组件、嵌套文档经自身索引同步,内容未变的帧(滚动帧)不触碰任何子组件;容器子列表的结构变化可观察(Children,每次变更递增代际,故意不提供DerefMut),同数量替换无需逐帧身份校验即可重测。滚动条绘制此前对每个可见行做字素切分,列切片现在对可打印 ASCII 段跳过分段(上游 #11968)。流式write/bash调用预览此前每个 delta 重排全文(41 KiB 单行content每帧约 2 ms),现在从末行的断点恢复换行(渲染器跨重建共享的TextWrapState;输出与新文本的整文换行逐字节相同)。code-fullscreen-history-scroll的纯计算 p95 由 1.63 ms 降至 1.07 ms(V110-06 后候选的 −35%,v0.1.9 的 0.11),long-arguments-fullscreen每次运行 0.219 s CPU(−41%)、纯计算 p95 0.82 ms(−69%,v0.1.9 的 0.32,达到 60% 目标;该场景三个候选构建的 p95 均为 v0.1.9 的 0.32,CPU 中位数 0.56–0.61,-100tps为 0.30–0.32);读取当前模型不再复制整个 transcript 快照(页脚为此每帧两次;1 MiB transcript 上Agent::state()38.5 µs/次,Agent::model()0.04 µs/次)。26 个 replay 场景的最终屏幕、终端字节与帧序列与前一候选完全一致;冻结的Component::render签名、MarkdownTheme::highlight_code与rpiAbi: 1不变(上游readonly string[]仍为 ADR-0051 决策 4 的 [VARIANT];#9549 的两个滚动帧锚点测试已移植)。comrak 末块重解析(R4.2)经 31 个流式语料逐帧对拍评估等价、未启用(解析仅占文本帧 10–15%,产品路径需改 V110-05/06 块管线);mermaid-streaming-fullscreen的纯计算 p95 仍为 v0.1.9 的 1.04(目标 0.90)——逐帧归因为 Mermaid transformer 每帧重渲染增长的图(第二次 comrak 解析 + ASCII 布局,244 µs/帧),不在本任务文件范围内,已记录归因;mermaid-off-fullscreen为 0.77。 Transcript sync dirty marks, scroll-frame column slicing and resumable tool-call previews (performance P1, ADR-0052): the fullscreen transcript's height index used to walk every direct child on every frame; a component may now announce its revision bumps (cache_revision_marks_dirty, additive, default false), the index re-examines a child only when it was marked, nested documents sync through their own index, and a frame that changed nothing (a scroll frame) touches no child at all. Structural changes of a container's child list are observable (Childrenbumps a generation on every mutation and deliberately has noDerefMut), so a same-count replacement is re-measured without a per-frame identity check. The scrollbar paint over a scrolled transcript segmented every visible row; column slicing now skips grapheme segmentation for printable ASCII runs (upstream #11968). A streamingwrite/bashcall preview used to wrap its whole text on every delta (about 2 ms per frame for a 41 KiB single-linecontent); it now resumes the wrap from a breakpoint of its last line (aTextWrapStateshared across the per-update rebuild; the output equals a full wrap of the new text). The pure-compute p95 ofcode-fullscreen-history-scrolldrops from 1.63 ms to 1.07 ms (35% below the V110-06 build; 0.11 of v0.1.9) andlong-arguments-fullscreentakes 0.219 s of CPU per run (−41%) with a p95 of 0.82 ms (−69%; 0.32 of v0.1.9, under the 60% target; for this scenario the p95 stayed at 0.32 of v0.1.9 across the three candidate builds, the CPU median between 0.56 and 0.61,-100tps0.30–0.32); reading the active model no longer copies the whole transcript snapshot (the footer did so twice per frame;Agent::state()costs 38.5 µs per call on a 1 MiB transcript,Agent::model()0.04 µs). The final screen, terminal bytes and frame sequences of all 26 replay scenarios match the previous build; the frozenComponent::rendersignature,MarkdownTheme::highlight_codeandrpiAbi: 1are unchanged (upstream'sreadonly string[]stays the [VARIANT] of ADR-0051 decision 4; the two #9549 scroll-frame anchor tests are ported). The comrak tail reparse (R4.2) was evaluated frame by frame on 31 streaming corpora and not enabled (the parse is 10–15% of a text frame; the production path would need the V110-05/06 block pipeline changed);mermaid-streaming-fullscreenstays at 1.04 of v0.1.9 pure-compute p95 (target 0.90) — attributed per frame to the Mermaid transformer re-rendering the growing diagram (a second comrak parse plus the ASCII layout, 244 µs per frame), outside this task's files and recorded for the coordinator;mermaid-off-fullscreenis at 0.77. -
SSE 解码与行读取线性化、SSE 复制计数探针(性能 P2,ADR-0052;上游 #12224):全部 SSE 适配器共用的解码器此前每消费一行就移动一次剩余缓冲、每个 chunk 又重扫整个未完成行,MCP Streamable HTTP 读取器、代理行切分、两处文本行读取器、llama.cpp 模型事件监听与终端 bracketed paste 结束标记搜索也是同一形状;现在每个读取器只检查新增字节。单 chunk 一万个事件此前移动剩余缓冲 20,000 次、现在 1 次;1 MiB 事件按 4 KiB 分块此前检查 135,790,600 字节、现在每个字节恰好一次(release 计时:4 MiB 事件按 64 KiB 分块 10.2 ms → 5.8 ms,单 chunk 十万事件 6.15 s → 19 ms);1 MiB 粘贴按 4 KiB 分块此前搜索 135,790,598 字节。原始行只由报告它们的适配器(Anthropic 与两家 Google API)收集。帧探针新增
sse_buffer_copies(自上一帧起解码器剩余缓冲的移动次数),run_suite.py --sse让回放把每个 provider 事件经生产解码器往返后再应用(帧与直接运行逐字节相同),判定脚本要求每帧 ≤ 1;26 个 replay 场景的最终屏幕、终端字节与帧序列与前一候选完全一致。KI-01(SSH 下超时的ESC[<前缀使鼠标报告尾段作为文本插入)按 R7.1 完成评估:审计未发现 rpi 侧的传输层以外成因,机制与上游 v1.7.0 相同,候选修复均需先立 ADR,两条 characterization 测试钉住现行为;随后在已知问题批量处置中按 ADR-0053 修复(见下条)。 Linear SSE decoding and line readers, SSE copy-count probe (performance P2, ADR-0052; upstream #12224): the SSE decoder shared by every SSE-based API moved the remaining buffer once per line and searched the whole pending line again on every chunk, and the MCP Streamable HTTP reader, the proxy line splitter, both text line readers, the llama.cpp model-event watch and the terminal's bracketed-paste end-marker search had the same shape; each reader now examines only the bytes a chunk adds. A chunk carrying 10,000 events used to move the remaining buffer 20,000 times and now moves it once; a 1 MiB event in 4 KiB chunks used to examine 135,790,600 bytes and now examines every byte exactly once (release timing: a 4 MiB event in 64 KiB chunks 10.2 ms → 5.8 ms, 100k events in one chunk 6.15 s → 19 ms); a 1 MiB paste in 4 KiB chunks used to search 135,790,598 bytes. Raw lines are collected only by the adapters that report them (Anthropic and the two Google APIs). The frame probe gainssse_buffer_copies(moves of the decoder's remaining buffer since the previous frame);run_suite.py --ssemakes the replay round-trip every provider event through the production decoder before applying it (frames byte-identical to the direct run) and the judgment requires at most 1 per frame; the final screen, terminal bytes and frame sequences of all 26 replay scenarios match the previous build. KI-01 (a mouse-report tail inserted as text after a timed-outESC[<prefix under SSH) is evaluated per R7.1: the audit found no rpi-side cause beyond the sequence timeout, the mechanism is upstream-identical at v1.7.0, every candidate fix needs an ADR first, and two characterization tests pin the current behaviour; the fix then landed in the known-issue batch under ADR-0053 (see the next bullet). -
已知问题批量处置(KI-01/KI-12 修复、三条偏离补齐):SSH 下窗口恢复后,被传输层拆成两次读入的 SGR 鼠标报告现在由终端暂存超时的
ESC[前缀片段 500 ms,并与下一次读入一起重新解析(ADR-0053,rpi 自有差异;上游仅对协商前缀缓冲 150 ms),尾段不再作为文本插入输入框(新输入以 CSI 参数字节延续超时片段时拼接,拼成完整序列后仅当它是 TUI 作为整体处理的序列——按键/鼠标/焦点报告、粘贴标记、协商应答——才按一次读入解析;其余输入令片段先行原样转发,按键不会被吞入);SSE 解码对齐上游两处边界(空的event:名与无数据块的注释行不再带入下一事件;跨 chunk 的 CRLF 只跳过一个 LF);llama.cpp 模型事件监听改用共享SseDecoder(接受 lone CR 与跨 chunk CRLF);子代理超时恢复摘要补齐 transcript/输出/元数据工件行与requested report: missing|written;Fleet 展开视图的 bash 命令行按渲染宽度换行而不再截断。十二条负载敏感的测试改为确定性同步,断言未放宽。另(2026-12-05 发布收口):第一次0.1.10-rc.1构建在x86_64-pc-windows-msvc编译rpicrate 失败(Pi v1.6.x–v1.7.0 移植的三个cfg(windows)缺陷共四个编译错误:控制台关闭处理器调用、仅cfg(any(unix, test))的 exec 退出码映射、taskkill /T的 pid 列表),已修复并补齐 rust-clippy 1.100 的 Windows 专属告警(含两处fetch_update改用 Rust 1.95 起可用的try_update);在46c02a9c(run 47457468390)与1833b128(run 47464480740)上windows-tests工作流在 windows-latest 通过 fmt/clippy -D warnings/全目标 check 与rpi-durable检查,其测试步骤有三条既有的rpi-ext-hostwasm 燃料测试在实例化处失败(Windows 上的 wasm 扩展载体未经该运行验证);Linux 行为不变。另(rc.1 之后,2026-12-05):wasm(L1)扩展载体的实例化改在 fuel 预算下进行(KI-18,5b821e5b)——wasmtime 48 把模块启动段(数据段复制、全局初始化、表段与start函数)编译成一个受 fuel 计量、由instantiate调用的函数,而宿主此前在实例化前未设置 fuel,启动段一旦运行即在入口处 trap(instantiate: wasm trap: all fuel consumed by WebAssembly):Windows 上所有带数据段的扩展(该平台不支持写时复制内存初始化)、所有平台上带start函数/表初始化/非常量全局初始化的 guest 均无法加载;现在 store 在instantiate前携带CALL_FUEL,并改为在模块自身的 engine 上创建,实例化错误给出完整原因链;已在 Linux 上复现并修复(回归测试:start函数 guest、关闭写时复制的引擎即 Windows 路径、失控start仍为有界的加载错误、加载器层startguest),修复提交的 Windows 运行已通过(run 47490535970,rpi-ext-host单元测试 113/113)。KI-19/KI-20 两条负载敏感测试同步确定性化(statusline 以不同的 provider token 总数区分来源切换前后的帧并在承载新配置的帧之后再开流;/tree 导航测试先等待导航状态进入渲染再采样),断言未放宽,产品行为不变。 Known-issue batch (KI-01/KI-12 fixes, three deviations closed): when the transport splits an SGR mouse report across two reads under SSH, the terminal now keeps the timed-outESC[prefix for a 500 ms join window and re-parses it with the next read (ADR-0053, an rpi-own difference; upstream buffers only the negotiation prefixes for 150 ms), so the tail no longer lands in the editor as text (the next read joins the prefix when it continues it with CSI parameter bytes and, once a final byte completes it, only if the whole is a sequence the TUI handles as a unit — a key, a mouse or focus report, a paste marker, a protocol reply; anything else gets the prefix out first and a key pressed after an orphan prefix is never swallowed); SSE decoding matches upstream on two edge cases (an emptyevent:name and the comment lines of a data-less block are no longer carried into the next event; a CRLF split across chunks skips one LF); the llama.cpp model-event watch uses the sharedSseDecoder(lone CR and a CRLF split across chunks accepted); a timed-out subagent's recovery summary names its transcript, output and metadata artifacts and statesrequested report: missing|written; the Fleet expanded view wraps long bash command lines to the render width instead of cutting them. Twelve load-sensitive tests were made deterministic without relaxing an assertion. Also (2026-12-05 release closeout): the first0.1.10-rc.1build failed to compile therpicrate onx86_64-pc-windows-msvc(four compiler errors from threecfg(windows)defects of the Pi v1.6.x–v1.7.0 port: the console-close handler call, the exec exit-code mapping compiled only undercfg(any(unix, test)), thetaskkill /Tpid list); fixed, with the rust-clippy 1.100 Windows-only warnings satisfied (including the twofetch_updatesites moving totry_update, stable since Rust 1.95). On46c02a9c(run 47457468390) and1833b128(run 47464480740) thewindows-testsworkflow passes fmt, clippy, the all-target check and therpi-durablecheck on windows-latest, while its test step failed three pre-existingrpi-ext-hostwasm fuel tests at instantiation (the wasm extension carrier on Windows is not verified by that run); no Linux behaviour change. Also (after rc.1, 2026-12-05): the wasm (L1) extension carrier now instantiates on a fuel budget (KI-18,5b821e5b) — wasmtime 48 compiles the module startup (data-segment copies, global initializers, table segments and thestartfunction) into one fuel-metered function thatinstantiateinvokes, and the host set no fuel before instantiating, so a startup that ran trapped at its entry (instantiate: wasm trap: all fuel consumed by WebAssembly): on Windows every extension with data segments (copy-on-write memory initialization is unsupported there) and on every platform a guest with astartfunction, table initializers or non-constant global initializers failed to load; the store now carriesCALL_FUELbeforeinstantiateand is created on the module's own engine, and the instantiate error names the trap reason; reproduced and fixed on Linux (regression tests: astart-function guest, an engine with copy-on-write initialization disabled — the Windows path —, a runawaystartstaying a bounded load error, and a loader-seamstartguest), and the fixed commit passes the Windows run (run 47490535970,rpi-ext-hostunit tests 113/113). The KI-19/KI-20 load-sensitive tests were made deterministic in the same pass (the statusline test tells the source-switch frames apart by the provider total and starts the stream after the frame that carries the new settings; the /tree navigation test awaits the navigation status before sampling the transcript) without relaxing an assertion and without a product change. -
内部工具链:本地门禁与测试整合:
bash scripts/run-gates.sh成为本地门禁的唯一入口(快失败顺序:fmt→ G15 七项 →verify-upstream→clippy -D warnings→ 统一特性编译一次后并行执行整合后的测试二进制与 doctests → POSIX/PowerShell 安装器),自动剥离RPI_NO_GLOBAL_CONTEXT/RPI_SUBAGENT_CHILD/AI_AGENT并校验/tmp空闲下限,--diff-base按变更面跳过未触及的门禁、--full供发布前 double-run;scripts/run-test-binaries-parallel.py并行执行测试二进制,scripts/clean-workspace-disk.py回收陈旧 target 哈希、超期子代理工件(保留handoffs/与worktree-diffs/)和遗留/tmp目录。集成测试顶层文件由 216 个收敛到 21 个,12 个 crate 改用tests/integration/main.rs(零mod.rs),进程环境变量与只读夹具统一走rpi_test_env::lock_env()/stage_readonly_file(),九处tokens_per_second节流改为FauxProvider确定性门控;[profile.dev.package."*"]去掉第三方 debuginfo 并开opt-level = 2,调试产物约减半。以上仅涉及构建/测试工具链,不改变产品行为,也不代表任何打包、registry、端点、tag 或 Release 动作。 Internal tooling: local gates and test consolidation:bash scripts/run-gates.shis the single local gate entry (fail-fast order:fmt→ the seven G15 checks →verify-upstream→clippy -D warnings→ one unified-feature compile followed by the consolidated test binaries and doctests in parallel → the POSIX/PowerShell installers); it stripsRPI_NO_GLOBAL_CONTEXT/RPI_SUBAGENT_CHILD/AI_AGENT, enforces the/tmpfree-space floor, skips untouched surfaces with--diff-baseand runs the release double-run with--full;scripts/run-test-binaries-parallel.pyruns the test binaries concurrently andscripts/clean-workspace-disk.pyreclaims stale target hashes, aged subagent artifacts (keepinghandoffs/andworktree-diffs/) and leftover/tmpdirectories. Top-level integration test files drop from 216 to 21, twelve crates mount their suites undertests/integration/main.rs(zeromod.rs), process environment and large read-only fixtures go throughrpi_test_env::lock_env()/stage_readonly_file(), the ninetokens_per_secondpacing tests gate deterministically onFauxProvider, and[profile.dev.package."*"]drops third-party debuginfo withopt-level = 2, roughly halving debug artifacts. This touches build/test tooling only and changes no product behaviour, nor does it imply any packaging, registry, endpoint, tag or Release action.
0.1.9上游追平 v1.5.2 + 流式性能与 Linux 内存专项 + statusline estimate 计算模式 + Windows 启动时自更新 + 插件重定基(2026-11-28)Upstream parity to Pi v1.5.2 + streaming performance and Linux memory + statusline estimate mode + Windows startup self-update + extension rebase (2026-11-28)
本节是 v0.1.9 的正式发布说明,与源码仓库 changes/v0.1.9.md 同源。行为金标准升级到 Pi v1.5.2(b4afdddf,ADR-0048),pi-subagents 升级 v0.88.1、agent-smart-fetch 升级 v0.3.23、rpiv-mono 保持 v2.15.0;收口时上游已发布 Pi v1.6.0/v1.6.1 与 pi-subagents v0.90.0,本版仍按 v1.5.2 / v0.88.1 收口,移动 pin 留给下一版本的独立 ADR。主线是流式性能与 Linux 内存(ADR-0049):长历史 + 长代码回答 + 全屏跟随场景的进程 CPU 为 v0.1.8 的 38.3%,纯计算帧 p95 为 44.1%,输入到可见延迟为 5.5%;Linux GNU 空会话常驻内存下降 60%、虚拟内存下降 82%,长会话常驻内存约减半;statusline 新增 estimate 计算模式。Windows 侧新增启动时自更新(ADR-0050);Git 安装的扩展在无法写入恢复标记时于重置 checkout 前停止(#79)。所有 v0.1.9 宿主调用均为 additive,rpiAbi 保持 1。
This is the v0.1.9 release, mirroring changes/v0.1.9.md in the source repository. The behavioral gold standard moves to Pi v1.5.2 (b4afdddf, ADR-0048); pi-subagents moves to v0.88.1, agent-smart-fetch to v0.3.23 and rpiv-mono stays at v2.15.0. Upstream has since released Pi v1.6.0/v1.6.1 and pi-subagents v0.90.0; v0.1.9 closes on v1.5.2 / v0.88.1 as re-confirmed at closeout, and moving the pins is a separate ADR for the next version. The main line is streaming performance and Linux memory (ADR-0049): the long-history + long-code-answer + fullscreen scenario runs at 38.3% of the v0.1.8 process CPU with pure-compute frame p95 at 44.1% and input-to-visible latency at 5.5%; an empty Linux GNU session uses 60% less resident and 82% less virtual memory, a long session about half; the statusline gains the estimate calculation mode. Windows gains the startup self-update (ADR-0050); Git extension updates stop before resetting the checkout when the recovery marker cannot be written (#79). Every v0.1.9 host-call is additive and rpiAbi stays 1.
-
上游、目录与 pin:行为金标准从 Pi v1.4.0
4a080252f升级到 v1.5.2b4afdddf(ADR-0048);再生的 models.dev v2 目录含 43 家 provider、1851 个条目(1698 chat / 71 image / 82 classifier),新增qwen-token-plan-individual-cnprovider,默认模型表、Azure 长上下文定价、GLM allowlist 与 OpenCode 协议端点随上游更新;43 份 provider 模型列表与站点 catalog 逐项一致。 Upstream, catalog and pins: The behavioral gold standard moves from Pi v1.4.04a080252fto v1.5.2b4afdddf(ADR-0048); the regenerated models.dev v2 catalog holds 43 providers and 1851 entries (1698 chat / 71 image / 82 classifier), adds theqwen-token-plan-individual-cnprovider, and carries the target default-model table, Azure long-context pricing, GLM allowlists and OpenCode protocol endpoints; all 43 provider model lists match the site catalog. -
Schema 与启动内存:
jsonschema固定 0.61.2 并启用公开的macrosfeature:native models/settings 校验器使用编译期 meta-validator,不再初始化动态全局 meta-validator;内建目录的各代之间以 Arc/COW 共享不可变模型数据;64 位下Model从 1064 字节缩到 480、AnyModel从 1064 缩到 904(Model.compat装箱,见 Breaking)。 Schema and startup memory:jsonschemais pinned to 0.61.2 with its publicmacrosfeature, so the native models/settings validators use the compiled meta-validator without initializing the dynamic global one; built-in catalog generations share immutable model data through Arc/COW; on 64-bitModelshrinks from 1064 to 480 bytes andAnyModelfrom 1064 to 904 (Model.compatis boxed, see Breaking). -
Linux malloc arena:
rpi与rpi-rpc在 Linux GNU 上于解析参数和创建 runtime/工作线程之前把 glibc 的MALLOC_ARENA_MAX设为 1;MALLOC_ARENA_MAX=<32 位正整数>仍是唯一覆盖入口,非法值告警并回退 1;默认值用mallopt设置而不写入环境,工具子进程不继承;其他操作系统与 libc 不变。 Linux malloc arenas:rpiandrpi-rpcset glibc'sMALLOC_ARENA_MAXto 1 before argument parsing or runtime/worker creation on Linux GNU;MALLOC_ARENA_MAX=<positive 32-bit integer>remains the sole override, invalid values warn and fall back to 1; the default is applied withmalloptrather than an environment write, so tool children do not inherit it; other operating systems and libc implementations are unchanged. -
流式性能:无 Mermaid 候选的 Markdown 在内建 transformer 中 0 次 comrak 解析;每个可见文本/思考块复用一个 Markdown 实例,未变化的顶层块不再重复转换、换行和高亮;
Component::cache_revision()为 additive 默认方法;PNG 缓存以 256-bit 内容摘要为键并增加 8 MiB 总字节上限。工具参数增量解析移植上游 #9265:每个 delta 只扫描一次,预览与终态权威解析分离(D-112 登记预览差异)。全屏 transcript 以高度索引量测,滚动子组件只携带视口加 16 行 overscan,搜索/选择/复制/提示符跳转按需读取全文;渲染请求 latest-wins 合并,自适应 60/30/20 fps 背压按实测帧成本降档,输入与 resize 帧保持延迟类且最终帧必达。同机固定帧率 A/B(v0.1.8 → 本版):主场景 CPU 8.892 → 3.409 s (38.3%)、纯计算帧 p95 41.34 → 18.25 ms (44.1%)、输入到可见 p95 23.90 → 1.31 ms (5.5%);背压单独报告(主场景 65 帧而非 247 帧,CPU 为固定帧率的 46.9%)。超长单词行的换行改为单遍处理(见 Fixed),long-arguments场景 p95 为 v0.1.8 的 101%。 Streaming performance: Markdown without a Mermaid candidate runs zero comrak parses in the built-in transformer; each visible text/thinking block reuses one Markdown instance and unchanged top-level blocks are no longer re-converted, re-wrapped or re-highlighted;Component::cache_revision()is an additive default method; the PNG cache keys on a 256-bit content digest and adds an 8 MiB total-byte limit. Tool arguments are parsed incrementally (upstream #9265): each delta is scanned once and the preview is separate from the authoritative final parse (preview differences are registered as D-112). Fullscreen transcripts are measured through a height index, the scroll child carries only the viewport plus 16 overscan rows, and search/selection/copy/prompt jumps read the full text on demand; render requests are folded latest-wins, the adaptive 60/30/20 fps backpressure follows the measured frame cost, and input/resize frames stay latency-class with the final frame always delivered. Same-machine fixed-cadence A/B (v0.1.8 → this release): main scenario CPU 8.892 → 3.409 s (38.3%), pure-compute p95 41.34 → 18.25 ms (44.1%), input-to-visible p95 23.90 → 1.31 ms (5.5%); backpressure is reported separately (65 frames instead of 247 at 46.9% of the fixed-cadence CPU). Long single-word lines now wrap in one pass (see Fixed): thelong-argumentsscenario's p95 is 101% of v0.1.8. -
statusline:estimate 计算模式、实时总量与紧凑 tokenizer:
statusLine.liveTokens新增可选calculation: auto|estimate:auto(默认,沿用 Provider → 内置 tokenizer → CJK 启发式)或estimate(流式始终用轻量启发式并以~标记,即使 provider 已给出精确的运行总量,流式期间不加载 tokenizer);旧的true、{refreshMs}与缺失键一律为 auto。typed settings schema 为严格枚举,/statusline提供两值切换并在下一次刷新热生效。items 的live-total-tokens改为权威基线 + provider 精确 pending + 本地精确/估算结算 + 当前消息暂估,message_end原子结算一次;additive 的ctx.sessionStats({countsOnly:true})以 O(1) 增量计数回答水位 probe(每个 assistant 终态最多 1 次)。六族 tokenizer 增量计数(任意 delta 边界 finalize 与官方全量一致,>64 KiB 开放片段安全回退),表压缩为单字节池:Kimi 加载后 RssAnon 20644 → 6080 KiB(−71%)、GLM −41%、DeepSeek −31%、Qwen −45%、Hunyuan −51%、MiniMax −19%,模型切换仍释放旧家族。 Statusline: estimate mode, live total and compact tokenizers:statusLine.liveTokensgains an optionalcalculation: auto|estimate:auto(default; the Provider → bundled tokenizer → CJK heuristic order) orestimate(always the lightweight heuristic while streaming, every value marked~even when the provider already reports an exact running total, and no tokenizer loaded while streaming); the legacytrue,{refreshMs}and missing-key shapes all stayauto. The typed settings schema is a strict enum, and/statuslineoffers the two-value cycle, applied on the next refresh without a restart. The itemslive-total-tokensfield becomes the authoritative baseline plus pending provider-exact output, settled local exact/estimated contributions and the current message's provisional output, settled once atmessage_end; the additivectx.sessionStats({countsOnly:true})answers the watermark probe from O(1) incremental counts (at most once per finished assistant message). The six tokenizer families count incrementally (finalizeequals the official full pass at every delta boundary; open pieces above 64 KiB fall back safely) and their tables are compacted into byte pools: Kimi's RssAnon after load falls 20644 → 6080 KiB (−71%), GLM −41%, DeepSeek −31%, Qwen −45%, Hunyuan −51%, MiniMax −19%, and a model switch still releases the previous family. -
statusline 显示变化(非 Breaking):
auto下,正常完成消息的本地精确/估算贡献现在跨快照与下一条消息保留在实时总量中(过去在message_end丢弃),没有精确来源时~标记可以持续到会话结束;配置、流式来源优先级与TokenSource不变,abort/error 的消息仍不计入估算。 Statusline display change (not breaking): Underauto, the local exact/estimated contribution of a normally completed message now stays in the live session total across snapshots and the next message (it used to be dropped atmessage_end), so the~marker can persist until the session ends when no exact source exists; configuration, the streaming source precedence andTokenSourceare unchanged, and aborted/errored messages still contribute no estimate. -
Provider 与认证:Anthropic message threads 与按消息的 effort 绑定、idle cache warming、provider 上报成本归因、OpenAI 兼容控制、按 session 的 strict-tool 回退、OpenRouter BYOK/latest 别名与更安全的上下文裁剪、Kimi K3.1/GPT 顶层工具元数据、Bedrock/Gemini schema 修正、GitHub Copilot 的 Microsoft-Decision-1 classifier、结构化刷新告警、仅 http/https 的登录 URL 且不经 shell 打开(含 Windows
rundll32)、私有 auth 文件与锁身份、退出前排空凭据写入;rpi auth login|logout <provider>支持 API key、无浏览器、设备码与复制码流程。 Providers and authentication: Anthropic message threads and per-message effort binding, idle cache warming, provider-reported cost attribution, OpenAI compatibility controls, per-session strict-tool fallback, OpenRouter BYOK/latest aliases and safer context clamps, Kimi K3.1/GPT top-level tool metadata, Bedrock/Gemini schema fixes, Microsoft-Decision-1 through GitHub Copilot, structured refresh warnings, HTTP(S)-only login URLs opened without a shell (including Windowsrundll32), private auth files and lock identity, and credential-write draining at shutdown;rpi auth login|logout <provider>supports API-key, no-browser, device and copy-code flows. -
MCP 与 codemode:有界的 JSON/SSE/错误体(超限断开)、线性的 SSE 与 stdio 分帧(关闭时取消、进程组/直接子进程清理)、调用方持有的
McpPipe、start/complete 两阶段 OAuth 且 refresh 只复用、prompt 取消与后台 token 持久化、共享的工具命名/schema/输出上限/配置辅助、本地 JSON Pointer 解析,codemode 对NaN/Infinity输出null。 MCP and codemode: Bounded JSON/SSE/error bodies with connection drop on overflow, linear SSE and stdio framing with close cancellation and process-group/direct-child cleanup, caller-ownedMcpPipe, two-phase OAuth with refresh-only reuse, prompt cancellation with background token persistence, shared tool naming/schema/output-limit/config helpers, local JSON Pointer resolution, andnullinstead ofNaN/Infinityin codemode output. -
Coding agent、session 与 TUI:缺失 cwd 的交互入口提供 Continue/Fork/Cancel;磁盘写失败回滚内存条目;
exec增maxBuffer/truncated与进程树终止,read增可选分块流与有界文件窗口,edit写前生成规范化源跨度 diff;自定义 overlay 汇总 blocked 位图并接收按键提示,Markdown transformer 覆盖custom/summary/changelog,组件帧增可选capturesViewportInput;搜索覆盖 NFC Unicode 与本地$ref展开。 Coding agent, sessions and TUI: Missing interactive cwds offer Continue/Fork/Cancel; disk-write failures roll back in-memory entries;execaddsmaxBuffer/truncatedwith process-tree termination,readadds optional chunk streams and bounded file windows, andeditgenerates normalized source-span diffs before writing; custom overlays aggregate blocked bitmaps and receive key hints, Markdown transformers covercustom/summary/changelog, and component frames add the optionalcapturesViewportInput; search covers NFC Unicode and local$refexpansion. -
Windows 启动时自更新:
rpi update --self/--all把已校验的可执行文件与同批扩展暂存到rpi.exe旁的.update\,不再停在手动步骤;下次启动在一个带 journal 与 OS 级锁的事务里换入,旧进程随后用原始命令行启动新的rpi.exe并等待它(shell 提示符在 rpi 退出后才返回,退出码与 Ctrl+C 透传)。新版本在首启确认前崩溃会自动回滚(旧可执行文件、扩展指针与安装清单)并进入禁用清单,rpi update --self --version <版本> --force才能再次暂存;扩展以分代目录 +current.json指针安装,每次启动清理无人使用的旧文件并给出提示(rpi update --cleanup重试),rpi self-uninstall在其他实例运行时拒绝,install.ps1写入同一布局并修复缺失的rpi.exe。Linux/macOS 的启动与更新路径不变。 Windows startup self-update:rpi update --self/--allstage the verified executable and the extensions of the same batch under.update\next torpi.exeinstead of stopping at manual steps; the next start applies them in one journaled, OS-locked transaction, and the old process then starts the newrpi.exewith the original command line and waits for it (the shell prompt returns only when rpi exits; the exit code and Ctrl+C pass through). A new version that crashes before its first start is confirmed is rolled back automatically (previous executable, extension pointers and install manifest) and blocked untilrpi update --self --version <version> --forcere-stages it; extensions install as versioned directories behind acurrent.jsonpointer, every start removes old-version files nobody uses and reports it (rpi update --cleanupretries),rpi self-uninstallrefuses while other instances run, andinstall.ps1writes the same layout and repairs a missingrpi.exe. Linux/macOS startup and update paths are unchanged. -
Experimental durable 栈:Session Writer group commit 与有序多 batch 存储、
Arc热读、SQLite 语句/读缓存、有界 outcome 队列;tagged watch/observer、deferred 进度与 live v3 迁移、有界 transcript 窗口、只读 Session/Harness/JSONL、崩溃/重试恢复与终态 restart limit;Continue、maxTurns、raw entry 范围、afterRun子任务排空与有序 provider 载荷钩子。默认 CLI 隔离、Session JSONL 外层与累计扩展事件不变。 Experimental durable stack: Session Writer group commit with ordered multi-batch storage,Archot reads, SQLite statement/read caches and bounded outcome queues; tagged watch/observer calls, deferred progress and live v3 migrations, bounded transcript windows, read-only Session/Harness/JSONL modes, crash/retry recovery and terminal restart limits;Continue,maxTurns, raw entry ranges,afterRunchild draining and ordered provider-payload hooks. Default CLI isolation, Session JSONL outer framing and cumulative extension events are unchanged. -
插件重定基:
rpi-subagents升级到 pi-subagents v0.88.1(parent-owned trusted recovery、workflowsubagent_launch审批与零副作用拒绝、30/90 天保留与安全清理、drain、单调暂停预算、终态 length/acceptance、compaction 后的session_compact、list/status/fleet/wait/steer 按 owner 过滤、fork 副本布局与清理、MCPdirectTools选择器等),rpi-smart-fetch升级到 agent-smart-fetch v0.3.23(compactfetchSummary/batchSummarydetails),rpiv-mono 保持 v2.15.0 并重跑零差回归;双轨对拍:subagents 目标 v0.88.1 / 回归 v0.83.0,smart-fetch 目标 v0.3.23 / 回归 v0.3.17。 Extension rebase:rpi-subagentsmoves to pi-subagents v0.88.1 (parent-owned trusted recovery, the workflowsubagent_launchapproval with zero-side-effect deny, 30/90-day retention and safe cleanup, drain, monotonic paused budgets, terminal length/acceptance,session_compactafter compaction, owner-scoped list/status/fleet/wait/steer, fork copy layout and cleanup, MCPdirectToolsselectors and more),rpi-smart-fetchmoves to agent-smart-fetch v0.3.23 (compactfetchSummary/batchSummarydetails), and rpiv-mono stays at v2.15.0 with its zero-difference regression re-run; dual-track parity: subagents target v0.88.1 / regression v0.83.0, smart-fetch target v0.3.23 / regression v0.3.17. -
Breaking:provider、校验与配置:
Model.compat改为Option<Box<ModelCompat>>(Rust 源码级破坏,models.json 与 wire schema 不变);plain JSON Schema 按最终 pi-schema 的 coercion 与局部未解析$ref行为校验,BigInt/Undefined接受并保留 JSON 输入,Void始终拒绝,错误路径/文案随之迁移;官方 Anthropic origin 默认使用 message threads(前缀不匹配、历史/压缩/工具变化或线程失败时回退全量,可用compat.supportsMessageThreads: false或StreamOptions.disable_continuation关闭);cacheWarming默认从streaming改为idle;OpenAI 兼容端点默认省略空tools(旧代理可用compat.requiresToolsWithToolHistory恢复,新增promptCacheKeyMode与requiresNonNullAssistantContent)。 Breaking: providers, validation and configuration:Model.compatbecomesOption<Box<ModelCompat>>(a Rust source-level break; models.json and the wire schema are unchanged); plain JSON Schema follows the final pi-schema coercion and local-unresolved-$refbehavior,BigInt/Undefinedaccept and preserve the JSON input,Voidalways rejects, and validation error paths/messages migrate accordingly; official Anthropic origins use message threads by default (full-request fallback on prefix mismatch, changed history/compaction/tools or thread failure; disable withcompat.supportsMessageThreads: falseorStreamOptions.disable_continuation); the defaultcacheWarmingmode changes fromstreamingtoidle; OpenAI-compatible endpoints omit emptytoolsby default (legacy proxies opt back in withcompat.requiresToolsWithToolHistory; newpromptCacheKeyModeandrequiresNonNullAssistantContentcontrols). -
Breaking:工具、Markdown 与 session:
grep的上下文行只来自 ripgrep 输出:废弃的GrepOperations::read_file默认实现仍保留在 trait 上但不再被调用,通过它影响远程结果的自定义 grep 实现须改为覆盖AgentTool::execute;MarkdownTransformContext覆盖custom/summary/changelog并带可选消息身份/时间戳,摘要与 changelog 渲染器经同一 transformer/Mermaid 管线后输出可能变化;缺失 cwd 的交互启动、--session/--resume、/resume、/import与ctx.switchSession()必须显式选择 Continue/Fork/Cancel(启动 Fork 改 session ID/cwd,Continue 不持久化,失败/取消的导入删除副本)。 Breaking: tools, Markdown and sessions:grepbuilds its context lines from ripgrep's own output: the deprecatedGrepOperations::read_filedefault stays on the trait for source compatibility but is never called, so a custom grep implementation that influenced remote results throughread_filemust overrideAgentTool::execute;MarkdownTransformContextcoverscustom/summary/changelogwith optional message identity/timestamp, and summary/changelog renderers can change their output through the shared transformer/Mermaid pipeline; interactive startup,--session/--resume,/resume,/importandctx.switchSession()require an explicit Continue/Fork/Cancel decision (startup Fork changes the session ID/cwd, Continue does not persist the decision, and failed/cancelled imports remove their copies). -
Breaking:durable Rust API 迁移(experimental):durable 公共 Rust API 不保证源码兼容,完整迁移表见
changes/v0.1.9.md的 Durable Rust API migration 节:Storage::commit接受有序 batch 并返回CommitResult,热读返回Arc;WatchCall/WatchEndtagged 形状、DocumentChangeKind、subscribeCommits→observeCommits(DocumentCommitChange),旧 watch getter/事件迁至observeDoc/observeConversation/observeTaskGraph,FileChange为Paths/Overflow/Failed且 watcher 改为 stop;ConversationView为有界窗口并新增分页ConversationTranscript,ConversationHandle::submit与WhenIdle::Reject;CommitPersistence::Deferred/persist_within_ms延迟持久化,HarnessOptions/JsonlStorageOptions的read_only两层只读;所有 Harness 错误结果经afterTool;pi.livev3(reason→trigger、必填run.turns)、pi.toolv3(可选unoffered)、pi.generationv2,旧 reader 拒绝新记录、下一写升级 v1/v2 fixture;Report取代字符串回调,TaskInspectionState::Ready→Pending,retry_task/TaskParked移除,SubmissionDraft/SubmissionRecord增Continue,restart limit 以终态收尾而非 parked 重试;SessionEnd保持Closed/Failed,不在迁移内。 Breaking: durable Rust API migration (experimental): The public durable Rust API is not source-compatible; the full migration table is the Durable Rust API migration section ofchanges/v0.1.9.md:Storage::committakes ordered batches and returnsCommitResult, hot reads returnArc; the taggedWatchCall/WatchEndshapes,DocumentChangeKind,subscribeCommits→observeCommits(DocumentCommitChange), old watch getters/events move toobserveDoc/observeConversation/observeTaskGraph, andFileChangeisPaths/Overflow/Failedwith watchers stopping instead of closing;ConversationViewis a bounded window with the paginatedConversationTranscript, plusConversationHandle::submitandWhenIdle::Reject;CommitPersistence::Deferred/persist_within_msdeferred persistence and the two read-only layers (HarnessOptions/JsonlStorageOptionsread_only); every Harness error result passes throughafterTool;pi.livev3 (reason→trigger, requiredrun.turns),pi.toolv3 (optionalunoffered) andpi.generationv2, with old readers rejecting the new records and the next write upgrading v1/v2 fixtures;Reportreplaces the string callbacks,TaskInspectionState::ReadybecomesPending,retry_task/TaskParkeddisappear,SubmissionDraft/SubmissionRecordgainContinue, and restart limits end in terminal outcomes instead of parked retries;SessionEndintentionally remainsClosed/Failed. -
Breaking:插件:后台 resume/auto-resume 只接受 run 目录外的 parent-owned
recovery.json,旧版本创建的 run 被拒绝并提示 relaunch/reuseFrom;capability ceiling 按 session id 而非 session 文件路径(rpi 无路径注册表,允许列表由 session 继承的环境按启动解析);带outputSchema的子代理必须经structured_output结束,原始 JSON 值在 coercion 前校验("42"/"x"/null 不再通过数值/字符串类型 schema);smart-fetch 新结果写入 compactfetchSummary/batchSummary而非完整正文(旧 session 只在内存可读、不改写);managed worktree 在 handoff 记录 removed/branchRemoved、pending capture 或 root/cwd 缺失/越界时拒绝 resume。 Breaking: extensions: Background resume/auto-resume requires the parent-ownedrecovery.jsonbeside the runs root; runs created by older versions are refused with a relaunch/reuseFromhint; the capability ceiling is keyed by session id instead of the session-file path (rpi has no path registry; the allowlist is resolved per launch from the session's inherited environment); a child withoutputSchemamust finish throughstructured_output, with the raw JSON value validated before coercion ("42"/"x"/null no longer pass numeric/string-typed schemas); new smart-fetch results persist compactfetchSummary/batchSummarydetails instead of full bodies (old sessions stay readable in memory and are not rewritten); a managed worktree refuses resume when the handoff records removed/branchRemoved, a pending capture, or a missing/out-of-root cwd. -
修复:deferred durable commit 折叠 held 操作到下一次读写 stored commit、Session outcome 的 line fence 与失败中毒、crash/retry 恢复与 scheduler fault 的持久化顺序;嵌套宿主对话框保留 deferred 内联组件直到最终关闭;目录刷新区分 configured-only 与凭据来源(stale
invalid_grant降级为告警,rpi update --models不再整体失败);Bedrock preferred strict 工具一次 non-strict 重试、Gemini 仅把 schemaconst改写为单值 enum;MCP OAuth 拆分 start/complete,相对根$id、坏的百分号转义、缺失与循环引用安全解析;OpenAI Responses 改用session-id,Zhipu 1308 与 ChatGPT workspace 限制不重试。rpi-tui的超长单词行换行改为单遍处理:breakLongWord过去先为每个字素收集一个 segment、两个换行辅助函数逐字节调用 ANSI 扫描器,单行 25–41 KiB 文件的write折叠预览在每个流式 delta 重排约 80,000 次调用和一个 40,000 项向量;渲染行不变(差分测试以旧实现为参考),long-arguments-fullscreen的纯计算帧 p95 从 v0.1.8 的 112% 降到 101%(9 次)。Windows 修复:settings/auth/keybindings 文件不再在启动、升级后及每次写入时报"被锁"——LockFileEx对加锁进程自身的第二个句柄同样强制,协调写入器的路径重读以ERROR_LOCK_VIOLATION(33) 失败(每次启动的lastChangelogVersion写入都会暴露它,升级后版本号从未持久化所以反复出现;rpi config、rpi install/remove、statusline 编辑器、subagents 覆盖、keybindings.json迁移与 auth 存储命中同一模式,auth 启动快照为空);所有第一方写入器改为经持锁句柄读取、在 Windows 替换前释放旧锁并把 33 视为争用;崩溃遗留的.write-lock死租约在 Windows 也能回收(先关闭已认领的lease.lock、校验 token 后再重命名目录),不再在此后每次启动超时。 transcript driver 修复:rpi-tui的全屏 transcript 高度索引在 session 线程于一帧高度测量与行读取之间清空或重建 chat(启动 auto-theme 重建、/clear、树导航、compaction 完成)时不再以index out of boundspanic(driver 线程退出后 TUI 不再渲染);行读取先重新测量被重构的文档,索引读取在下一次 sync 前回答"未测量";Git 安装的扩展在无法写入恢复标记时于重置 checkout 前停止,错误信息包含标记路径(上游writeFileSync语义,#79)。 Fixed: Deferred durable commits fold held operations into the next stored commit, session outcomes are line-fenced and failure-poisoned, and crash/retry recovery orders scheduler faults after the terminal publication; nested host dialogs keep deferred inline components unmounted until the final close; catalog refresh distinguishes configured-only from credential-backed sources (a staleinvalid_grantdowngrades to a warning andrpi update --modelsno longer fails as a whole); Bedrock preferred strict tools retry once non-strict, and Gemini rewrites only schemaconstnodes to single-value enums; MCP OAuth sign-in is split into start/complete, and relative root$id, bad percent escapes, missing and cyclic references resolve safely; OpenAI Responses usessession-id, and Zhipu 1308 and ChatGPT workspace limits are not retried. Inrpi-tui, long single-word lines wrap in one pass:breakLongWordused to collect one segment per grapheme and both wrap helpers called the ANSI scanner once per byte, so the collapsedwritepreview of a one-line 25–41 KiB file re-wrapped ~80,000 calls and a 40,000-entry vector on every streaming delta; rendered lines are unchanged (a differential test keeps the old implementation as the reference), and thelong-arguments-fullscreenpure-compute p95 moves from 112% to 101% (9 repeats) of v0.1.8. Windows fix: settings, auth and keybindings files are no longer reported as locked on startup, after an upgrade and on every write —LockFileExdenies the locking process's own second handle the locked range, so the coordinated writer's path re-read failed withERROR_LOCK_VIOLATION(33) (the startuplastChangelogVersionwrite surfaced it on every start, and it recurred after every upgrade because the version never persisted;rpi config,rpi install/remove, the statusline editor, the subagents overrides, thekeybindings.jsonmigration and the auth store hit the same pattern, the auth store starting with an empty credential snapshot); every first-party writer now reads through the lock-owning handle, releases the legacy lock before the Windows replace and treats error 33 as contention; a dead.write-locklease left by a crash is reclaimed on Windows (the claimedlease.lockis closed and the token re-verified before the directory is renamed) instead of timing out on every later start. Transcript driver fix: the fullscreen transcript height index inrpi-tuino longer panics withindex out of boundswhen the session thread clears or rebuilds the chat between a frame's height measurement and a row read (the startup auto-theme rebuild,/clear, tree navigation, a completed compaction), which took the driver thread down and left the TUI without renders; the row readers re-measure a restructured document first, and the index readers answer "unmeasured" until the next sync; Git extension updates stop before resetting the checkout when the recovery marker cannot be written, with the marker path in the error (upstreamwriteFileSyncsemantics, #79). -
内存证据与边界:同机 release A/B(v0.1.8 → 本版,默认扩展):Linux GNU 空会话启动时 top VIRT 461 → 82 MiB(−82%)、RES 98.9 → 39.3 MiB(−60%)、
RssAnon76.5 → 15.0 MiB、PSS 97 → 37 MiB;归因:MALLOC_ARENA_MAX=1单独解释 380 MiB VIRT 降幅中的 320 MiB,RES 变化在 ±1 MiB 内(RES 降幅 59.0 MiB 来自编译期 meta-validator 与共享目录)。长会话 RES −51.5%/−51.5%/−49.6%/−43.8%(启动/流式/message_end 与 idle、resume),50 轮 idle、/new、/resume与模型切换无代际增长;新增只读代码页同路径 A/B 中常驻可执行页平均 +1652 KiB、SHR 增长均值 +3 KiB(10×10 同路径对均值与 canonical 对均在共享 2 MiB 预算内,18/100 对单对读数 2,072–2,780 KiB 已全部公开,评估口径见 ADR-0049 收口实测注记;二进制体积 40.36 → 44.14 MB 仅报告)。边界:provider/OAuth/usage/MCP 仅以离线 fixture 与 loopback 验证,未用真实账号;非 GNU/非 Linux 目标只做编译探针,Windows 未手工验证(设置锁修复已针对x86_64-pc-windows-gnu做库与测试目标编译检查,回归测试以cfg(windows)门控,未在 Windows 上运行),PowerShell 安装器在本地 pwsh 7.6.9 与 CI 构建中运行;regular 模式的 1 MiB 历史场景按设计仍全文渲染;estimate在 replay 小输入上与auto差异在噪声内(成本证据为计数 benchmark);serde_json未启用float_roundtrip(≥17 位有效数字与 JS 最短往返差 1 ulp,与 v0.1.8 相同);durable 仍为 experimental。 Memory evidence and boundaries: Same-machine release A/B (v0.1.8 → this release, default extensions): an empty Linux GNU session at startup reads top VIRT 461 → 82 MiB (−82%), RES 98.9 → 39.3 MiB (−60%),RssAnon76.5 → 15.0 MiB and PSS 97 → 37 MiB; attribution:MALLOC_ARENA_MAX=1alone accounts for 320 of the 380 MiB VIRT drop and leaves RES unchanged within 1 MiB (the RES reduction of 59.0 MiB comes from the compiled meta-validator and the shared catalog). A long session reads RES −51.5%/−51.5%/−49.6%/−43.8% (startup/streaming/message_end and idle, resume) with no generational growth across 50 idle turns,/new,/resumeor model switches; in the same-path A/B the resident executable pages grow by +1652 KiB on average and SHR by +3 KiB on average (the mean over the 10×10 same-path pairs and the canonical pair both stay within the shared 2 MiB budget; 18 of the 100 individual pairs read 2,072–2,780 KiB and are published in full, with the evaluation statistic recorded in ADR-0049's closeout note; the binary size 40.36 → 44.14 MB is reported only). Boundaries: providers/OAuth/usage/MCP were exercised only with offline fixtures and loopback stubs, never with real accounts; non-GNU/non-Linux targets were compile-probed only, Windows was not exercised by hand (the settings-lock fixes were compile-checked forx86_64-pc-windows-gnuwithcfg(windows)-gated regression tests, not run on Windows), and the PowerShell installer suite ran on a local pwsh 7.6.9 and in the CI build; the 1 MiB regular-mode scenarios keep their whole-content render by design;estimateandautoare indistinguishable within noise on the small replay inputs (the cost evidence is the counting benchmark);serde_jsondoes not enablefloat_roundtrip(17+ significant digits parse 1 ulp away from the shortest JavaScript round-trip, as in v0.1.8); durable remains experimental. -
内部与 additive ABI:七款第一方插件保持
rpiAbi: 1;v0.1.9 的宿主新增面全部 additive:Component::cache_revision/cache_instance_id/as_transcript_document为默认方法,ui.renderComponent帧增可选capturesViewportInput,ctx.sessionStats增可选countsOnly,subagent_launch为新的 tool-call 审批;冻结的Component::render签名、累计扩展事件与 Session JSONL 外层不变。workspace 版本0.1.9(七款插件随version.workspace,Cargo.lock同步)。本页不代表任何打包、registry、端点、tag 或 Release 动作已经发生:分发 dry-run、Release 构建、tag、端点与 issue 关闭均由维护者逐个发起(ADR-0042)。 Internal and additive ABI: The seven first-party extensions stay onrpiAbi: 1; every v0.1.9 host addition is additive:Component::cache_revision/cache_instance_id/as_transcript_documentare default methods,ui.renderComponentframes gain the optionalcapturesViewportInput,ctx.sessionStatsgains the optionalcountsOnly, andsubagent_launchis a new tool-call approval; the frozenComponent::rendersignature, cumulative extension events and Session JSONL outer framing are unchanged. Workspace version0.1.9(the seven plugins followversion.workspace,Cargo.locksynced). This page does not imply that any packaging, registry, endpoint, tag or Release action has happened: distribution dry-runs, release builds, tags, endpoints and issue closing are each initiated by the maintainer (ADR-0042). - 致谢:@limn2o4 与 @nicksLee 贡献了 Git 扩展更新恢复标记修复(#79)。 Thanks: @limn2o4 and @nicksLee for the Git extension update recovery-marker fix (#79).
0.1.8上游追平 v1.4.0 + 五轮 RC 收口 + 安装 profile(2026-11-12)Upstream parity to v1.4.0 + five RC rounds + install profiles (2026-11-12)
主线:行为金标准升级至 Pi v1.4.0(4a080252f,ADR-0038);issue 线 #72/#73/#76;durable 运行时与存储增量;扩展、session、settings 与七款锁步插件;mini/standard/full 安装 profile、动态 musl 与静态回退。正式版经 rc.1…rc.5 五轮预发布验证,并折叠流式提交、终端尺寸、statusline、流式管线、安装器与扩展更新修复。安装:老用户 rpi update(或 rpi update --all 同时升级七款锁步插件);新用户运行安装脚本。多处 Breaking,见下。
Highlights: the behavioral gold standard moves to Pi v1.4.0 (4a080252f, ADR-0038); issues #72/#73/#76; durable runtime and storage increments; the extension, session and settings family with seven lockstep plugins; and mini/standard/full install profiles, dynamic musl and static fallbacks. The stable release went through five RC rounds (rc.1…rc.5) and folds in the streaming-submit, terminal-sizing, statusline, streaming-pipeline, installer and extension-update fixes. Existing users run rpi update (or rpi update --all to also update the seven lockstep extensions); new users run the install script. Several breaking changes — see below.
-
安装与分发:mini/standard/full 三档均只下载一个固定 bundle;standard/full 必须通过
api/install-profiles/<ver>.json的外层哈希锚,索引缺失/非法直接失败并提示显式--profile mini,不再自动降级。V18-13 Release 使用 124 文件清单(20 archives + 20 sidecars + 42.rpix+ 42 sidecars);musl 主产物改为动态链接(需要libgcc,standard/full 还需libstdc++),每个 musl target 增加仅含二进制的-static回退。 Install and distribution: mini/standard/full each download one pinned bundle; standard/full require theapi/install-profiles/<ver>.jsonouter hash anchor and fail closed with an explicit--profile minihint instead of auto-downgrading. The V18-13 Release uses the 124-file manifest (20 archives + 20 sidecars + 42.rpix+ 42 sidecars); musl main artifacts are dynamic (installlibgcc, pluslibstdc++for standard/full), and each musl target gains a binary-only-staticfallback. -
安装器支持通道选择:
install.sh/install.ps1新增RPI_INSTALL_CHANNEL=stable|rc(默认 stable)。RC 安装先读latest-rc-version.json,只接受同版本 tag Release 的元数据,并使用该 RC 的 profile 索引与 bundle;收尾明确显示实际通道。 Installer channel selection:install.sh/install.ps1acceptRPI_INSTALL_CHANNEL=stable|rc(default stable). RC installs resolvelatest-rc-version.json, accept metadata only from the matching tag Release, and use the RC profile index and bundles; the completion summary names the selected channel. - 扩展升级输出精简且保留下载进度:已最新插件在计划中只合并显示一次,实际升级展示紧凑的来源/类型/能力/完整性信息与一次 L0 确认;默认不再重复首连 URL、校验阶段和临时路径。下载百分比、字节数与速度继续实时显示,收尾只保留文件名、安装结果与重启摘要。 Concise extension updates retain download progress: already-current extensions are grouped once in the plan, actual updates show compact metadata and one L0 confirmation, and default output drops repeated connection URLs, verification stages and temporary paths. Live download percentage, bytes and speed remain, with concise filename/install completion and restart summaries.
-
流式提交与终端尺寸:响应流式输出期间按 Enter 现在立即显示
Steering:/Follow-up:与队列编辑提示,不再等本轮结束;fullscreen 尺寸改为读取 stdout 描述符而非/dev/tty,嵌套 pty、包装器和 IDE/CI 终端按实际输出屏幕布局。 Streaming submissions and terminal sizing: pressing Enter during a response now renders theSteering:/Follow-up:rows and queue-edit hint immediately instead of waiting for the run to finish. Fullscreen sizing reads the stdout descriptor instead of/dev/tty, so nested ptys, wrappers and IDE/CI terminals use the actual output dimensions. -
statusline 实时行与精确 token 统计:没有新读数时保留上一实测值及其颜色,不伪报 streaming;30 字段 items 注册表覆盖会话 token 总量、轮次与步骤,内建官方 tokenizer 为 DeepSeek、Kimi、GLM、Qwen、Hunyuan、MiniMax 提供精确实时计数,未知模型族保留
~估算标记。另折叠 Kimi K3 匹配、短回复最终速率与 live-total-tokens 防双计数修复。 Statusline live rows and exact token accounting: live rows retain the last measured value and color between readings without claiming to be streaming. The 30-field items registry covers session token totals, turns and steps; bundled official tokenizers provide exact live counts for DeepSeek, Kimi, GLM, Qwen, Hunyuan and MiniMax, while unknown families keep the~estimate. This also folds in bare Kimi K3 matching, final rates after short replies and live-total-tokens double-count prevention. - 安装器与发布索引加固:双端完整 SemVer 校验、二进制/manifest 事务替换与回滚、206 仅在验证器匹配时续传、严格且有字节上限的扁平 profile JSON 解析、重试/提示超时/缓存锁规则;PowerShell 设置播种失败只告警。profile 生成强制 Release digest 与 sidecar 一致后才写索引。 Installer and release-index hardening: full SemVer validation on both installers, transactional binary/manifest replacement with rollback, 206 resume only with matching validators, strict byte-bounded flat profile-index parsing, and retry/prompt-timeout/cache-lock rules. PowerShell settings-seeding failures remain warnings, and profile generation writes an index only after the Release digest and sidecar agree.
-
流式管线:issue #78 修复每 delta 整消息重物化。扩展面新增 additive
message_update_delta(delta 形状与 JSON/RPC 一致);statusline 以双订阅自探测,收到 delta 后忽略累积 twin(首条消息不双计数),settled 后改订阅;累积形状与rpiAbi: 1不变。所有 provider 与 proxy 改为 serde 透明的共享 live partial,终态消息只物化一次;驱动线程:edit diff 离线程并在完成后由弱引用定向重建该工具组件,write 只物化可见窗口并在完成/展开时纠正流式高亮,bash 增量样式,工具参数 preview 按显示节奏刷新,message_end不再深拷贝,drain 4ms 预算按序回队;live-output-rate在估算/provider 分子换源帧保持上一读数。 Streaming pipeline: issue #78 eliminates per-delta whole-message re-materialization. The extension surface gains the additivemessage_update_deltaevent (the JSON/RPC delta shape); statusline probes with both update subscriptions, ignores the cumulative twin after the first delta so the first message is not counted twice, and switches subscriptions once settled, while the cumulative shape andrpiAbi: 1stay unchanged. Every provider and the proxy now share one serde-transparent live partial and materialize the terminal message once; on the driver thread the edit diff runs off-thread and rebuilds exactly that tool through a weak handle when it lands, write materializes the visible window and corrects streamed highlighting at completion/expand, bash styles incrementally, tool-argument previews refresh at display cadence,message_endno longer deep-clones, and the drain has a 4ms in-order budget;live-output-rateholds the previous reading across the estimate/provider numerator switch. -
启动插件更新提示按主体通道选择:交互启动现会异步检查 npm、git、registry 与
github:插件,包括未写入 settings 的发现式安装。正式版主体只比较最新正式版,RC 主体只比较最新 RC;仅在存在更新且兼容的版本时列出插件,RC 提示使用rpi update --extensions --rc。此前 registry/GitHub 插件被跳过,交互界面也未接入插件更新提示。 Startup extension update notices follow the host channel: interactive startup now checks npm, git, registry andgithub:packages asynchronously, including discovered installs without a settings entry. Stable hosts compare registry versions against the latest stable release and RC hosts against the latest RC; only newer compatible versions produce a package list, and the RC action isrpi update --extensions --rc. Registry/GitHub sources were previously skipped and the interactive package-update notification was not connected. -
卸载命令按 rpi 安装形态工作:
rpi remove/rpi uninstall帮助改用 rpi 插件示例,并明确本体卸载使用rpi self-uninstall [--purge];未写入 settings 的 registry/GitHub 插件现在删除目录后正常退出,不再误报No matching package found。本地路径源仍只移除 settings 条目。 Uninstall matches rpi installations:rpi remove/rpi uninstallhelp now uses rpi plugin examples and points binary removal torpi self-uninstall [--purge]. Registry/GitHub plugins without a settings entry now exit successfully after their directory is deleted instead of reportingNo matching package found. Local path sources still only lose their settings entry. -
BREAKING(旧静态 musl 迁移):旧静态安装执行
rpi update --self前必须先安装libgcc libstdc++;旧二进制无法预检新动态运行时。也可通过install.sh/install.ps1重装,由安装器检测缺库并在用户明确同意后使用无插件的静态回退;静态回退不能加载 native 插件,已有 native 插件会阻止切换。 BREAKING (old static musl migration): installlibgcc libstdc++before runningrpi update --selffrom an old static install; the old binary cannot preflight the new dynamic runtime. Reinstalling throughinstall.sh/install.ps1detects the missing libraries and, with explicit consent, offers the plugin-less static fallback; the static fallback cannot load native plugins, and an existing native plugin blocks the switch. -
上游追平 Pi v1.4.0:目录经 2026-11-07 发布前再刷新为 42 providers / 1741 entries(chat 1615、image 66、classifier 60;Kimi K3.1 Pro、MiniMax M3.1 Flash、GPT-6.1 Terra、Grok
xhigh、Codex 上下文修正);OpenCode Zen/Go 改用/inference,OpenRouter 按 key 个性化/models/user;compat/client identity/auth origin 贯穿 chat、image/classifier、扩展与 durable;四份 typed 配置 schema 由模型生成并发布到revpi.dev/schemas/,启动/reload 校验同源;设置写入统一 hostfs2锁 +.write-lock租约;resume 恢复工具装载、压缩摘要不再固定输出上限;codemode 声明渲染 schema 约束、MCPstructuredContent任意 JSON 且缺 metadata 的issfail closed;TUI/CLI/平台修复族含 print 截断退出 1、CJK Markdown、Rex/Herdr、剪贴板进程组与 OSC 52、Windows shell 解析与 CJK 导出资产。 Upstream parity to Pi v1.4.0: the catalog was refreshed again on 2026-11-07 before release and holds 42 providers / 1741 entries (1615 chat, 66 image, 60 classifier), including Kimi K3.1 Pro, MiniMax M3.1 Flash, GPT-6.1 Terra, Grokxhighand corrected Codex windows. OpenCode Zen/Go use/inferenceand OpenRouter personalizes/models/user; compatibility, client identity and auth origins reach chat, image/classifier, extension and durable calls; four typed configuration schemas are generated from the models and published atrevpi.dev/schemas/with the same startup/reload validation; settings writes share the hostfs2lock plus.write-locklease; resume restores the tool loadout and compaction summaries use the provider's output budget; codemode declarations render schema constraints, MCP accepts arbitrarystructuredContentand fails an authorizationissclosed without metadata; the TUI/CLI/platform family covers print-mode output-limit exit 1, CJK Markdown, Rex/Herdr, clipboard process groups and OSC 52, Windows shell resolution and the CJK export assets. -
issue 线 #72/#73/#76:
modelThinkingLevels在会话解析初始模型时生效(--thinking与 resume 记录优先);/export、/import、/compact重新携带参数(/import是 v0.1.7 回归);/model搜索把最佳匹配高亮在首行,后台目录刷新后重新应用查询,持久默认模型排在当前模型之后。 Issue line #72/#73/#76:modelThinkingLevelsapplies when a session resolves its initial model (--thinkingand a resumed entry still win);/export,/importand/compactcarry their arguments again (/importwas a v0.1.7 regression); the/modelsearch highlights the best match on row 0, a background catalog refresh re-applies the query, and the persisted default sorts after the current model. -
Durable 运行时与存储(
rpi-durable,experimental):SQLite schema v2 与 namespaced 存储、chord/sqlite驱动、25 例存储 conformance、sleepUntil/pacing timer/wake/onWake、crash-loop restart limit、Task v2 sleeping、nestedexecuteTool与结构化输出、确定性 codemode replay 与 guarded storage、文档 retention、task-graph blocked reason、图片处理、listFilesgitignore 语义与无内容 telemetry span;默认 CLI 路径仍不依赖该 crate。 Durable runtime and storage (rpi-durable, experimental): SQLite schema v2 and namespaced storage, thechord/sqlitedriver, the 25-case storage conformance matrix,sleepUntil/pacing timers/wake/onWake, crash-loop restart limits, Task v2 with sleeping tasks, nestedexecuteToolwith structured output, deterministic codemode replay and guarded storage, document retention, task-graph blocked reasons, image handling,listFilesgitignore semantics and content-free telemetry spans; the default CLI path still does not depend on the crate. -
扩展、session 与 settings:additive
ctx.sessionStats、ui.emitText、ui.emitStructured、ui.hasOverlay、ctx.usage.cached/fetchDetailed(rpiAbi维持 1);typed usage envelope、按 credential generation + effective origin 的 60 秒缓存与RPI_OFFLINE前置拦截;扩展启动 busy/dialog 栈与跨 owner overlay;工具 reachability 与 namespace alias;status 行按宽度换行不截断;mcp-adapter 启动/update 指引移除但不删除用户文件、registry 不恢复。 Extensions, session and settings: additivectx.sessionStats,ui.emitText,ui.emitStructured,ui.hasOverlay,ctx.usage.cached/fetchDetailed(rpiAbistays 1); typed usage envelopes with 60-second identity-keyed caching and offline gating; extension startup/busy/dialog stacks and cross-owner overlays; tool reachability and namespace aliases; wrap-not-truncate status rows; and the retired mcp-adapter's startup/update guidance removed without deleting user files or restoring its registry entry. - Provider 修复:classifier 图片/compat 分派、五个流式适配器拒绝畸形 final tool arguments、Anthropic strict-tool 回退收窄、Copilot 超限进入 overflow 恢复、workspace/quota 不计入瞬时重试、tool-result 图片顺序、空白输出、Mistral header 超时、Gemini/OpenAI-compatible thinking 顺序。 Provider fixes: classifier image/compat dispatch, malformed final tool arguments rejected across all five streaming adapters, narrowed Anthropic strict-tool fallback, Copilot overflow recovery, workspace/quota responses excluded from transient retries, tool-result image ordering, whitespace-only output, Mistral header timeouts and the Gemini/OpenAI-compatible thinking order cases.
-
破坏性变更与迁移:Kimi Code 改 OpenAI Chat Completions 且自定义
baseUrl必须含/v1;durable schema v2 不可回退(pi.toolv2、output/structuredOutput、sleepUntil、checkpointWhen、terminate、models/settings 函数、StorageRequestError、create_task/idle);before_agent_start为user/customunion、busy 从 setup 起算、dialog 栈化;subagents 拒绝未知 override/非法thinking/+name/-name、replace-mode 不再继承APPEND_SYSTEM.md、旧布局 run 不可恢复。升级前请备份 durable 数据库。 Breaking changes and migration: Kimi Code uses OpenAI Chat Completions and a custombaseUrlmust contain/v1; durable schema v2 cannot be rolled back (pi.toolv2,output/structuredOutput,sleepUntil,checkpointWhen,terminate, models/settings functions,StorageRequestError,create_task/idle);before_agent_startis auser/customunion, busy starts at setup and dialogs stack; subagents reject unknown overrides, illegalthinkingand+name/-nametools entries, a replace-mode child no longer inheritsAPPEND_SYSTEM.md, and an older-layout run cannot be resumed. Back up a durable database before upgrading. -
插件线(七插件 lockstep):
rpi-subagents收编 pi-subagents v0.83.0(fail-fast、long-running guard、project trust、parallel workflow、chain step 结算、前台/复合 run 历史与按indexresume、compaction/steer 有界 drain);rpi-ask-user-question/rpi-todo收编 rpiv-mono v2.15.0(receipt、toolCallId答案通道、批量创建、replay 校验);rpi-statusline新增 30 字段 items、内建官方 tokenizer 与/statusline编辑器;rpi-usage八家 typed provider、/usage语法、typed footer 与本地 token 回退。七款.rpix随 Release 发布,minHostVersion与版本均为0.1.8。 Plugin line (seven-plugin lockstep):rpi-subagentsadopts pi-subagents v0.83.0 (fail-fast settings, long-running guard, project trust, parallel workflow, chain step settlement, foreground/composite run history with per-index resume, bounded compaction/steer drains);rpi-ask-user-question/rpi-todoadopt rpiv-mono v2.15.0 (receipt,toolCallIdanswer channel, batch create, replay guards);rpi-statuslineadds the 30-field items mode, bundled official tokenizers and the/statuslineeditor;rpi-usageships eight typed providers, the/usagegrammar, the typed footer and the local-token fallback. The seven.rpixarchives ride this Release with version andminHostVersionset to0.1.8. -
补充修复:终端颜色查询/恢复(rpi#77,ADR-0045):启动 OSC 10/11/4 + DA1 查询不再被零回复 DA1 提前判空;无 background 的首次结果重试一次;超时按 SSH 放宽(本地 100ms / SSH 500ms,
RPI_TUI_COLOR_TIMEOUT可覆盖);早到 DA1 后的 grace 超时不丢弃 late-reply 订阅,迟到的 OSC 11 仍会重新生成 panel 背景;panic/signal 恢复以?2026l开头,SIGINT 会恢复终端而非在重绘中直接退出,退出前 drain 队列中的迟到响应。修复 fullscreen Ctrl+C 后首次启动system主题丢失全部 panel 背景,包括 rc.4 后发现的迟到响应路径。 Supplement: terminal color query and restore (rpi#77, ADR-0045): a zero-reply DA1 no longer closes the startup OSC 10/11/4 + DA1 query empty; a background-less first report retries once; the deadline is SSH-aware (100ms local / 500ms SSH, overridable withRPI_TUI_COLOR_TIMEOUT); a grace-deadline expiry after an early DA1 keeps the late-reply subscription, so a delayed OSC 11 still regenerates panel backgrounds; the panic/signal restore starts with?2026l, SIGINT restores the terminal instead of dying mid-reprint, and shutdown drains queued late replies. This fixessystemlosing every panel background on the first launch after a fullscreen Ctrl+C exit, including the late-reply path found after rc.4. -
补充修复:statusline 安装与升级默认值(rpi#2,ADR-0046):扩展 manifest 支持可选
defaultSettings;rpi install在持久化packages后只补齐 global settings 中缺失的顶层键,已有用户值与项目级安装不受影响。additivedefaultSettingsMigration按配置键记录整数迁移版本,全局 update 只在新版本号升高时补齐缺失键;旧 RC 与已受影响的 rc.4 均按版本 0 迁移一次,后续同版本 update 不会重新开启用户删除的配置。rpi-statusline以statusLine迁移版本 1 携带 realtime token 对,新装与老 RC 升级均无需先打开编辑器即可显示 token 行;/statusline 也会明确提示未配置草稿。 Supplement: statusline install and upgrade defaults (rpi#2, ADR-0046): extension manifests may declare optionaldefaultSettings; after persistingpackages,rpi installseeds only absent global settings keys, leaving existing values and project-local installs untouched. The additivedefaultSettingsMigrationobject assigns per-key integer versions, so a global update seeds a missing key only when its version increases. Legacy and already-affected rc.4 installs migrate once from version zero, while later updates at the same version never re-enable a deleted key.rpi-statuslineships the realtime token pair withstatusLinemigration version 1, so fresh installs and old-RC upgrades show the token rows without opening the editor first;/statuslinealso labels an unconfigured draft. -
内部与边界:workspace 经五轮 RC 升至
0.1.8(Cargo.lock同步,七款插件锁步);v0.1.8 host-call 全部 additive(rpiAbi: 1);偏离 D-107–D-110 与 TE-D47–TE-D55 均已登记;私有 usage 端点仅以离线 fixture/loopback 验证(不声称真实账号),Windows/pwsh 路径未在本地实测,rpi-durable仍为 experimental,menu/settings、跨周期 token activity、titleItems与第三方 CLI 凭据不在本版范围。 Internal and boundaries: the workspace moves through five RC rounds to0.1.8(Cargo.locksynced, seven plugins in lockstep); every v0.1.8 host-call is additive (rpiAbi: 1); deviations D-107–D-110 and TE-D47–TE-D55 are registered; the private usage endpoints were verified only with offline fixtures/loopback (no real-account claim); Windows/pwsh paths were not exercised locally;rpi-durableremains experimental; menu/settings, cross-period token activity,titleItemsand third-party CLI credentials are out of scope.
0.1.7上游追平 v1.1.0 + issue #57–#71 + durable 栈 + mcp-adapter 移除 + 安装器加固(2026-10-19)Upstream parity to v1.1.0 + issues #57–#71 + durable stack + mcp-adapter removal + installer hardening (2026-10-19)
主线:行为金标准升级至 v1.1.0(abe508e1b,ADR-0036,含 v1.0.1–v1.1.0 增量);issue 线 #57–#71 十五条修复;mcp-adapter 移除(ADR-0037);durable 栈首次落地(rpi-durable:存储/运行时/工具链,experimental,默认 CLI 路径零变化);插件线:subagents v0.76.1 与 ask-user-question/todo rpiv-mono v2.13.8 重定基、usage footer 紧凑化、mcp-adapter 退役;安装器/卸载与模型目录同步加固。正式版经 rc.1…rc.3 三轮预发布验证。安装:老用户 rpi update(或 rpi update --all 同时升级七款锁步插件);新用户运行下方安装脚本。多处 Breaking,见下。 Highlights: the behavioral gold standard moves to v1.1.0 (abe508e1b, ADR-0036; the v1.0.1–v1.1.0 windows folded in); the issue line #57–#71 (fifteen fixes); the mcp-adapter removal (ADR-0037); the first cut of the durable stack (rpi-durable: storage/runtime/tools, experimental, zero default-CLI change); plugin line: the subagents v0.76.1 and ask-user-question/todo rpiv-mono v2.13.8 rebases, the compact usage footer, and the mcp-adapter retirement; installer/uninstall and model-catalog hardening. The stable release went through three RC rounds (rc.1…rc.3). Install: existing users run rpi update (or rpi update --all to also update the seven lockstep extensions); new users run the install script below. Several breaking changes — see below.
- Providers、认证与目录:Breaking——Azure provider id 改名 azure(原 azure-openai-responses;api id 与 AZURE_OPENAI_* 环境变量不变),旧键诊断报错并给出文件与键位(绝不改写/不别名),旧会话照上游回退;Azure Foundry Chat Completions 与 Responses 双面;OpenAI Decisions 分类器(openai/gpt-6-luna,choice/score/bool 结构化问题、可选图片);samplingParamsByThinkingLevel;Anthropic inline tools;Bedrock/Cloudflare/Radius/Codex 修复族与 server_busy、"at capacity"、HTTP-2 pending stream 重试。内置目录刷新至 2026-10-19 快照(42 providers / 1644→1731 模型:chat 1551→1622、image 61→63、classifier 32→46):Gemini 4 Argon、Cloudflare AI Gateway 的 Claude Haiku 5.5、DeepSeek V4.1 Flash 1017、Muse Wonder / Muse Spark Open、Vercel AI Gateway batch 线;Xiaomi 的 mimo-v2.5 族退役、默认模型改为 mimo-v2.6-pro,opencode-go 新增 google-generative-ai 分发。 Providers, auth & catalog: breaking — the Azure provider id is now azure (from azure-openai-responses; the api id and AZURE_OPENAI_* env vars are unchanged), with a diagnostic that names the file and key position (never rewritten or aliased) and the upstream session fallback; Azure Foundry Chat Completions alongside the Responses API; the OpenAI Decisions classifier (openai/gpt-6-luna, structured choice/score/bool questions, optional images); samplingParamsByThinkingLevel; Anthropic inline tools; the Bedrock/Cloudflare/Radius/Codex fix family and retried server_busy / "at capacity" / HTTP-2 pending-stream failures. The built-in catalog is refreshed to the 2026-10-19 snapshot (42 providers / 1644→1731 models: chat 1551→1622, image 61→63, classifier 32→46): Gemini 4 Argon, Claude Haiku 5.5 on Cloudflare AI Gateway, DeepSeek V4.1 Flash 1017, Muse Wonder / Muse Spark Open, the Vercel AI Gateway batch line; Xiaomi's mimo-v2.5 family retires with mimo-v2.6-pro as the default, and opencode-go gains google-generative-ai dispatch.
- 工具与 CLI:Breaking——--tools 接受 * 模式与 +name/-name 调整,且不再移除 MCP 工具,除非条目以 mcp__ 开头(用 --no-mcp 或 --exclude-tools 'mcp__*' 移除;空列表/--no-tools 全移);--models 空条目不再匹配所有模型;上下文估算改为 3.5 字符/token;隐藏工具不再进入系统提示词规则与 skills 提示。 Tools & CLI: breaking — --tools accepts * patterns and +name/-name adjustments and no longer removes MCP tools unless one of its entries starts with mcp__ (use --no-mcp or --exclude-tools 'mcp__*' to drop them; an empty list or --no-tools removes everything); --models empty entries no longer match every model; context estimates use 3.5 characters per token; hidden tools stay out of the system prompt rules and the skills hint.
- 扩展 API(additive):pi.registerToolRenderer()(含续接会话的 MCP resolver)、渲染上下文 durationMs/outputPad、tool_execution_end.durationMs、agent_settled.aborted、ToolLoadout.getPromptGuidelines();rpiAbi 维持 1、事件表 42 项不变,版本级 ABI bump 记录于 extension-abi.md §8.4。 Extension API (additive): pi.registerToolRenderer() (including an MCP resolver for resumed sessions), render-context durationMs/outputPad, tool_execution_end.durationMs, agent_settled.aborted, and ToolLoadout.getPromptGuidelines(); rpiAbi stays 1, the event table is unchanged, and the version-level ABI bump is recorded in extension-abi.md §8.4.
- TUI:OSC 7501 程序状态(working/blocked/done/error/idle,RPI_PROGRAM_STATUS 覆盖);outputPad 覆盖所有 transcript 块;Breaking——Home/End 归编辑器,Ctrl+Home/Ctrl+End 走 transcript;Kitty/WezTerm/Herdr/Termux 修复族与全屏选区清除;!! 头部 dim 与 Took 时长恢复。 TUI: program status over OSC 7501 (working/blocked/done/error/idle, RPI_PROGRAM_STATUS override); outputPad applies to every transcript block; breaking — Home/End belong to the editor while Ctrl+Home/Ctrl+End drive the transcript; the Kitty/WezTerm/Herdr/Termux fix family and the fullscreen selection reset; the !! header dim and restored Took durations.
- codemode 与内建 MCP:内建冻结与 16M 字符/10 万项输出限额、image() 落盘、read() 图像块、查询辅助标注 async;项目 mcp.json override、CIMD(Client ID Metadata Document)、sign-in 可取消与 15s 超时、连接中的服务器不再阻塞 /mcp 管理器、--no-mcp 消费面。 Codemode & built-in MCP: frozen built-ins with 16M-character / 100000-item output limits, saved image() files, read() image blocks, and async-annotated lookup helpers; project mcp.json overrides, CIMD (Client ID Metadata Documents), cancellable sign-ins with 15-second timeouts, a /mcp manager that stays responsive while servers connect, and the --no-mcp surface.
- issue 线 #57–#71(十五条):#57 cache 未命中提示、#58 markdown.codeBlockIndent、#67 Anthropic 订阅额外用量警告、#68 启动 What's New;#60 /tree 分支摘要与 label、#63 交互命令五缺口、#64 会话选择器删除链;#59 设置即时生效五臂、#62 autocomplete 四缺口;#65 tmux 键盘检查、#66 剪贴板粘贴三段链、#69 平台 native helpers;#61 flushCompactionQueue willRetry、#70 ADR-0007 扩展 API 五缺口、#71 诊断/主题定时器等杂项四条。 Issue line #57–#71 (fifteen): #57 cache-miss notices, #58 markdown.codeBlockIndent, #67 the Anthropic subscription extra-usage warning, #68 the startup What's New notice; #60 /tree branch summarization and labels, #63 the interactive command-surface gaps, #64 the session-picker deletion chain; #59 live settings toggles, #62 the autocomplete gaps (git scope, conflict diagnostics, /login completions, fd); #65 the tmux keyboard check, #66 the clipboard paste chain, #69 the platform native helpers; #61 flushCompactionQueue willRetry, #70 the ADR-0007 extension-API gaps, and #71 the diagnostics/theme/timer fixes.
- durable 栈(rpi-durable,experimental):存储栈(async SQLite facade、Memory/JSONL/SQLite 三后端、24 用例 conformance 套件)、运行时核心(事务/分支/document/每会话 agent/submissions/scheduler/task graph)、工具链(本地 ExecutionEnv + read/write/edit/bash/powershell)。不在默认 CLI 路径(crates/rpi 不依赖之,无命令、无宿主会话代码改动);API 在版本间随时变化。 Durable stack (rpi-durable, experimental): the storage stack (async SQLite facade, Memory/JSONL/SQLite backends, the ported 24-case conformance suite), the runtime core (transactions, forks, documents, per-conversation agents, submissions/scheduler/task graph) and the tool chain (local ExecutionEnv + read/write/edit/bash/powershell). Off the default CLI path (crates/rpi does not depend on it; no command or host session code is touched); the API changes without notice between releases.
- 插件线(七插件锁步):rpi-subagents 重定基 pi-subagents v0.76.1(child 边界指令跟随基座 prompt、超时/出错返回 partial output、settings 原子写与跨会话租约、多行 agent 描述);rpi-ask-user-question/rpi-todo 重定基 rpiv-mono v2.13.8(内联问卷、RPC 回复与 unanswered、多选自定义文本、saved note、todo 快照持久化);rpi-usage footer 紧凑化(5h 39%(~48m) / 7d 31%(~3d22h));Breaking——rpi-mcp-adapter 移除:rpi install 404、update 链消失、已装实例仍可加载但启动/更新提示 rpi remove rpi-mcp-adapter,替代 = 内建 builtin:mcp(布局不变)。 Plugin line (seven-plugin lockstep): rpi-subagents rebased to pi-subagents v0.76.1 (child boundary instructions follow the base prompt, partial child output on timeout/error, atomic settings writes with a cross-session lease, multiline agent descriptions); rpi-ask-user-question/rpi-todo rebased to rpiv-mono v2.13.8 (inline questionnaire, typed RPC replies with unanswered, multi-select custom text, saved notes, todo snapshot persistence); the compact rpi-usage footer (5h 39%(~48m) / 7d 31%(~3d22h)); breaking — rpi-mcp-adapter removed: rpi install 404s, the update chain is gone, installed copies still load but startup/update recommend rpi remove rpi-mcp-adapter, and the replacement is the built-in builtin:mcp over the unchanged layout.
-
安装器/卸载加固:install.sh 原位改写
# rpi块(软链 dotfile 与文件模式/属主保留),幂等case ":$PATH:"守卫,显式 shell 检测(fish/zsh/bash/POSIX;不支持的 shell 只打印手动说明);提示仅在有终端、可用/dev/tty、且未设置CI/RPI_NONINTERACTIVE/TERM=dumb时出现,read -t在RPI_INSTALL_PROMPT_TIMEOUT(默认 60s)后按“否”,--add-path/--no-add-path互斥、RPI_INSTALL_ADD_PATH=0|1直接指定;Windows 保留 registry value kind、按展开后的%VAR%去重、盘根保持C:\、广播WM_SETTINGCHANGE,机器级 rpi 仍优先时给出警告;self-uninstall 覆盖软链 HOME/安装目录、ZDOTDIR/XDG_CONFIG_HOME 变化、CRLF 与转义路径,且不触碰无标记的手动 PATH 行。测试:POSIX 95 项、Linux pwsh 45 项、Windows PowerShell 5.1 46 项(含 ASCII-only 解析守卫)。README/README.zh-CN、站点 quickstart 与 changelog 已同步。 Installer/uninstall hardening: install.sh rewrites the marked# rpiblock in place (symlinked dotfiles and file mode/owner preserved), adds an idempotentcase ":$PATH:"guard, and performs explicit shell detection (fish/zsh/bash/POSIX; unsupported shells only get manual guidance); prompting requires a terminal, a usable/dev/tty, and noCI/RPI_NONINTERACTIVE/TERM=dumb, withread -ttreating an unanswered prompt as "no" afterRPI_INSTALL_PROMPT_TIMEOUT(default 60s), mutually exclusive--add-path/--no-add-path, andRPI_INSTALL_ADD_PATH=0|1forcing the branch; Windows preserves the registry value kind, deduplicates expanded%VAR%spellings, keeps drive roots, broadcastsWM_SETTINGCHANGE, and warns when a machine-level rpi still wins; self-uninstall covers symlinked HOME/install directories, ZDOTDIR/XDG_CONFIG_HOME changes, CRLF and escaped paths, and never touches unmarked manual PATH lines. Tests: 95 POSIX checks, 45 on Linux pwsh and 46 on Windows PowerShell 5.1 (including the ASCII-only parser guard). README/README.zh-CN, the site quickstart and this changelog are synced. - 发布前审查加固:Windows 剪贴板文本/文件拖放读取(Get-Clipboard -Raw、FileDropList、离线程读取、0600 临时文件);compaction 队列消息并入首轮;/usage all 增加 provider 标签;durable SQLite 事务取消/关闭安全与 0700/0600 临时文件;MCP close 终态;无 * 的字面量工具模式重新锚定;测试 flake 修复;MSRV 1.95 与 wasmtime 48.0.6 / rustls 0.23.46 / quinn-proto 0.11.18 安全升级。已知问题:MCP OAuth issuer binding 延至 v0.1.8(GHSA-6qxp-vccf-f47h)。 Pre-stable review hardening: Windows clipboard text/file-drop reads (Get-Clipboard -Raw, FileDropList, off-thread reads, 0600 temp files); compaction-queue messages join the first run; /usage all adds provider labels; durable SQLite transaction cancellation/close safety with 0700/0600 temp files; terminal MCP close state; literal tool patterns without a * are anchored again; test-flake fixes; MSRV 1.95 and the wasmtime 48.0.6 / rustls 0.23.46 / quinn-proto 0.11.18 security updates. Known issue: the MCP OAuth issuer binding is deferred to v0.1.8 (GHSA-6qxp-vccf-f47h).
0.1.6上游追平 v1.0.0 + 内建 codemode/MCP + 八插件锁步 + 5 轮 RC 验证(2026-10-09)Upstream parity to v1.0.0 + built-in codemode/MCP + eight-plugin lockstep + 5 RC rounds (2026-10-09)
主线:行为金标准升级至 v1.0.0(a13d35a74,ADR-0034 + ADR-0035,含 v0.99.x 增量),宿主 v1.0.0 对齐随 codemode / 内建 MCP / 主题系统 / 认证面 / virtual models 全量落地;两款新插件 rpi-plan-mode / rpi-usage;八插件锁步(两款改名 + subagents v0.74.0 / mcp-adapter v4.0.0 重定基,其中 mcp-adapter 转为内建 MCP 的可选替换并弃用)。正式版经 5 轮 RC 预发布验证(rc.1…rc.5)与两轮发布前全面审查,见下方各条。安装:老用户 rpi update(或 rpi update --all);新插件 rpi install rpi-plan-mode / rpi install rpi-usage。多处 Breaking,见下。 Highlights: the behavioral gold standard moves to v1.0.0 (a13d35a74, ADR-0034 + ADR-0035, v0.99.x increments included), with the host-side v1.0.0 alignment landing codemode / built-in MCP / the theme system / the auth face / virtual models; two new first-party plugins rpi-plan-mode and rpi-usage; the eight-plugin lockstep (two renames + the subagents v0.74.0 / mcp-adapter v4.0.0 rebases, the adapter deprecated as the optional replacement for built-in MCP). The stable release went through five RC rounds (rc.1…rc.5) plus two full pre-stable review rounds — see the entries below. Install: existing users run rpi update (or rpi update --all); new plugins with rpi install rpi-plan-mode / rpi install rpi-usage. Several breaking changes — see below.
- 协议与会话:Breaking——canonical session context:SessionManager 成为 provider 上下文的唯一权威(每次请求从会话投影重建;新增 append-only context_edit 条目);agent 边界改为 finishTurn + agent_before_settle 管道;工具结果携带有界 nestedCalls 快照;按模型图片输入限额;新会话文件在首条用户消息时创建;会话/压缩/RPC 修复族。 Protocol & sessions: breaking — canonical session context: SessionManager is now the single authority for provider context (rebuilt from the session projection per request; new append-only context_edit entries); the agent boundary moved to finishTurn + the agent_before_settle pipeline; tool results carry a bounded nestedCalls snapshot; per-model image input limits; session files created at the first user message; the session/compaction/RPC fix family.
- 工具与扩展 API(additive 为主,rpiAbi 维持 1):Breaking——codemode 脚本改用 "x" in tools 探测(读缺失成员改为抛 TypeError);codemode 脚本工具 + BM25 tool_search(QuickJS-in-WASM 沙箱、models.* 分类/生图、codemode-store);bash 结构化结果(outputSchema/structuredContent/isError);工具 exposure/loadout + executeTool(parentToolCallId/nestedCalls)+ 会话级 setToolExposures;builtin:<name> 治理、defaultTools +/-、RPC prompt disposition;事件表 39 → 42。 Tools & extension API (mostly additive; rpiAbi stays 1): breaking — codemode scripts probe tools with "x" in tools (reading a missing member throws a TypeError); the codemode script tool and BM25 tool_search (QuickJS-in-WASM sandbox, models.* classify/generateImages, codemode-store); structured bash results (outputSchema/structuredContent/isError); tool exposure/loadout + executeTool (parentToolCallId/nestedCalls) + session-scoped setToolExposures; builtin:<name> governance, defaultTools +/-, RPC prompt dispositions; the extension event table grows 39 → 42.
- TUI:Breaking——单趟 queryTerminalColors() 替换两个终端颜色查询 API;theme 默认 system(OKHSL 推导 dark/light,"对比度 ≥ 4.5:1")、tuiMode 默认 fullscreen(v1.0.0);fullscreenWheelScrollLines 滚轮加速;quietStartup;fullscreen/选区/ANSI slice 修复族与流式 CPU 优化。 TUI: breaking — the single-pass queryTerminalColors() replaces the two terminal-color query APIs; theme defaults to system (OKHSL-derived dark/light, >= 4.5:1 contrast) and tuiMode defaults to fullscreen (v1.0.0); fullscreenWheelScrollLines wheel acceleration; quietStartup; the fullscreen/selection/ANSI-slice fix family and the streaming CPU optimizations.
- 认证、模型与内建扩展:Sign in with ChatGPT(+ 稳定 deviceId)、共享 OAuth callback(Anthropic/Codex/OpenRouter/Radius)、Anthropic WIF / copy-code 登录、Radius /login 一键配置 MCP;virtual models(experimental,registerVirtualModel + 逐请求路由);内建 MCP 扩展(mcp.json stdio/streamable HTTP、资源三件套、/mcp、rpi mcp、项目 trust、OAuth 2.1,Breaking:工具名 - → _、mcp-auth.json 凭据键迁移);权限模式(Shift+Tab、⏸ plan、getMode/setMode + mode_change,思考档位移 Alt+T)与脚本化 usage-provider 框架;schema v6 模型目录(chat/image/classifier)。 Auth, models & built-ins: Sign in with ChatGPT (+ a stable deviceId), the shared OAuth callback (Anthropic/Codex/OpenRouter/Radius), Anthropic WIF / copy-code login, Radius /login with one-click MCP setup; virtual models (experimental, registerVirtualModel + per-request routing); the built-in MCP extension (mcp.json stdio/streamable HTTP, the resource tools, /mcp, rpi mcp, project trust, OAuth 2.1 — breaking: tool names - → _, mcp-auth.json credential-key migration); permission modes (Shift+Tab, ⏸ plan, getMode/setMode + mode_change; the thinking cycle moved to Alt+T) and the scripted usage-provider framework; the schema-v6 model catalog (chat/image/classifier).
- 插件线(八插件锁步):新插件 rpi-plan-mode(/plan 只读计划模式、write_plan、批准流)与 rpi-usage(/usage + 四家脚本 + footer);Breaking——两款第一方插件改名统一为 rpi- 前缀(rpi-ask-user-question、rpi-todo;干净切换:无 alias/无重定向/无自动迁移,删除旧安装重装;历史资产就地改名);subagents 重定基 v0.74.0(scoped 模型 scope、provider 前缀 id、超时上限、Git 路由 env 剥离、fork context_edit 净化);mcp-adapter 重定基 v4.0.0(内建 MCP 可选替换,共享 mcp.json 布局)。 Plugin line (eight-plugin lockstep): the new plugins rpi-plan-mode (/plan read-only planning mode, write_plan, approval dialog) and rpi-usage (/usage + four provider scripts + footer); breaking — two first-party extensions moved to the rpi- prefix (rpi-ask-user-question, rpi-todo; clean switch: no alias, no redirect, no automatic migration — remove the old install and reinstall; historical assets renamed in place); subagents rebased to v0.74.0 (scoped model scope, provider-prefixed ids, the timeout cap, Git routing env stripping, fork context_edit sanitization); mcp-adapter rebased to v4.0.0 (the optional replacement for the built-in MCP extension sharing the mcp.json layout).
- 弃用:rpi-mcp-adapter 插件——MCP 已内建。所有 rpi update 路径(--extensions/--all/显式源)一律跳过该插件并打印卸载命令;启动时只要在扩展安装根(用户作用域恒扫;项目作用域限受信项目)发现它,即使已禁用/未加载也会给出卸载建议(rpi remove rpi-mcp-adapter;项目作用域加 -l;github: 直装按其 .rpi-install-source);官方索引条目标记弃用,不再打包发布新的 .rpix(spec: 0.1.6-rc 资产保留在版本矩阵)。已装实例仍可作为可选替换继续使用,显式 rpi install 不受影响。 Deprecated: the rpi-mcp-adapter extension — MCP is built into rpi. Every rpi update path (--extensions / --all / explicit source) skips it and prints the removal command; at startup, whenever an install is found in an extension root (the user root always; a project root only when trusted), a removal recommendation is shown even when the extension is disabled or not loaded (rpi remove rpi-mcp-adapter; append -l for project scope; github: installs use their .rpi-install-source). The official registry entry is marked deprecated and no further .rpix artifacts are packaged (the 0.1.6-rc artifacts stay in the version matrix). Existing installs keep working as the optional replacement, and an explicit rpi install is unaffected.
- RC 审查加固(两轮) + rc 窗口验证修复(rc.2–rc.5):codemode 16 MiB 输出上限与取消/超时闭环;MCP 数值 id 按值匹配、OAuth 轮换 token/原子存储/锁错误分诊、mcp-adapter 分支切换丢弃 server 级授权 + broker 先于 server 授权检查 + 非数组 approveTools fail closed(含暂缓的 destructive);plan-mode 瞬时 host 失败保留边界 + 退出清理重试并通知(每次进入只提示一次);subagents tasks/steps 启动前解析全部 agent(含异步、零副作用)、per-agent modelScope 无父模型 fail closed;扩展宿主 exposure 校验、stale 上下文、重入 fail closed、阻塞扩展事件跳过(D-105);usage 超时注入、${VAR}、Windows shim 报错。rc.2/rc.3 验证期修复:内建 MCP servers/connection 锁序反转可冻结交互运行循环(服务器仍在连接时首个 prompt 无响应、Ctrl+C 无法退出)——读取端先快照 servers 再取各服务器锁、连接回调先克隆出 connection,reconnect/sign_out/hide_tools 同类 guard 生命周期问题一并修复;内建 codemode 工具接入上游渲染器移植(脚本折叠 10 行 + 展开提示、嵌套调用列表含 models.* 费用与合计、输出折叠 5 行并去掉 Script completed/Wall time 头),不再回退为整段脚本 JSON 与未折叠输出;renderResult 的 isError 亦覆盖 transcript 重建路径。rc.4/rc.5 验证期修复:raw reqwest 传输失败(连接超时/拒绝/DNS/重置/截断)恢复为可重试分类(共享 format_reqwest_error 归一为上游 SDK 措辞并附原因链,默认 1 次初始 + 3 次重试),覆盖自定义 fetch / Google / Vertex / Bedrock / Mistral / 空闲包体各转换点;内置模型目录刷新至 2026-10-08 快照(1601→1647 模型:Claude Haiku 5.5、GPT-6.1 Sol、Mistral Large 4 及新 image/classifier 族,Together 移除三个 models.dev 退役 id);注入 writer 终端不再管理进程 raw mode(离 TTY 时 crossterm 经 /dev/tty 取 tty 会永久阻塞;owns_raw_mode 标志区分 new/with_writer,测试挂起根治,生产行为不变)。详见 changes/v0.1.6.md。 RC review hardening (two rounds) + RC-window verification fixes (rc.2–rc.5): codemode's 16 MiB output cap with cancel/timeout closures; MCP numeric-id matching, rotated-token / atomic-store / lock-error handling, mcp-adapter dropping server grants on branch navigation, brokering before the server grant, and failing closed on non-array approveTools (including the still-deferred destructive); plan-mode keeping the boundary across transient host failures plus notified exit-cleanup retries (once per entry); subagents resolving every task/step agent before any side effect (async included) and per-agent modelScope failing closed without a parent; extension-host exposure validation, stale contexts, fail-closed re-entrancy, and skipped events for blocked extensions (D-105); usage timeout injection, ${VAR}, and Windows shim errors. rc.2/rc.3 verification fixes: the built-in MCP servers/connection lock inversion could freeze the interactive run loop (first prompt unanswered and Ctrl+C unable to quit while a server was still connecting) — readers snapshot servers before per-server locks and the connection callbacks clone the connection out of its guard, with the same guard-lifetime class fixed in reconnect/sign_out/hide_tools; the built-in codemode tool now renders through the ported upstream renderer (10-line script fold with the expand hint, nested calls with models.* costs and their total, output folded to 5 lines with the Script completed/Wall time header dropped) instead of the full-script-JSON and unfolded-output fallback; renderResult's isError also covers the transcript-rebuild path. rc.4/rc.5 verification fixes: raw reqwest transport failures (connect timeout, refused, DNS, reset, truncated body) classify as retryable again (a shared format_reqwest_error normalizes them to the upstream SDK wording with the cause chain; the default 1 initial + 3 retries fires) across the custom-fetch / Google / Vertex / Bedrock / Mistral / idle-body conversion points; the built-in model catalog is refreshed to the 2026-10-08 snapshot (1601→1647 models: Claude Haiku 5.5, GPT-6.1 Sol, Mistral Large 4, and new image/classifier families; Together drops three models.dev-retired ids); injected-writer terminals no longer manage the process raw mode (off-TTY, crossterm resolves the tty through /dev/tty and blocks forever — an owns_raw_mode flag separates new() from with_writer(); the test hang is gone, production behavior unchanged). Full detail in changes/v0.1.6.md.
0.1.5上游追平 v0.86.1 + rpi-todo + 6 轮 RC 验证(2026-09-29)Upstream parity to v0.86.1 + rpi-todo + 6 RC rounds (2026-09-29)
主线:行为金标准从 v0.85.0+ 升级到 v0.86.1+(19451accd,ADR-0029 + ADR-0031),15 个主机任务恢复行为对拍绿,渲染面首次跑字节等值门(零快照重录);新第六个第一方插件 rpi-todo;rpi 原生修复 #52/#53/#54/#55。正式版经 6 轮 RC 预发布验证(rc.1…rc.6)与两轮发布前全面审查(rc.3/rc.4),见下方各条。 Highlights: the behavioral gold standard moves from v0.85.0+ to v0.86.1+ (19451accd, ADR-0029 + ADR-0031); fifteen host tasks restore behavioral parity, and the render plane runs the byte-equality gate for the first time (zero snapshot re-records); rpi-todo joins as the sixth first-party plugin; rpi-native fixes for #52/#53/#54/#55. The stable release went through six RC rounds (rc.1…rc.6) plus two full pre-stable review batches (rc.3/rc.4) — see the entries below.
- 协议与会话:Breaking——mid-conversation system messages:系统提示词与工具清单改由 transcript 携带声明(切换会话/分支重放精确状态,provider 收增量工具变化;TranscriptContext 品牌收窄 provider trait 面,deferred-tools 机制退役);per-model compaction 预算(compaction.modelOverrides);prompt cache warming(cacheWarming 设置 + cache_warming_decision 扩展事件);ctx.sessionToolResults additive ABI(ADR-0030);agent 重试退避封顶(新设置 retry.maxAgentDelayMs,默认 60s);compaction 取消竞态闭环(#8826/#9340/#9777)。 Protocol & sessions: breaking — mid-conversation system messages: the system prompt and tool loadout are declared by transcript-carried entries (switching sessions/branches replays the exact state; providers receive incremental tool changes; the TranscriptContext brand narrows the provider trait surface and the deferred-tools mechanism retires); per-model compaction budgets (compaction.modelOverrides); prompt cache warming (cacheWarming setting + the cache_warming_decision extension event); the ctx.sessionToolResults additive ABI (ADR-0030); agent retry backoff capped by the new retry.maxAgentDelayMs setting (default 60s); compaction cancellation races closed (#8826/#9340/#9777).
- Providers 与模型目录:Meta provider + Muse 订阅 OAuth(/login meta,设备授权铸造 Model API key);内置目录重生成至 v0.86.1 pin(41 目录 / 1502 模型,含期内 2026-09-23 快照重_vendor;Radius 公共目录内置、Anthropic 分层 prompt-cache 寿命);SSE 空闲超时默认改不限(#54,D-103——设 httpIdleTimeoutMs: 300000 可恢复旧默认)。 Providers & model catalog: the Meta provider with Muse subscription OAuth (/login meta; device authorization mints a Model API key); the built-in catalog regenerated at the v0.86.1 pin (41 catalogs / 1502 models after the in-cycle 2026-09-23 snapshot re-vendor; the Radius public catalog ships built-in, per-tier Anthropic prompt-cache lifetimes); the SSE idle timeout now defaults to unlimited (#54, D-103 — set httpIdleTimeoutMs: 300000 to restore the old default).
- 工具 / CLI / 扩展:内建工具默认 strict-prefer JSON-schema 采样;bash 时长可读渲染(1h 3m 4s)+ 信号退出码(128+N);Breaking——user_bash 失败即中止 ! 命令(不再回落本地 shell),RPC bash 同拦截契约;pi.on() 返回退订句柄;ctx.modelRegistry.stream()/streamSimple()(扩展经配置 provider 调模型);RPC steer/follow_up 走扩展 input handler;扩展渲染钩子 theme-mutex 死锁修复(rpi#52 e2e 发现)。 Tools / CLI / extensions: built-in tools default to strict-prefer JSON-schema sampling; bash durations render readably (1h 3m 4s) with signal exit codes (128+N); breaking — a failing user_bash handler aborts the ! command (no local-shell fallback), and RPC-mode bash runs the same interception; pi.on() returns an unsubscribe handle; ctx.modelRegistry.stream()/streamSimple() (extensions call models through the configured providers); RPC steer/follow_up run extension input handlers; the extension render-hook theme-mutex deadlock fixed (found by the rpi#52 e2e).
- TUI:验证式剪贴板写入(平台命令 → WSL interop → OSC 52,100KB 上限;WSL PowerShell 链修复为真正到达 powershell.exe);流式渲染 O(lines²) → 线性(#53:sourcepos 查找表 + 组件复用,200KB 折叠 delta ~227ms → ~8ms,字节不变);ask_user_question 摘要行 + Ctrl+O 展开(#52,替代原始 args JSON 倾倒)。 TUI: verified clipboard writes (platform commands → WSL interop → OSC 52, 100KB cap; the WSL PowerShell chain fixed to actually reach powershell.exe); streaming renders O(lines²) → linear (#53: sourcepos lookup table + per-block component reuse; 200KB folded delta ~227ms → ~8ms, byte-identical); the ask_user_question summary line + Ctrl+O expand (#52, replacing the raw-args JSON dump).
- 插件线(六插件锁步):新第一方插件 rpi-todo(todo 工具/overlay//todos 命令/会话分支重放——compaction 与 /reload 后存活;registry 键 rpi-todo 随本版首发);subagents 重定基 v0.70.0(Breaking:fallbackModels 移除——重试不换模型;worktree 准入/预算/allowlist 治理族);mcp-adapter 重定基 v2.34.0+(加密文件 OAuth 凭据库、CIMD、/mcp edit、directTools search、顶层 addedToolNames);ask-user-question 渲染摘要;rpiv-mono pin 0fdf4f8。 Plugin line (six-plugin lockstep): the new first-party plugin rpi-todo (the todo tool / overlay / /todos command / session-branch replay — survives compaction and /reload; registry key rpi-todo, debuting with this release); subagents rebased to v0.70.0 (breaking: fallbackModels removed — retries never switch models; the worktree-admission / budget / allowlist governance family); mcp-adapter rebased to v2.34.0+ (the encrypted-file OAuth credential store, CIMD, /mcp edit, directTools search, top-level addedToolNames); the ask-user-question render summary; the rpiv-mono pin 0fdf4f8.
- rc 窗口验证修复(rc.2/rc.4–rc.6,实机验证反馈):todo overlay 交互会话不显示(UI bridge 先于 bind_extensions 挂载,session_start 时插件前台声明不再静默丢失);流式中按 Esc 崩溃驱动线程(abort 改走 spawn_async 回退,无 reactor 的驱动线程不再 panic);空 widget 行渲染为 spacer 行(todo 面板与编辑器边框不再贴合);supervisor asks 重回父会话(#55——fleet 循环按新阻塞 ask 投递 triggerTurn 消息,前台等待遇 ask 分离为后台续跑)。 RC-window verification fixes (rc.2/rc.4–rc.6, field feedback): the todo overlay never appeared in a real interactive session (the UI bridge now mounts before bind_extensions, so session_start no longer silently drops the plugin's foreground claim); Escape during streaming crashed the driver thread (aborts route through the spawn_async fallback — no more reactor panic on the runtime-less driver thread); blank widget lines render as spacer rows (the todo panel no longer glues onto the editor border); supervisor asks reach the parent again (#55 — the fleet loop delivers a triggerTurn message per new blocking ask, and the foreground wait detaches into a background continuation on an ask).
- 发布前审查修复(rc.3):WSL 剪贴板写入链真正到达 powershell.exe(写路径 runner 丢弃 stdout 的缺陷;查询调用返回真实字节、写入调用不给输出管道);零 TTL MCP 服务器连接期间保留 direct tools(live-overlay 条目剥离声明 TTL);RPC bash 跑 user_bash 拦截(与交互 ! 路径同 fail-closed 契约);mcp connect/search 顶层上报 addedToolNames(上游形状);其余修复——OAuth 密钥解码器多字节 UTF-8 fail-closed、macOS 本地网络诊断错误文案、broker-before-grant 顺序钉死、目录默认模型对齐等。 Pre-stable review fixes (rc.3): the WSL clipboard write chain actually reaches powershell.exe (the write-path runner dropped stdout; query calls return real bytes, writer calls get no output pipe); zero-TTL MCP servers keep their direct tools while connected (live-overlay entries strip the declared TTL); RPC bash runs the user_bash interception with the same fail-closed contract as the interactive ! path; mcp connect/search report addedToolNames at the top level (upstream shape); further repairs — the OAuth key decoder fails closed on multi-byte UTF-8, macOS local-network diagnostics match real io error texts, the broker-before-grant order pinned, catalog default models aligned, and more.
- 发布前审查第二轮(rc.4):overlay 组合对齐 applyModelsJson(config.models 改 upsert 进基础目录、apiKey 不再丢失、基础 OAuth 方法保留、动态目录每次重算;流式跟随 streamWith);abort 后不再触发计费 compaction(退避睡眠被取消时 prepare_retry 返回 false);MCP OAuth token 交换/刷新携带同源 service headers;client_credentials 注册 URL 作用域读取、死注册先清;SDK toolExecute 先释放状态锁再跑工具句柄(subscribe/unsubscribe 不再自死锁);其余核心/TUI 修复——complete_summarization biased select、cache-warming 定时器 clear_run 退出、WSL 临时文件 0600 原子创建等。 Pre-stable review round 2 (rc.4): overlay composition matches applyModelsJson (config.models upsert into the base catalog with defaults inheritance, a configured apiKey no longer dropped, the base OAuth method preserved, dynamic catalogs recomputed per call; streaming follows streamWith); no post-abort billable compaction (prepare_retry returns false when an abort cancels the backoff sleep); MCP OAuth token exchange/refresh carry the same-origin service headers; the client_credentials registration is read URL-scoped with dead ones cleared first; the SDK toolExecute route releases the state lock before running a tool handler (subscribe/unsubscribe no longer self-deadlock); further core/TUI repairs — complete_summarization uses the biased select, cache-warming timers exit on clear_run, WSL temp files created 0600 atomically, and more.
0.1.4上游追平 v0.85.0 + 16 轮 RC 验证(2026-09-18)Upstream parity to v0.85.0 + 16 RC rounds (2026-09-18)
主线:行为金标准从 v0.84.1+ 升级到 v0.85.0+(698 commits / 866 文件,ADR-0023),18 个对拍任务(V14-01…18)按「上游锚点→rpi 落点→断言证据」三元组逐条恢复行为对拍绿;M5 收口完成主题校验拆分移植与 fixtures 全量重录。偏离 D-092…D-100 全数闭环。正式版经 16 轮 RC 预发布验证(rc.1…rc.16):实机验证修复、三轮全面审查闭环(rc.5/rc.11/rc.12)、去品牌化(rc.9)、模型目录刷新(rc.13)、高亮引擎根治(rc.14)与 statusline 两轮增强(rc.15/rc.16),见下方 RC 窗口各条。 Highlights: the behavioral gold standard moves from v0.84.1+ to v0.85.0+ (698 commits / 866 files, ADR-0023); eighteen parity tasks (V14-01…18) restore behavioral parity with an "upstream anchor → rpi landing → assertion evidence" triple each; the M5 closeout ports the theme-validation split and re-records every fixture. Deviations D-092…D-100 all closed. The stable release then went through sixteen RC rounds (rc.1…rc.16): field-verification fixes, three full review closures (rc.5/rc.11/rc.12), the de-pi branding pass (rc.9), a model-catalog refresh (rc.13), the highlight-engine eradication (rc.14) and two statusline enhancements (rc.15/rc.16) — see the RC-window entries below.
- 协议与会话:agent loop 的 compaction 触发时机对齐(#6879 Breaking,终轮不再触发);会话管理修复九项(fork compaction 重映射 #8989 / import 同名后缀 #8985 / share 独立临时目录 / RPC abort 取消手动 compaction #8920 等);JSON/RPC 增量(message_update 恢复累计 usage #7982、toolcall_start 附 id/toolName #7953、新命令 clear_queue #8432);流事件契约补全(custom_tool_call 事件族、immediate_retry 计数 #8016)。 Protocol & sessions: compaction trigger timing aligned with #6879 (breaking — terminal turns no longer fire it); nine session-manager repairs (fork compaction remap #8989, import same-name suffix #8985, concurrent-share isolation, RPC abort cancels manual compaction #8920, …); JSON/RPC deltas (message_update restores cumulative usage #7982, toolcall_start carries id/toolName #7953, new clear_queue command #8432); stream-event contract completion (custom_tool_call family, immediate_retry counts #8016).
- Providers 与模型目录:Anthropic 每轮 effort 持久化与 refusal fallback(managed Claude 请求体组合 + providerThinkingLevel 落盘,上游测试逐条移植);OpenAI 系与其余 provider 修复簇(Bedrock 全头转发、openrouter 双 API map);基础设施——严格 schema 自动转换、NO_PROXY 语义重写(#8737 根域/子域/IPv6/host:port)、七 adapter 默认 User-Agent、uuidv7 外部时间戳;模型目录整体重生成至 v0.85.0 数据(GPT-6 Astra、compat 字段等)。 Providers & model catalog: Anthropic mid-conversation effort persistence plus refusal fallback (managed-Claude request composition and providerThinkingLevel persistence, upstream tests ported one by one); OpenAI-family and remaining-provider fix clusters (Bedrock raw headers, the openrouter dual-API map); infrastructure — strict JSON-schema coercion, rewritten NO_PROXY semantics (#8737: root/subdomain, IPv6, host:port), a default User-Agent across seven adapters, uuidv7 external timestamps; the vendored model catalog regenerated against v0.85.0 data (GPT-6 Astra, compat fields, …).
-
工具 / CLI / 扩展:七内建工具 cwd 基准改「执行时会话 cwd」(#8627);skills 三修复(Bash 不消失 #8552、根目录 md 不误报 #7805、嵌套发现 #8255);扩展 API 行为对齐(triggerTurn:false 不 steer #8022、ui_prompt_start/end #8355 等);CLI/设置面——
--分隔符、--use-theme、选择器会话级作用域(#8356 Ctrl+S 才写全局)、Windows/WSL 键位表、配置健壮性(BOM/权限/带路径错误)。 Tools / CLI / extensions: the seven built-in tools resolve cwd at execution time (#8627); three skills fixes (Bash no longer vanishes #8552, root-level plain markdown no longer reports broken #7805, nested discovery #8255); extension-API behavior parity (triggerTurn:false never steers #8022, ui_prompt_start/end #8355, …); CLI & settings — the--separator,--use-theme, session-scoped selector changes (#8356: Ctrl+S persists globally), Windows/WSL default bindings, config robustness (BOM, permissions, errors with paths). - TUI:鼠标分发基础设施全套(归一化事件/click 合成/冒泡命中/指针捕获/overlay 分发)+ 选择修复族(双击选词 joiner、hover 不改列表选择、右键粘贴去重等);全屏 transcript 搜索与跳转指示器(#8800);滚动条重设计(全轨 │/┃/█ + hover/active 态)+ 验证式复制体系(OSC 52 + 回读 + toast);渲染修复族(LaTeX join 符号、表格换行样式重置序列、working indicator 内嵌 editor 边框、thinking 切换就地更新);终端能力与环境变量(库与配置 env 离婚 c505f4c19、能力覆盖三 env + set_capability_overrides、Zed 检测、SSH 下 Alt+Enter 双超时 #7899)。 TUI: the full mouse-dispatch infrastructure (normalized events, synthesized clicks, bubbling hit-testing, pointer capture, overlay dispatch) plus the selection-fix family (double-click word joiners, hover keeps list selection, right-click paste dedup, …); full-screen transcript search with jump indicators (#8800); the scrollbar redesign (full-track │/┃/█ with hover/active states) and verified copying (OSC 52 + readback + toasts); the render-fix family (LaTeX join symbols, table-wrap style resets, the working indicator embedded in the editor border, in-place thinking toggles); terminal capabilities & environment (library/app env divorce c505f4c19, three capability-override envs plus set_capability_overrides, Zed detection, dual escape/sequence timeouts so Alt+Enter survives SSH #7899).
- 收口:主题校验拆分移植(eb3e9feed——库路径改 lenient cast、结构化诊断移入应用层安装式校验器,themes golden 转正全量对拍);fixtures 全量重录钉死 v0.85.0+(session 场景 ×7 + resources golden ×6,runbook 可重复性抽查通过);workspace 版本 0.1.4。 Closeout: the theme-validation split ported (eb3e9feed — the library path becomes a lenient cast while structured diagnostics move into an app-installed validator; the themes golden now compares every case); all fixtures re-recorded and pinned to v0.85.0+ (seven session scenarios + six resource goldens, runbook repeatability spot-check green); workspace version 0.1.4.
-
RC 更新通道(V14-19):
rpi update --rc/rpi update --extensions --rc/rpi install <name> --rc预发布通道旗标(不带--rc恒 stable,全部更新判断由 semver 全序自然导出);新端点api/latest-rc-version.json;registry 解析补通道过滤(stable 排除预发布);build.yml 对-rctag 自动标 prerelease,releases/latest与 install.sh 回退路径保持 stable。 RC update channel (V14-19):rpi update --rc/rpi update --extensions --rc/rpi install <name> --rcopt into the pre-release channel (no flag always means stable; every update decision falls out of the semver total order); a newapi/latest-rc-version.jsonendpoint; registry resolution gains channel filtering (stable excludes prereleases); build.yml auto-marks-rctags as prereleases whilereleases/latestand the install.sh fallback stay stable.
-
插件重定基(TE13–TE27,ADR-0025):双插件 pin 原子切换(subagents v0.48.0→v0.66.0 / mcp-adapter v2.24.0→v2.32.1);Breaking:mcp direct 工具命名(#342/#346/#463/#455——server 前缀保留 provider-valid
-/_,含-/_的 server 名工具名改变,不做新旧双注册,兼容指引见toolPrefix: "none");subagents 语义变更族(worktree preserved、generations/文件门户、锁域边界等)与 mcp 适配器 v2.32 系行为逐条对齐。 Plugin rebases (TE13–TE27, ADR-0025): atomic pin switches (subagents v0.48.0→v0.66.0, mcp-adapter v2.24.0→v2.32.1); breaking: mcp direct-tool naming (#342/#346/#463/#455 — server prefixes keep provider-valid-/_, tool names change for servers containing them, no dual registration; seetoolPrefix: "none"for the migration); the subagents semantic-change family and the mcp-adapter v2.32 line aligned item by item. -
交互式自定义 UI ABI(V14-20–V14-25,ADR-0024/ADR-0027):扩展可挂载交互组件的宿主 ABI(native + wasm 双载体)——7 个 additive
ui.*host-call、行帧合成与输入分发、帧限额与 wasm fuel 预算(trap 结构化错误 + 强制卸载,宿主不崩溃)、七结束路径清理矩阵、ui.editExternal外部编辑器链;新 additive host-callctx.sessionEntries(活动分支 entries 只读,fail-closed;mcp 审批恢复已迁移消费)。 Interactive custom-UI ABI (V14-20–V14-25, ADR-0024/ADR-0027): a host ABI for extension-mounted interactive components (native + wasm) — seven additiveui.*host calls, line-frame composition with input dispatch, frame caps and wasm fuel budgets (traps surface as structured errors with forced unload; the host never crashes), a seven-exit-path cleanup matrix, andui.editExternal; plus the additivectx.sessionEntrieshost call (read-only active-branch entries, fail-closed; the mcp approval restore now consumes it). -
新插件 rpi-ask-user-question(TE28–TE32):结构化 ask_user_question 工具(上游 rpiv-mono @ v2.9.0+)——模型在需求不清时发起 1–4 题问卷(选项/预览/多选/备注),交互终端渲染底部 tabbed overlay,RPC/ACP 宿主降级为宿主原生逐题 walker;契约面与上游逐字节对拍;对话框高度稳定两轮修复;随宿主 Release 锁步发布并入 registry 索引(
rpi install rpi-ask-user-question --rc解锁 rc 窗口)。 New plugin rpi-ask-user-question (TE28–TE32): the structured ask_user_question tool (upstream rpiv-mono @ v2.9.0+) — the model can ask 1–4 questions (options, previews, multi-select, notes) when requirements are unclear; interactive terminals render a bottom tabbed overlay while RPC/ACP hosts fall back to a native per-question walker; contract surfaces match upstream byte-for-byte; two rounds of dialog-height stabilization; shipped lockstep with host releases and indexed in the registry (rpi install rpi-ask-user-question --rcduring the rc window). - rc 窗口验证修复(rc.1–rc.4,实机验证反馈):editor 上方恒留 1 行间隔(上游恒驻 Spacer(1) 缺口,⠋ Working 不再贴输出);移除全屏鼠标分发两处 DBG 调试打印(+rpi-tui deny(print_*) 结构性防护);settings 列表值列对齐(标签列宽上游 min(36) 误写 min(30));/settings 热切换 TUI 模式后事件驱动刷新失效(「按一次键刷一帧」)——render_handle 改调用时解析当前渲染器;全屏点击 dock 编辑器/选择器后键盘输入死亡——SharedEntry 焦点回到内层共享组件。排查闭环:「横线变两行」为终端 Ambiguous width 渲染(上游同样复现,ADR-0020)。 RC-window verification fixes (rc.1–rc.4, field feedback): a permanent one-row gap above the editor (the upstream ever-present Spacer(1); ⠋ Working no longer touches output); two DBG debug prints removed from the fullscreen mouse path (+ a structural deny(print_*) guard in rpi-tui); settings-list value-column alignment (label width min(36) mistyped as min(30)); event-driven refresh dying after hot-switching TUI modes in /settings ("one keystroke, one frame") — render_handle now resolves the current renderer at call time; keyboard input dying after clicking the dock editor/selector in fullscreen — focus returns to the inner shared component. Investigation closure: "borders wrap to two rows" is the terminal's Ambiguous-width rendering (upstream reproduces it too, ADR-0020).
- rc 窗口全面审查闭环(rc.5,8 路深审 1 Blocker + 6 Major):RPC abort 在手动 compaction/branch summary 在飞期间永久挂起(补齐上游 idle 唤醒全部 4 个调用点);update --extensions --rc 不再降级已装 stable 扩展(双向不降级);pi.getFlag factory 期间可见 pending 默认值;/llama 显式刷新强制联网(RPI_OFFLINE 下不再被 stored 快照覆盖);/model 搜索默认项钉顶语义对齐上游;Box::handle_mouse x 边界守卫;站点 stable 端点预发布护栏;积压修复——并行批次步骤状态实时转换、globalConcurrencyLimit 接线为 run 级并发信号量、belowEditor widget 同 key 原位替换。 RC-window review closure (rc.5; eight-lane deep audit, 1 blocker + 6 majors): RPC abort hanging forever while a manual compaction/branch summary was in flight (all four upstream idle-wakeup call sites restored); update --extensions --rc no longer downgrades installed stable extensions (both directions); pi.getFlag sees pending defaults during factory; /llama explicit refresh forces network (RPI_OFFLINE no longer overwritten by the stored snapshot); /model search default-pinning semantics aligned upstream; Box::handle_mouse x-boundary guards; a prerelease guard on the site's stable endpoint; backlog fixes — real-time step status for parallel batches, globalConcurrencyLimit wired as a per-run concurrency semaphore, and in-place replacement of same-key belowEditor widgets.
- 残余 pi 标识去品牌化(rc.9,ADR-0028):默认系统提示词 operating inside pi→rpi(模型不再以 pi 自我介绍)、"Pi documentation" 段改写、CLI 帮助通篇 Update pi→Update rpi、Provider UA 与 Codex originator、临时文件前缀 pi-*→rpi-*、编排 skill 更名 pi-subagents→rpi-subagents(旧目录升级时自动迁移,用户副本保留)、manifest 键 #pi→#rpi 与 mcp-adapter 事件名、pi-messages api kind 等生态数据面(旧值读兼容自动归一);真缺陷修复——skill 文档 PI_SUBAGENT_WAIT_TOOL_ENABLED 与代码 RPI_ 拼写统一。行为变化:rpi update pi 不再被接受(用 rpi update rpi/self);分享页本地偏好键更换一次。有意保留:radius.pi.dev 网关/OAuth client_id(外部依赖)与「源自 Pi」致谢。 De-pi branding pass (rc.9, ADR-0028): the default system prompt now says operating inside rpi (models stop introducing themselves as pi), the "Pi documentation" section rewritten, CLI help updated from Update pi to Update rpi, provider UA and Codex originator renamed, temp-file prefixes pi-*→rpi-*, the orchestration skill renamed pi-subagents→rpi-subagents (old installs migrate on upgrade, user copies preserved), and ecosystem data surfaces like the #pi manifest key, mcp-adapter event names and the pi-messages api kind (old values stay readable and auto-normalize); one real defect fixed — the skill doc's PI_SUBAGENT_WAIT_TOOL_ENABLED spelling unified with the code's RPI_. Behavior notes: rpi update pi is rejected (use rpi update rpi/self); share-page local-preference keys change once. Deliberately kept: the radius.pi.dev gateway/OAuth client_id (external dependencies) and the "derived from Pi" acknowledgment.
- 发布前审查修复(rc.11):P0——交互模式 panic hook 接线(主屏/alt-screen 双变体,任一 panic 后终端必恢复);P1——read 负 limit 不再 panic、Windows bash kill/超时收敛、subagents syntheticPaths 越界校验、并行工具批 panic 事件配对、mcp adapter Ready/on_ready 竞态消除、8 个 SSE adapter 取消立即中断;P2 加固——wasm 内存上限、SSE/Bedrock 帧上限、auth.json 原子写、会话环防护等(全项见 changes/v0.1.4.md)。 Pre-release review fixes (rc.11): P0 — the interactive mode now installs the panic hook (both renderer variants; any panic restores the terminal); P1 — negative read limits no longer panic, Windows bash kill/timeout converges, subagents syntheticPaths validated against escapes, parallel tool batches keep start/end pairing through panics, the mcp-adapter Ready/on_ready race window eliminated, all eight SSE adapters abort body reads immediately; P2 hardening — wasm memory caps, SSE/Bedrock frame caps, atomic auth.json writes, session-cycle guards and more (full list in changes/v0.1.4.md).
- 发布终态复审修复(rc.12,五域并行全面审查):P1——三处 SSE finish().unwrap() 改错误传播(1 MiB 未换行尾巴 + 不完整 UTF-8 + EOF 的畸形流此前 panic 挂起 turn 无终态事件);codex SSE 体读与取消信号 race(Esc/abort 不再等 httpTimeoutMs)。P2——顺序工具批 panic 防护、SSE 行上限只界未终结尾巴、pi-messages reader 上限、streamSimple toolChoice 八 adapter 补齐、会话换行修复失败传播、--rc range 失配不静默降级、mcp session_tree 门窗口审批恢复、subagents syntheticPaths 采集期 fail-closed 等;rc.11 点名的测试零覆盖面全部钉死。 Final pre-release re-review fixes (rc.12; five-domain parallel review): P1 — three SSE finish().unwrap() sites now propagate errors (a malformed stream — 1 MiB unwritten tail + incomplete UTF-8 + EOF — used to panic inside the adapter task and hang the turn with no terminal event); the codex SSE body read now races the cancel signal (Esc/abort no longer waits out httpTimeoutMs). P2 — panic guards for sequential tool batches, SSE line caps bounded to the unterminated tail only, a pi-messages reader cap, streamSimple toolChoice forwarded by eight adapters, newline-repair failure propagation, no silent --rc downgrade on range mismatch, the mcp session_tree approval restore across the gate window, fail-closed syntheticPaths collection and more; every zero-coverage area rc.11 named now has pinned tests.
- 模型目录刷新(rc.13,catalog-only):内置目录刷新至 2026-09-14 快照——聊天 1354→1397 模型(Bedrock 区域族 +34、GPT-5.4 Codex 退役、DeepSeek Flash 合并、moonshotai 旧 kimi-k2 族退役、Copilot gpt-6-astra 改道 Responses、OpenRouter 批量/别名族扩充等);图片 50→54;行为 pin 保持 v0.85.0+(偏离 D-101,v0.1.5 上游追平后收敛);远程目录同步再生成。 Model catalog refresh (rc.13, catalog-only): built-in catalogs refreshed to the 2026-09-14 snapshot — chat 1354→1397 models (Bedrock regional families +34, GPT-5.4 Codex retired, DeepSeek Flash merged, legacy moonshotai kimi-k2 families retired, Copilot gpt-6-astra rerouted to Responses, OpenRouter bulk/alias families expanded, …); images 50→54; the behavioral pin stays at v0.85.0+ (deviation D-101, converging after the v0.1.5 upstream chase); remote catalogs regenerated in sync.
- 高亮引擎跨语法 panic 根治(rc.14,v0.1.3 起存在非 rc 回归):syntect(fancy-regex)遇 Oniguruma 子程序调用语法 panic——39 个语法(HTML / Markdown→HTML / PHP / Vue / Svelte / QML / JSP / Elixir 等)解析到 <script>、~r 等内容首次命中即 panic(catch_unwind 兜住但 stderr 污染 TUI、整块退纯文本)。build 期剔除 + 21,692 个 Direct 引用全量改写 + 重链接(198→192),引入 vendored fork vendor/syntect(5.3.0 + 两处可见性补丁)。HTML 内嵌 JS 着色恢复;Elixir ~r 行纯文本降级;全仓 mod.rs 清零。 Cross-syntax highlight panic eradicated (rc.14; present since v0.1.3, not an rc regression): syntect (fancy-regex) panicked on Oniguruma subroutine-call syntaxes — 39 grammars (HTML / Markdown→HTML / PHP / Vue / Svelte / QML / JSP / Elixir, …) panicked on first hit when parsing <script> blocks or ~r literals (catch_unwind contained it, but stderr polluted the TUI and whole blocks fell back to plain text). Build-time excision + a full rewrite of 21,692 Direct references + relinking (198→192), with a vendored fork vendor/syntect (5.3.0 + two visibility patches). Embedded JS in HTML regains coloring; Elixir ~r lines degrade to plain text; mod.rs files eliminated repo-wide.
-
statusline live_output 原始材料透传(rc.15):
rpi.live_output新增 6 个 additive 字段——output_tokens(流中 provider 累积)、text/thinking/toolcall(当前消息累积原文)、decode_started_at_ms(TTFT 排除)、message_id(逐消息变化)——脚本可自做语言感知 token 估算,替代单一 chars/token 因子(中文/英文双向偏差)。宿主/ABI/订阅集零改动,原 8 字段逐字节不变。 statusline live_output raw-material passthrough (rc.15):rpi.live_outputgains six additive fields — output_tokens (provider-cumulative during the stream), text/thinking/toolcall (the current message's accumulated originals), decode_started_at_ms (excluded from TTFT) and message_id (changes per message) — so scripts can do language-aware token estimation instead of a single chars/token factor (biased both ways for CJK vs English). Zero host/ABI/subscription changes; the original eight fields stay byte-identical. -
statusline live_output 冻结 decode_ms(rc.16):新增
decode_ms(首 delta→now 流式活更新 / message_end 后冻结为首 delta→end,始终存在、首 delta 前 0)——空闲 tick 重算同一速率,TTFT = elapsed_ms − decode_ms 同钟差;精准 tok/s 脚本从此单快照纯函数渲染,不再需要 per-session state file(resume 孤儿/陈旧两失败模式构造性消除)。原 15 字段逐字节不变。 statusline live_output frozen decode_ms (rc.16):decode_msjoins the payload (first delta→now while streaming; frozen at first delta→end after message_end; always present, 0 before the first delta) — idle ticks recompute the same rate and TTFT becomes the same-clock difference elapsed_ms − decode_ms; precise tok/s scripts now render from a single snapshot as pure functions, with no per-session state file (both the resume-orphan and stale-rate failure modes are structurally eliminated). The previous fifteen fields stay byte-identical.
0.1.3性能与并发治理(2026-09-03)Performance & concurrency governance (2026-09-03)
主线:全仓审计驱动的 7 项性能/并发治理任务(V13-01…07)+ 两支先行 PR 收口(流式请求超时空闲语义 / write 流式渲染 O(n²))。断裂修复:长推理总超时误杀、write 大文件卡顿、扩展 UI 换装撕帧、statusline 双开串数据。零新 ABI、零新 ADR。 Highlights: seven audit-driven performance and concurrency tasks (V13-01…07) plus two lead-in PRs (idle-timeout streaming semantics / O(n²) write rendering fix). Notable fixes: long-inference total-timeout kills, write rendering stalls, extension UI swap tearing, and the dual-instance statusline data-mixup. Zero new ABI or ADR.
-
父会话权威定位:subagents 用
ctx.sessionFile权威值替代目录启发式(双开同 cwd / fork 自污染不再误锁),兜底加 mtime 下界与 stem 形状过滤(关闭 TE-D16)。 Authoritative parent session: subagents now preferctx.sessionFileover the directory heuristic (fixes dual-instance same-cwd / fork self-pollution); the fallback gains an mtime floor and a stem-shape filter (closes TE-D16). - 子进程事件落盘与帧节流:events/transcript 改每 child 单持久句柄 + 50MiB 上限;status.json 100ms 写入门控;update 帧签名门控 + subagent_wait 轮询脏检查——50 个相同事件 toolUpdate 从 50 帧压到 3 帧。 Child event persistence & frame throttling: per-child persistent JSONL handles with a 50MiB ceiling; 100ms status-write coalescing; signature-gated streaming frames and a wait-poll dirty check — 50 identical events now push 3 toolUpdate frames instead of 50.
- smart-fetch 进度节流:下载进度 100ms/64KiB 双阈值门控 + batch 快照 1% 签名短路;终态帧与帧形状零变化(TE08 对拍口径缩减中间帧)。 smart-fetch progress throttling: 100ms/64KiB dual-threshold gating for body progress plus a 1%-granularity batch-snapshot dirty check; terminal frames and shapes stay byte-exact.
-
TUI 换装原子化与热路径:widget/selector 换装单临界区化(不再闪缺失帧/裸 editor);流式 MessageUpdate 队列同帧折叠保尾 + 借用化消除深拷贝。
Atomic UI swaps & streaming hot path: single-critical-section widget/selector swaps (no more missing/bare frames); same-frame MessageUpdate folding plus borrow-based
update_content. -
扩展升级漏掉未跟踪插件:
rpi update --extensions只认 settings 的 packages 条目,而加载器加载安装目录下全部插件——早期版本安装/手工复制的未跟踪插件被静默跳过,多插件场景即“只升级一个”;update 现与加载器发现对齐(identity 去重并入、不回写 settings),rpi update <name>可命中,rpi list标注 (untracked);registry 批量单个失败不再阻断其余,未收录(404)的未跟踪安装降级为跳过提示。 update --extensions missed untracked installs: update/list only iterated the settingspackagesentries while the loader loads every manifest directory under the install roots — untracked installs (legacy versions / hand-copied) were silently skipped, so a multi-extension setup updated just one. update now matches the loader's discovery (identity-deduped, never writes settings),rpi update <name>can target them, andrpi listmarks them(untracked); a failing registry source no longer blocks the rest of the batch, and an untracked install absent from the registry (404) downgrades to a skip note. - edit 误报 Could not find edits[N] 但编辑实际成功:预览竞态(UI 排空滞后于 agent 写盘时,预览对已编辑文件找 oldText 必失败)叠加移植回归——上游 renderResult 回填后就地重建 call 组件,rpi 的 update_display 先建 call 后回填,同帧太迟且此后无重建,红色错误永久残留;修复为 result 组件先构建(回填先落地)、call 后构建,add 顺序不变,竞态伤害降为与上游一致的“一闪而过”(竞态本身上游固有不修)。 edit falsely reported "Could not edits[N]" while the edit landed: a preview race (the UI drains slower than the agent writes, so the preview looks for oldText in the already-edited file) stacked with a port regression — upstream rebuilds the call component in place after backfilling the result diff, while rpi's update_display built the call component before the backfill could land, freezing the error on screen forever. The fix builds the result component first (backfill lands) then the call component, adding order unchanged; the race now self-corrects within one frame, matching upstream (the race itself is inherent upstream and stays).
- /resume 后「🔌 MCP」状态行消失(且 MCP 扩展整体缺失):会话替换(/resume /new /fork /clone /import)重建扩展宿主并按同一路径重载插件 cdylib——dlopen 按路径记忆化,插件进程级静态跨宿主存活,mcp-adapter 第二次 install 撞上 OnceLock 报 "plugin already initialized":新会话里 mcp 工具、flag、事件与状态行全部静默缺失(状态行在旧宿主 session_shutdown 已清空且无人重推)。修复:宿主通道(fn 指针+cookie)改 RwLock 可重绑——rebind 保留进程级 runtime/dispatcher,在新宿主重注册 flag/事件、重置 direct 工具面、按新会话 cwd 重发现配置、重推状态行并重臂 bridge-retry(新宿主 UI 桥后接,直推会被 null bridge 丢弃);所有调用点调用时读当前通道,旧宿主 rebind 后零推送。 "🔌 MCP" footer vanished after /resume (and the whole MCP extension went missing): session replacement rebuilds the extension host and re-loads the same plugin cdylib — dlopen memoizes per path, so plugin statics survive across hosts, and mcp-adapter's second install hit the OnceLock with "plugin already initialized": the mcp tool, flag, event handlers and the footer entry all silently vanished from the new session (the footer was already cleared by the outgoing host's session_shutdown with nothing left to re-push it). The host channel (fn pointer + cookie) is now rebindable: the rebind keeps the process-lifetime runtime and dispatcher, re-registers flags/events on the new host, resets the direct-tool surface, re-discovers config from the new session cwd, re-pushes the footer and re-arms the bridge retry (the new host's UI bridge attaches only after switch_session returns); every call site reads the current channel, so the retired host receives nothing afterwards.
- statusline / smart-fetch 同族修复:statusline 二次 install 早退——新宿主零事件订阅(footer 冻结)、刷新循环持旧通道且 poll 定时器烧悬垂 cookie、旧循环已在 session_shutdown 退出且无人重启;smart-fetch 工具虽重注册但宿主通道冻结在首个宿主——每次 web_fetch 的 ctx.cwd/settings 解析与流式 toolUpdate 推送走旧 cookie。两者随 mcp-adapter 一并改用可重绑通道(事件订阅无条件化 + 重启刷新循环 / STATE.set 失败即 rebind),各补双宿主回归测试(已验证还原修复后变红)。 statusline / smart-fetch same-family fixes: statusline's second install returned early — zero event subscriptions on the new host (the footer froze), the refresh loop kept the retired channel with its unconditional poll timer burning a dangling cookie, and the loop had already exited on session_shutdown with nothing to restart it; smart-fetch re-registered its tools but froze the host channel on the first host, so every web_fetch ctx.cwd/settings lookup and streaming toolUpdate push went through the old cookie. Both now follow the same rebindable-channel discipline (unconditional event subscriptions plus a loop restart / rebind on the second install), each with a two-host regression test verified red against the pre-fix code.
-
低档杂项:mcp-adapter 秘钥解析改阻塞池、无 UI 期免推 status bar、
getAllTools惰性查询;statusline 变化 tick 复用 ctx 取数;TUI 每帧尺寸读取 4→1 次 ioctl。 Misc cleanup: blocking-pool secret resolution, no wasted status-bar pushes without a UI, lazygetAllTools, ctx-fetch reuse on statusline change ticks, and 4→1 terminal size reads per TUI frame.
0.1.2statusline 插件与修复簇(2026-08-19)statusline plugin & fix wave (2026-08-19)
主线:第四个第一方插件 rpi-ext-statusline 落地、一批交互与模型运行时缺陷修复、/changelog 接入真实更新日志、subagents skill 文档按结构化入口本地化(ADR-0021)。
Highlights: the fourth official plugin rpi-ext-statusline, a wave of interactive and model-runtime fixes, a real /changelog, and the subagents skill docs localized to the structured entry points (ADR-0021).
第一方插件(新)Official plugin (new)
- rpi-ext-statusline:CC 兼容脚本式自定义 statusline(L0 原生插件)。
settings.json写statusLine键即启用(命令 + padding/裁剪参数),两档 placement;脚本按 CC statusline JSON 协议 stdin/stdout 驱动,零新增 ABI。含实机追补:切换模型/思考档位/分支即时刷新、新会话 transcript latch 竞态修复、数据指纹轮询自愈。rpi-ext-statusline: a Claude-Code-compatible script-driven statusline (native L0 plugin). Adding astatusLinekey tosettings.jsonenables it (command plus padding/trim options) with two placements; the script speaks the CC statusline JSON protocol over stdin/stdout with zero new ABI. Hardened in the field: instant refresh on model / thinking-level / branch switches, a transcript latch race fix for new sessions, and data-fingerprint polling self-healing.
修复Fixes
/new与/resume切换 session 后 extension host 丢失 UI bridge——mcp 状态栏消失、MCP 工具审批被静默拒绝(#1)。Extension host lost the UI bridge after/new//resumesession switches — the mcp status line disappeared and MCP tool approvals were silently rejected (#1).models.json配置 apiKey 后仍强制要求auth.json——字面 key 被误当环境变量名,改按上游 config-value DSL 解析(#3)。A literalapiKeyinmodels.jsonstill requiredauth.json— literal keys were misread as environment-variable names; now parsed with the upstream config-value DSL (#3)./changelog恒显示 "No changelog entries found."——changelog 资产从未落地;现CHANGELOG.md嵌入二进制 +parseChangelog移植 + onboarding 显示半链(#5)。/changelogalways showed "No changelog entries found." — the changelog asset never shipped.CHANGELOG.mdis now embedded into the binary, with theparseChangelogport and the onboarding display half-chain (#5).model_select事件从未发出——切换后捕获 previous 恒等短路。Themodel_selectevent was never emitted — the post-switch capture short-circuited on an identicalprevious.- onboarding 启动 header 品牌残留:上游 "Pi" 逐字文案改 rpi 实际能力表述,去掉 rpi 未带的 docs 查询承诺、指向官网(#7)。Onboarding header branding leftovers: verbatim upstream "Pi" copy rewritten to Rpi's actual capabilities, dropping the docs-query promise Rpi does not ship and pointing to the website (#7).
内部Internal
- subagents 编排 skill 文档与 prompt 模板按结构化入口本地化(ADR-0021):去除
workflowScript教学与未实现机制段落,安装侧.rpi-layout-versionmarker 自动升级旧版;工具描述补齐tasks/steps组合入口(ADR-0018 决策 5)。Subagents orchestration skill docs and prompt templates localized to the structured entry points (ADR-0021):workflowScriptteaching and unimplemented-mechanism sections removed, an install-side.rpi-layout-versionmarker upgrades older copies automatically; tool descriptions now document thetasks/stepscomposition entries (ADR-0018 decision 5). - registry / package_manager / package_command rustfmt 清账(纯格式化)。rustfmt cleanup across registry / package_manager / package_command (formatting only).
0.1.1插件生态与上游对齐(2026-08-16)Plugin ecosystem & upstream alignment (2026-08-16)
三大主线:对齐上游 Pi v0.84.1(T17–T32,parity freeze)、三个常用 Pi 插件的 Rust 移植落地(TE01–TE11)、扩展分发与安装链路打通。 Three main lines: alignment with upstream Pi v0.84.1 (T17–T32, parity freeze), the Rust ports of three popular Pi plugins (TE01–TE11), and the extension distribution & install pipeline.
扩展分发与安装(新)Extension distribution & install (new)
rpi install <name>[@<range>]:registry 渠道——裸名解析 revpi.dev 索引,semver 选版(精确 /^/~,缺省最新),安装前预检rpiAbi与minHostVersion;下载 GitHub 直连优先、官网边缘代理回退,sha256 以官网索引记录校验,不匹配立即中止不换源。rpi install <name>[@<range>]: the registry channel — a bare name resolves against the revpi.dev index, semver selection (exact /^/~, default latest), withrpiAbiandminHostVersionpreflight; downloads prefer GitHub direct with the site edge proxy as fallback, sha256 verified against the site index and any mismatch aborts without switching sources.rpi install github:<owner>/<repo>[@<tag>]:直指 GitHub Release artifact(未收录/私有插件),校验退化为 Release 自带 sidecar 并明示完整性级别差异。rpi install github:<owner>/<repo>[@<tag>]: points straight at a GitHub Release artifact (uncatalogued/private plugins); verification degrades to the release's own sidecar, with the integrity-level difference stated up front..rpix打包格式:gzip tar,含rpi-extension.json+ 载体 +SHA256SUMS;逐文件校验、原子替换到~/.rpi/agent/extensions/<name>/(或-l项目级)。The.rpixformat: a gzip tar containingrpi-extension.json, the carrier, andSHA256SUMS; per-file verification and an atomic replace into~/.rpi/agent/extensions/<name>/(or project-level with-l).- 信任提示:install/update 展示 author 与 capabilities 全表;L0 原生插件(无沙箱、全 OS 权限)显著警告,需确认或
--yes。Trust prompts: install/update show the author and the full capabilities table; native L0 plugins (no sandbox, full OS access) carry a prominent warning and need confirmation or--yes. remove/list/update全链路支持;RPI_REGISTRY_URL可注入镜像/测试地址,off整体禁用。remove/list/updateacross the whole chain;RPI_REGISTRY_URLcan inject a mirror/test endpoint andoffdisables everything.- 第一方插件随主版本发布:CI 将官方插件各自打成
.rpix(Windows x64 / macOS arm64 / Linux x64 与 arm64 glibc;musl 主机无法加载原生扩展,不出插件包),与本体同一 Release 发布、版本锁步,官网索引自动收录并标「官方插件」。Official plugins ship with each release: CI packs every official plugin as a.rpix(Windows x64 / macOS arm64 / Linux x64 & arm64 glibc; musl hosts cannot load native extensions, so no plugin packages there), published in the same GitHub Release as the binary, version-locked, and auto-listed in the site index as official. - revpi.dev 新增
/api/extensions/索引 API、/extensions/download/下载代理(白名单 + 边缘回源)与插件目录页。revpi.dev gained the/api/extensions/index API, the/extensions/download/proxy (allowlist + edge fetch), and the plugin catalog page.
第一方插件移植(TE01–TE11)Official plugin ports (TE01–TE11)
- rpi-ext-mcp-adapter(pi-mcp-adapter v2.24.0):MCP 客户端——配置三源合并、stdio/SSE/HTTP 三传输、OAuth 全流程、代理与 direct 工具、懒连接与会话恢复、状态行与结果折叠渲染;parity 对拍证据链。rpi-ext-mcp-adapter (pi-mcp-adapter v2.24.0): the MCP client — three-source config merge, stdio/SSE/HTTP transports, the full OAuth flow, proxy and direct tools, lazy connect with session resume, status line and collapsible result rendering; parity evidence chain included.
- rpi-ext-subagents(pi-subagents v0.48.0):
subagent工具——六内置 agents 与四级发现、fresh/fork、组合编排与后台异步、worktree 隔离、acceptance gates、supervisor 通道、流式进度与 TUI 可视化、/run/subagents/subagents-doctor;对拍全 MATCH。rpi-ext-subagents (pi-subagents v0.48.0): thesubagenttool — six builtin agents with four-level discovery, fresh/fork contexts, composition and background async, worktree isolation, acceptance gates, the supervisor channel, streaming progress with TUI visibility, and/run/subagents/subagents-doctor; full MATCH on parity runs. - rpi-ext-smart-fetch(agent-smart-fetch v0.3.17):
web_fetch全管线——batch 并发、meta refresh / alternate 回退、流式下载、进度事件流与组件树渲染。rpi-ext-smart-fetch (agent-smart-fetch v0.3.17): the fullweb_fetchpipeline — batch concurrency, meta-refresh / alternate fallbacks, streaming downloads, progress event streams, and component-tree rendering. - 扩展 ABI 补齐(ADR-0015):
unregisterTool/toolUpdate双载体,完全 additive,RPI_ABI_VERSION保持 1。Extension ABI completion (ADR-0015):unregisterTool/toolUpdateon both carriers, fully additive,RPI_ABI_VERSIONstays 1.
上游对齐 Pi v0.84.1(T17–T32)Upstream alignment with Pi v0.84.1 (T17–T32)
- rpi-ai:v0.84 消息类型与请求选项、流终止语义、provider 修复与 compat 扩展、models refresh 事务化与 OAuth、auth 命令族、新 provider 与模型目录。rpi-ai: v0.84 message types and request options, stream-termination semantics, provider fixes and compat extensions, transactional models refresh with OAuth, the auth command family, and new providers with model catalogs.
- 主路径:JSON/RPC delta 线格式与 stdout 背压、会话行为簇、资源加载与包管理。Main paths: JSON/RPC delta wire format with stdout backpressure, session behavior fixes, resource loading, and package management.
- rpi-agent:agent 循环微行为与 compaction 契约。rpi-agent: agent-loop micro-behaviors and the compaction contract.
- rpi-tui:渲染器 trait 化重构、行为修正簇(即时渲染 / grapheme / OSC8 / 键位 / Windows)、LaTeX 与 Mermaid、布局引擎、全屏渲染(alt screen / mouse / kitty)、UI 模式接线与 parity freeze。rpi-tui: the renderer trait refactor, a behavior-fix cluster (instant rendering / graphemes / OSC8 / keybindings / Windows), LaTeX and Mermaid, the layout engine, fullscreen rendering (alt screen / mouse / kitty), UI-mode wiring, and the parity freeze.
- 扩展 API 面同步上游 12 项(ADR-0013)。12 extension-API items synced with upstream (ADR-0013).
行为变更Behavior changes
- 移除 npm/pnpm/yarn/bun 自更新分支(ADR-0011 修订):二进制为唯一发行渠道,
update --self恒走真自更新;npm:扩展包安装不受影响。The npm/pnpm/yarn/bun self-update branches are gone (ADR-0011 revision): the binary is the only distribution channel andupdate --selfalways performs a true self-update;npm:extension-package installs are unaffected. - CI 构建改为仅 tag 触发,分支推送不再自动构建。CI builds now trigger on tags only; branch pushes no longer build.
修复Fixes
- 主屏渲染器超宽行 panic 杀死运行中会话、满宽行宽度分歧换行漂移花屏——超宽行改截断继续渲染(诊断快照照写
rpi-crash.log并注明渲染已继续);emoji 字体回退按 2 列渲染的风险字符(✓ 类)计入悲观宽度,满宽风险行保守截断消除行漂移(ADR-0020 / D-086)。The main-screen renderer panicked on overwide lines, killing live sessions, and full-width lines drifted into garbled wraps — overwide lines are now truncated with rendering continuing (diagnostic snapshots still go torpi-crash.logwith a note); fallback-glyph risk characters (✓ and friends) rendered two cells wide are counted pessimistically, and risky full-width lines are conservatively truncated to kill the drift (ADR-0020 / D-086). - $$ / \[ 公式块内孤行 =/- 被解析成 setext 标题,公式在进入数学渲染前被切断损毁——修复为 parse 前 shadow source 等长改写(块内孤行运算符替换为等长
.字节喂解析器,渲染与 LaTeX 输入仍用原始源),修复后与上游逐字节对拍一致;关闭 renderLatex 开关时保持原行为(D-078 补记)。Lone=/-lines inside$$/\[blocks parsed as setext headings, corrupting formulas before math rendering — fixed by an equal-length shadow-source rewrite before parsing (the lone operator is replaced with.bytes for the parser while rendering and LaTeX input keep the original source); byte-for-byte parity with upstream after the fix, and the original behavior is kept when renderLatex is off (D-078 follow-up). - LaTeX 遇符号表不认识的命令时整块公式回退原文(单符号一票否决),
\blacksquare(QED 证明结束符,LLM 数学输出高频)即触发——按 KaTeX 清单盘点 270 个常用宏实测 78 项缺口后全量补全:62 条符号映射 + 带参宏与subarray环境的终端降级渲染;映射一律跟随 KaTeX,与上游 ground truth 对拍不破(T29 后续,D-087)。A single unknown LaTeX command made the whole formula fall back to raw text;\blacksquare(the QED marker, frequent in LLM math output) was enough to trigger it — audited 270 common macros against the KaTeX list, found 78 gaps, and filled them all: 62 symbol mappings plus terminal-degraded rendering for parameterized macros and thesubarrayenvironment; mappings follow KaTeX and parity against upstream ground truth holds (T29 follow-up, D-087). - 词级 diff 的 trim 边界以字节索引 +1 推进,token 末字符为多字节 UTF-8(中文/全角)时切片落在字符中间,edit 渲染含此类内容的 diff 即 panic 杀死渲染线程——改按末字符长度推进,补多字节回归用例,与 jsdiff 8.0.4 参考向量对拍保持一致。Word-diff trim advanced its boundary by one byte, so a multi-byte UTF-8 final character (CJK/full-width) put the slice mid-character and rendering an edited diff with such content panicked the render thread — now advances by the final character's length, with multibyte regression cases added and parity against jsdiff 8.0.4 reference vectors preserved.
- 多 native 插件共载失败(abi_stable 按类型 memoize 根因,改 per-path 加载)。Multiple native plugins failed to co-load (abi_stable memoizing by type at the root; now loaded per-path).
- SSE 行上限对齐 10MiB(8KiB 上限误吞大行响应)。The SSE line cap aligned to 10 MiB (the 8 KiB cap was dropping large-line responses).
- 全屏热切换输入失效、/settings 两处卡死。Input loss after fullscreen hot-switching and two /settings freezes.
- file_processor 测试命名竞态;bash 结果截断警告行按终端宽度换行。A file_processor test-name race; the bash result-truncation warning now wraps to terminal width.
官网(revpi.dev)Website (revpi.dev)
- Release 镜像改 Function 边缘代理回源(零存储),404/502
no-store;安装脚本托管站点根。Release mirrors moved to a Function edge proxy with origin fetch (zero storage), 404/502 servedno-store; installer scripts hosted at the site root. - 首页三平台安装面板;docs 快速开始重构;移动端导航与布局修复;favicon。Three-platform install panel on the landing page; quickstart restructured; mobile nav and layout fixes; favicon.
- docs 新增配置参考页:全部设置键、默认值与作用域,含请求超时与重试、隐私开关、环境变量。New configuration reference in docs: every settings key with defaults and scope, including request timeouts and retries, privacy switches, and environment variables.
0.1.0首个版本(2026-08-15)Initial release (2026-08-15)
- 终端 AI 编程助手的完整功能:多轮对话、内置工具、会话管理。The complete terminal AI coding assistant: multi-turn chat, built-in tools, session management.
- 交互 / 一次性问答 / RPC 三种运行模式。Three run modes: interactive, one-shot (
--print) and RPC. - 内置 38 家模型服务商。38 built-in model providers.
- 插件系统:WebAssembly 与原生动态库,支持热重载。Plugin system: WebAssembly and native dynamic libraries, with hot reload.
- 会话导出 HTML 与链接分享。Session export to HTML and link sharing.