Repository navigation
chore(deps): upgrade Pi to 1.6.0 - #923
sambitcreate wants to merge 5 commits into
Conversation
Bump the desktop and CLI Pi packages in lockstep from 1.5.2 to 1.6.0, along with PI_AI_VERSION, the bundled catalog version and timestamp, and the chord override keys.
…andling - Start each provider on Pi's default model when nothing is saved (gpt-6.2-sol for OpenAI, Azure and Codex) on desktop, phones and CLI. - Add the GPT-6.2 Astra and Sol entries to the models.dev snapshot and contract-test that they never offer thinking off. - Mark unstarted calls of a stopped tool batch as cancelled on the server. - Treat WebSocket closes and connection limits as network failures. - Drop the stale chord ws and CLI undici overrides (undici 8.12.4). - Record the upgrade in docs, plans and memory.
- Commit the upgrade memory record the docs link to. - Guard Aiden's default-model table against drift from pi-coding-agent. - Report WebSocket failures as their own diagnostic transport cause. - Use Pi's default for the Telegram Codex choice list. - Record the release-note obligation for the default-model change.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes across the Pi 1.6.0 desktop and CLI upgrade, including its runtime adaptations, provider/default-model behavior, dependency graph, tests, and migration documentation.
- Dependency upgrade: Pins the live Pi packages at 1.6.0 in both package trees, retains the legacy 0.87.1 harness, removes redundant overrides, and adopts CLI undici 8.12.4.
- Models and defaults: Adds GPT-6.2 Astra and Sol, mirrors Pi's provider defaults with inventory fallbacks and parity coverage, and preserves explicit saved selections.
- Runtime compatibility: Keeps Anthropic message threads disabled, marks stopped CLI tool batches cancelled, and classifies WebSocket failures with a bounded diagnostic cause.
- Operational record: Documents the one-way durable-state migration and the default-model consequences that must appear in the next version-bump release notes.
- Verification: Root and CLI type checks, the CLI build, 50 focused provider/runtime tests, 188 CLI daemon/parity tests, 87 model-picker tests, branding guards, and installed dependency-tree checks all passed locally.
@v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏
Pi Durable 1.6 keys the provider session set and close signal by the TaskRuntime object in WeakMaps, so the Proxy Bot execution passed to phase handlers made every Bot turn fault. Install the overrides on the real runtime for the run and restore them afterwards. Also expect pi-ai's nested @google/genai 2.32.0 in the Gemini SDK contract.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review, covering the Pi 1.6 runtime-identity correction and its updated dependency contract.
- Preserved
TaskRuntimeidentity: Replaced phase-handler proxies with reversible own-property overrides on Pi's scheduler-owned runtime, retaining Aiden's admitted model, settings, and commit behavior while satisfying Pi 1.6's runtime-keyed provider-session and close-signal contracts. - Corrected abort fallback: Applied the same identity-preserving override when settling a task after its original credentials become unavailable, with restoration in
finally. - Updated SDK contract: Aligned the Gemini Live dependency assertion with Pi 1.6's nested
@google/genai2.32.0 package and recorded the compatibility fix in the upgrade documentation.
@v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏

Summary
Moves every Pi package from exactly 1.5.2 to exactly 1.6.0, on desktop and CLI together. The frozen 0.87.1 legacy harness is unchanged. The full record is in
docs/plans/completed/pi-1.6.0-upgrade-plan.mdand.memory/pi-1.6.0-upgrade.md.Models and defaults
GPT-6.2 Astra and Sol. The two models now appear for OpenAI, Azure and Codex. Their four models.dev entries (openai and azure) are added to
resources/model-capabilities.jsonverbatim; the rest of the snapshot is untouched, and the full refresh still happens at release. Contract tests check that 6.2 never offers thinking "off".Default model follows Pi (
main/services/pi-default-models.ts). When nothing is saved, each provider now starts on Pi's default model instead of its first-listed model:This applies on the desktop, phones and the CLI. Saved selections never change, and custom providers keep their first model. A CLI parity test fails if this table drifts from pi-coding-agent's.
Stale Codex default removed.
OPENAI_CODEX_DEFAULT_MODEL = "gpt-5.4"is gone; that model was no longer in the catalog.Anthropic message threads stay off, including for custom connections that point at api.anthropic.com. This is now tested.
Runtime
stoppedByUserwhen a person pressed Stop, not failed. This matches the desktop, and iOS and Android already render cancelled rows.websocket-closeddiagnostic cause.Dependencies
wsoverrides.undici 8.12.3override. It held undici below pi-coding-agent's 8.12.4 security pin, and the CLI now resolves 8.12.4.react 19.2.7override.Not changed
OPENAI_WEB_SEARCH_MODELstaysgpt-5.6. It is the fallback for the separate web-search tool, not the chat default.Release-note obligations for the next version bump
pi.toolv4 andpi.generationv3 tasks, and an older version blocks them astask_too_old.Testing
test:bot-runtime624/624test:compaction24/24, plus 900 (897 pass, 3 todo); replay gate passedtest:hooks184/184test:model-picker87/87test:google-provider205/205test:brandingandtest:ci-policypassKnown non-blocking failure (not from this PR)
iOS build and simulator tests (Xcode 27, non-blocking)fails onAidenShellUITests.testUnpairedSearchOffersPairingAndExplainsInvalidManualInput().mainfails the same test the same way at0a4dac1(main run, this PR's run). This PR changes no iOS code. An earlier run ona62f01bfailed three different simulator tests before #917 moved iOS XCTest onto one simulator; mergingmainpicked that fix up.