Skip to content

Upgrade OpenPI’s Pi host baseline to 0.99.1 #635

Closed

Description

@testikun

Problem

OpenPI's previous main develops against Pi 0.85.1 and declares a >=0.85.1 peer range. The host APIs changed between that baseline and Pi 0.99.1: native transcripts carry system sections and tool deltas, prompt admission reports explicit dispositions, tool arguments have stricter JSON types, and tool execution contexts support nested calls.

Without a tested migration, provider conversion can lose prompt/tool information, handled input can consume Plan approval without starting implementation, and queue-length inference can misidentify queued commands. Review also reproduced premature completion of handled input with an extension-queued follow-up, and false rejection of a Web request that Pi later executes during asynchronous settlement.

Original source baseline: OpenPI 1c4d3318ae9cfd207255820246f7041821fb36da (0.9.0). Integration baseline: main 657eff9cf8d58e9cc0a19a86f0d14ca9b2811974. Upstream sources: Pi 0.99.1, Pi 0.99.0, and the versioned changelog.

Scope and acceptance

  • Raise the three Pi SDK development dependencies and peer minimums to 0.99.1; synchronize the lockfile, README, and SETUP requirements.
  • Replace local transcript replay with Pi's native helpers and adapt provider message/JSON argument types while retaining normal tool schemas.
  • Distinguish started, queued, and handled admission. Preserve Ready Plan approval for handled input and queued command tracing when queue length does not grow.
  • Adapt direct-tool fixtures to the native execution context. Verify that real child Sessions cannot bypass parent exclusions, child allowlists, or permission hooks through nested calls with codemode/deferred exposure.
  • Fix both reviewed lifecycle gaps. Keep handled input owned while the Session remains busy, and dispatch requests after native settlement with real admission evidence, including Web, extension, and startup runs.
  • Resolve latest-main conflicts while retaining native Session ownership and compaction queues. Adapt observer cancellation coverage to preserved, unconsumed follow-ups and explicit queue clearing.
  • Pass repository checks and the full local suite; verify native CLI success/failure/end paths and the Web Plan handoff with local provider fixtures.
  • Pass GitHub CI for the updated PR head across Linux, Windows, Web E2E, and Plan provider handoff.

Validation

Latest local validation on macOS with Node 24.20.0, Bun 1.3.14, and the locked Pi 0.99.1 graph:

  • bun install --frozen-lockfile passed.
  • bun run check passed, including the committed Web build, formatting, lint, and types.
  • bun run test passed: 2,057 Node tests and 856 Vitest tests; 8 platform-dependent Node tests skipped.
  • Four real-Pi Session regression cases passed for queued handled input and admission during Web, extension, and startup settlement. Each request executes once and preserves its command identity through native start and settlement.
  • The real-Pi observer browser case passed: only the controlled Session stops, unconsumed messages remain queued, and explicit clearing removes them without adding executed user history.
  • All five Plan provider browser tests passed again after main integration, using a local HTTP provider fixture and headless Google Chrome.
  • Removing the idle guard reproduced premature completion; replacing native Session observation with only a Web trace reproduced false 422 rejection. Both guards remain necessary.
  • The original isolated native Pi CLI smoke retained ordinary read/bash/edit/write schemas, verified OpenPI tool registration, emitted success/failure read results, and reached agent_end with Pi's faux provider.
  • Current checkout 552ab0ee740b53a64daf467ccf219f50c8ede809 and the single OpenPI source reported by isolated pi list match.

CI for 552ab0e passed all five jobs: Node 22/24/26 checks and full suites with package smoke checks; 78 Web E2E and five Plan provider browser tests; and Windows lifecycle/full-suite isolation checks. All PR checks passed at this head.

Real remote Cursor/Antigravity OAuth requests, visual interactive TUI acceptance, and externally configured MCP servers were not validated locally. The change adds no package configuration or orchestration framework.

Implementation and reusable conclusion

Implementation: PR #636, assigned to testikun, which closes this Issue on merge.

Reusable conclusion: Pi 0.99.1 compatibility record. The record links back to this Issue and preserves its source and validation boundary.

Activity

  1. self-assigned this
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions