Repository navigation
feat(pi): upgrade Pi family to 1.6.0 and undici to 8.12.4 - #1112
Merged
Merged
Conversation
stamp-build Bot
added a commit
that referenced
this pull request
Nov 21, 2026
<!-- stamp:review:v1 --> <sup><img src="https://api.raft.build/api/avatars/pixel/bXVn.svg" width="16" height="16" align="absmiddle" alt=""> <b>Cindy</b> (open-agent-runtime) opened via Stamp · <a href="https://stamp.build/review?receipt=prc_2ce5096582e05d834584b22aa9756a40"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View →</a></sup> --- <!-- /stamp:review:v1 --> ## OAR 0.128.1 ### Fixes - **Pi moves to 1.6.0 as one family, with undici 8.12.4** (#1110, #1112, issue #1109). OAR 0.128.0 declared `@earendil-works/pi-ai` and `@earendil-works/pi-coding-agent` at `^1.5.2` while `pi-durable` and `chord` were `~1.5.2` and `undici` was pinned to Pi 1.5.2's exact `8.12.3`. Pi 1.6.0 (published 2026-11-20) therefore installed into fresh 0.128.0 hosts untested: a second `undici` copy, a failing resume reset of restored pending tools, and missing Qwen Token Plan credentials. - All four Pi packages are now `~1.6.0` in `@botiverse/oar` and `@botiverse/oar-cli`, and `undici` is `8.12.4`, the version Pi 1.6.0 pins, which carries the upstream security fixes. A fresh install has a single `undici` copy. - A manifest check fails if the Pi ranges differ, if one is not a tilde or exact version, or if OAR's `undici` differs from the exact `undici` Pi pins. - Resume no longer depends on a private side effect of Pi's `setActiveToolsByName`. OAR opens a resumed session with Pi's public `noTools: "builtin"`, which skips restoring the transcript's tool selection, then applies the current default tools. A resume whose registry has no activatable tools now opens with an empty loadout instead of failing with `UnsupportedOptionError("resume")`. - Pi credentials gain `QWEN_TOKEN_PLAN_TEAM_API_KEY`, `QWEN_TOKEN_PLAN_TEAM_CN_API_KEY`, `QWEN_TOKEN_PLAN_INDIVIDUAL_API_KEY` and `QWEN_TOKEN_PLAN_INDIVIDUAL_CN_API_KEY`. - Hosts that also depend on `@earendil-works/pi-durable` or `chord` need 1.6.x of those peers. ### New - **DSH reports its session log file** (#1107). From DSH 0.2.2-alpha.2, `Session.nativeSessionFile()` returns the absolute path DSH reports from `sessionPersistence.stat(id).location.path` (typically `session.v4.jsonl.zstd`), `null` before the log is on disk, and the last known path after disposal. An explicit call drains DSH's 200 ms write batch with DSH's own `sessions.flush` before reading, so a just-finished turn is on disk. `sessionCapabilities` declares `nativeSessionFile: true` from 0.2.2-alpha.2, `false` below it (0.2.1-rc.5's `stat` has no location), and leaves it absent when the version is unreadable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Cindy <[email protected]>
stamp-build Bot
added a commit
that referenced
this pull request
Nov 21, 2026
<!-- stamp:review:v1 --> <sup><img src="https://cdn.raft.build/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp" width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> (open-agent-runtime) opened via Stamp · <a href="https://stamp.build/review?receipt=prc_c1f84674c229828cadf745f9aa271171"><picture><source media="(prefers-color-scheme: dark)" srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg" width="13" height="12" align="absmiddle" alt=""></picture> View →</a></sup> --- <!-- /stamp:review:v1 --> The November 20 scheduled candidate workflow passed 41 of 42 jobs. The macOS Claude failure was the aliased temporary-directory fixture subsequently fixed in #1067. On November 21, two scripted Linux login attempts on Claude 2.1.330 timed out before OAR delivered any URL, while the 2.1.326 control completed all three browser modes. The report distinguishes the historical snapshot, later registry publications and the catch-up controls. The evidence covers all 15 release sources, 19 Linux probe groups and every failed job across the three monitored workflows. All 477 retained file fingerprints verified before cleanup of five runtime installations and 22 synthetic homes. Zero real-account model submissions. Pi 1.6.0 adoption is recorded separately in #1112. Co-authored-by: Otter <[email protected]> Co-authored-by: xxchan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1109 (Step 2, following #1110).
Summary
undiciupgrade: moved@earendil-works/pi-coding-agent,@earendil-works/pi-ai,@earendil-works/pi-durable, and@earendil-works/chordto~1.6.0(exact1.6.0in workspace/devDependencies, including@earendil-works/pi-ai-durable), movedundicito8.12.4(matching@earendil-works/[email protected]and carrying its 6 security advisory fixes from Pi #12200), and updatedpnpm-lock.yamlandpnpm-workspace.yaml(minimumReleaseAgeExclude).1.6.0(#11996) narrowedAgentSession.setActiveToolsByName()so_pendingToolNames.clear()runs only when a deactivated tool belonged to_restoredToolNames, breaking the previous activate/deactivate reset workaround inpackages/oar/src/runtimes/pi/open.tswhen no currently registered tool appeared in_restoredToolNames. Onoptions.resume !== undefined,openPiAgentSession()now passes Pi's publicCreateAgentSessionOptions.noTools: "builtin"option so Pi skips_restoreToolsFromTranscript()completely (leaving_pendingToolNamesand_restoredToolNamesempty) while keeping every non-excluded builtin, extension, custom, and MCP tool registered and activating default-active load-time extensions. OAR then re-applies the current native defaults (settingsManager.getDefaultTools() ?? createCodingTools(cwd)) alongsidesession.getActiveToolNames()beforesession_start. Because_pendingToolNamesis never populated, resuming with no activatable registered tools no longer fails withUnsupportedOptionError.@earendil-works/[email protected](env-api-keys.js, Pi #11773) topackages/oar/src/runtimes/pi/credential-shape.ts:QWEN_TOKEN_PLAN_TEAM_API_KEY(qwen-token-plan)QWEN_TOKEN_PLAN_TEAM_CN_API_KEY(qwen-token-plan-cn)QWEN_TOKEN_PLAN_INDIVIDUAL_API_KEY(qwen-token-plan-individual)QWEN_TOKEN_PLAN_INDIVIDUAL_CN_API_KEY(qwen-token-plan-individual-cn)sea-trial/vendor/pi-resume-tools.vendor.test.ts(all 21 cases, updating the 2no activatable registered toolscases to assert clean resume with empty active/callable sets and inactivelate_probe),docs/runtimes/pi.md,docs/runtimes/pi-durable.md,packages/oar/README.md, andpackages/oar/src/runtimes/pi/http.ts.Call-site audit
packages/oar/package.json: updateddependencies.undici(8.12.4),optionalDependencies(~1.6.0),peerDependencies(~1.6.0), anddevDependencies(1.6.0).packages/cli/package.json: updateddependencies(~1.6.0).package.json: updateddevDependencies(1.6.0for all 4 Pi packages +pi-ai-durablealias,8.12.4forundici).pnpm-workspace.yaml: updated the 10 PiminimumReleaseAgeExcludeentries from@1.5.2to@1.6.0.packages/oar/src/runtimes/pi/open.ts: only call site ofcreateAgentSessionFromServices()andsetActiveToolsByName()in OAR; switched resume path to publicnoTools: "builtin"+setActiveToolsByName([...defaults, ...session.getActiveToolNames()])and removed theUnsupportedOptionErrorfallback.packages/oar/src/runtimes/pi/credential-shape.ts: added the 4 Qwen Token Plan env vars matching@earendil-works/[email protected]/dist/env-api-keys.js.packages/oar/src/runtimes/pi/http.ts: updated comment8.12.3->8.12.4.docs/runtimes/pi.md,docs/runtimes/pi-durable.md,packages/oar/README.md: updated current Pi version/range/undici lines and the resume tool-reset documentation..github/runtime-versions.json(pi-rpc-minimumat1.4.0): unchanged (intentional minimum-floor pin).docs/runtimes/pi.md,docs/runtimes/pi-durable.md,docs/spec/model-request.md,docs/spec/runtime-matrix.md): unchanged so historical measurements remain accurately dated.Verification
pnpm install --frozen-lockfile: passed.CI=1 pnpm run check: passed (typecheck,lint0 warnings / 0 errors, 565 passed / 3 skipped test files, 5432 passed / 110 skipped unit tests, mock sea-trial 19 passed / 1 skipped).OAR_TEST=pi-aimock pnpm vitest run sea-trial/vendor/pi-resume-tools.vendor.test.ts: 21/21 passed on real@earendil-works/[email protected].OAR_TEST=pi-aimock: behavior 18 passed / 2 skipped / 0 failed; vendor 37 files / 134 passed / 0 failed.OAR_TEST=pi-durable-aimock: behavior 19 passed / 1 skipped / 0 failed; vendor 14 files / 38 passed / 0 failed.OAR_TEST=pi-rpc-aimock: behavior 18 passed / 2 skipped / 0 failed; vendor 35 files / 120 passed / 0 failed.pnpm run clean-install -- --mode=published: passed (fresh packed install resolves Pi1.6.0+ single[email protected]+ Durable1.6.0+ bundled OAuth derivation).Holding merge until
v0.128.1is tagged.