Skip to content

chore(deps): upgrade Pi to 1.6.0 - #923

Open
sambitcreate wants to merge 5 commits into
mainfrom
chore/pi-1.6.0-upgrade
Open

sambitcreate wants to merge 5 commits into
mainfrom
chore/pi-1.6.0-upgrade

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

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.md and .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.json verbatim; 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:

    • OpenAI, Azure and Codex: gpt-6.2-sol
    • Anthropic: claude-opus-5-5
    • Google: gemini-4-argon

    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

  • Stopped tool batches. In a stopped batch, Pi 1.6 now ends the calls that never started with "Operation aborted". The server marks them cancelled, with stoppedByUser when a person pressed Stop, not failed. This matches the desktop, and iOS and Android already render cancelled rows.
  • WebSocket failures, including Codex's 60-minute connection limit, are now classified as network failures with a new websocket-closed diagnostic cause.
  • Dropped-reasoning notice: stays hidden on every client. Message diagnostics are stripped before storage and are not part of the Remote contract, so there is no protocol change.

Dependencies

  • Overrides:
    • Dropped the redundant chord ws overrides.
    • Dropped the CLI undici 8.12.3 override. It held undici below pi-coding-agent's 8.12.4 security pin, and the CLI now resolves 8.12.4.
    • Kept the root chord react 19.2.7 override.
  • Pi 1.6 features with no Aiden code change:
    • Retries for ECONNRESET and the Codex connection limit
    • Codex caching
    • Qwen Token Plan's per-plan keys
    • llama.cpp's port 9931

Not changed

  • OPENAI_WEB_SEARCH_MODEL stays gpt-5.6. It is the fallback for the separate web-search tool, not the chat default.

Release-note obligations for the next version bump

  • No downgrade. Pi Durable 1.6 writes pi.tool v4 and pi.generation v3 tasks, and an older version blocks them as task_too_old.
  • New default model. Providers with nothing saved now start on Pi's default. This also moves routines and Telegram bots that pin a provider but no model. An Azure deployment without gpt-6.2-sol needs a model chosen.

Testing

  • Type-checks: root tsc, CLI type-check and CLI build are clean.
  • CLI: 371 tests, 368 pass, 3 skipped; parity default-table drift test passes.
  • Desktop suites:
    • test:bot-runtime 624/624
    • test:compaction 24/24, plus 900 (897 pass, 3 todo); replay gate passed
    • test:hooks 184/184
    • test:model-picker 87/87
    • test:google-provider 205/205
    • Provider, catalog, failure and diagnostics suites all pass
    • test:branding and test:ci-policy pass
  • No E2E or screenshots: there is no UI change.

Known non-blocking failure (not from this PR)

iOS build and simulator tests (Xcode 27, non-blocking) fails on AidenShellUITests.testUnpairedSearchOffersPairingAndExplainsInvalidManualInput(). main fails the same test the same way at 0a4dac1 (main run, this PR's run). This PR changes no iOS code. An earlier run on a62f01b failed three different simulator tests before #917 moved iOS XCTest onto one simulator; merging main picked that fix up.

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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 TaskRuntime identity: 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/genai 2.32.0 package and recorded the compatibility fix in the upgrade documentation.

Pullfrog  | ⚠️ this action is pinned to a commit SHA, which freezes the cleanup step — switch to @v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant