Repository navigation
fix: support Pi 0.99.1 native contracts - #636
Merged
Merged
Conversation
This was referenced Oct 9, 2026
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.
Problem
OpenPI main develops against Pi 0.85.1, while newer hosts use native transcript deltas, JSON argument types, execution contexts, and prompt dispositions. Web can report a request as rejected during asynchronous
agent_settledhandlers even though Pi later executes it. It can also settlehandledinput while an extension's follow-up remains queued.Closes #635.
Value
Establish a tested Pi 0.99.1 baseline, preserve provider prompt/tool fidelity and Plan approval, and keep Web admission and completion tied to native execution evidence.
Approach
started/queued/handleddispositions, preserving ready Plan approval for handled input and queue tracing when queue length stays unchanged.657eff9, retaining its Session ownership and compaction queues, and migrate its new admission fixtures to Pi's current contract.The research record preserves the source boundary, validation, and limitations. Removing the local replay and queue-growth heuristic still satisfies the existing acceptance tests. Ablating the idle guard or replacing native Session phase observation with only a Web trace reproduces the lifecycle failures.
Validation
bun install --frozen-lockfilepassed with the Pi 0.99.1 SDK and native Pi dependency graph.bun run checkpassed on macOS, Node 24.20.0, and Bun 1.3.14, including Web build, formatting, lint, and types. Generated Web assets match the committed main build.bun run testpassed after integration: 2,057 Node tests and 856 Vitest tests; 8 platform-dependent Node tests skipped.552ab0epassed 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.Impact