Skip to content

fix: managed Web startup and Pi 1.2.0 compatibility - #766

Closed
testikun wants to merge 3 commits into
codex/settings-resourcesfrom
codex/pi-1-2-web-startup
Closed

testikun wants to merge 3 commits into
codex/settings-resourcesfrom
codex/pi-1-2-web-startup

Conversation

@testikun

@testikun testikun commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

pi install npm:@tt-a1i/openpi followed by /web fails with Cannot find module '@earendil-works/pi-ai/providers/all' when Pi is installed separately. Native Pi installation omits peer dependencies, but the Web subprocess only forwarded the host SDK alias. The published 0.10.0 package reproduces this under both Pi 0.99.1 and 1.2.0.

Fixes #765. This PR is stacked on #711, which is still open.

Value

Managed npm installations can start Web with their existing Pi host. Pi 1.2.0 custom-message runs, cancellation receipts, terminal cursor markers and approved Plan execution work with OpenPI.

Approach

  • Resolve Web's direct provider import through the already validated host SDK's ESM exports. Keep one host-owned Pi runtime.
  • Move development dependencies and CI to Pi 1.2.0; retain the 0.99.1 peer minimum.
  • Guard prompt-only hooks for custom-message events, consume native aborted settlement evidence, preserve native fake-cursor markers, and update the theme schema reference.
  • Permit Plan's preflight callback to consume an already matched prompt/revision approval while Pi reports startup as busy. Other busy Plan changes remain blocked.
  • Make package smoke tests omit Pi peers and use a separate host, so checkout dependency visibility cannot conceal the original failure. Update native SDK fixtures and wait for terminal completion before asserting the browser provider request count.

Validation

  • bun run check: passed on macOS, Node 24.20.0, Bun 1.3.14.
  • bun run test with an isolated Pi agent directory, after integrating Improve Web workbench and settings with native Code Mode defaults #711 at cfc5537a: 2499 Node tests passed, 9 platform skips; 1421 UI tests passed.
  • Complete native-provider browser acceptance after integration: all 18 scenarios passed.
  • Final packed artifact with no local Pi peers starts and stops cleanly under separate Pi 1.2.0 and 0.99.1 hosts. Each isolated pi list reports one OpenPI source.
  • Real Pi 1.2.0 TUI /web starts successfully; HTML/JS/CSS return 200; Ctrl+C returns to Pi.
  • Removing each host alias, custom-message guard, native abort receipt, cursor-marker handling and busy-admission exception reproduces its regression; restored the necessary changes.
  • GitHub CI passed at 4dc8486c: all 18 PR checks are green, including Linux Node 22/24/26, Windows runtime/UI and both browser shards. The PR is mergeable. Remote provider services were not exercised.

Impact

  • User behavior: repairs Web startup and Pi 1.2.0 Plan/cancellation/editor compatibility.
  • Model context/tools: custom-message runs no longer enter prompt-only activation; Plan approval remains explicitly bound to the submitted user prompt.
  • Runtime/lifecycle: honors native startup busy state and aborted terminal evidence; no parallel provider stack.
  • Persisted configuration/data: no migration or user preference rewrite.
  • Compatibility/risk: Pi 1.2.0 is the tested development baseline; 0.99.1 retains the startup control and existing fallback behavior. No npm release or live-service deployment is included.

Reusable investigation: Pi 1.2.0 compatibility.

@testikun
testikun requested review from a team and tt-a1i as code owners October 13, 2026 13:30
@github-actions github-actions Bot added documentation Improvements or additions to documentation area:workflows Workflow engine, capability, skills, or tests area:subagents Subagent delegation, skills, or tests area:setup OpenPI setup, configuration, or setup documentation area:ui Terminal UI, rendering, themes, or visual assets area:github GitHub workflows, templates, ownership, or tests labels Oct 13, 2026
@testikun testikun closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:github GitHub workflows, templates, ownership, or tests area:setup OpenPI setup, configuration, or setup documentation area:subagents Subagent delegation, skills, or tests area:ui Terminal UI, rendering, themes, or visual assets area:workflows Workflow engine, capability, skills, or tests documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant