Repository navigation
Description
pi install npm:@tt-a1i/[email protected] followed by /web fails with Cannot find module '@earendil-works/pi-ai/providers/all' when the Pi host is installed separately. The same failure was reproduced with Pi 0.99.1 and 1.2.0. Both versions contain the module; the standalone Web loader forwards only the host SDK alias, while native Pi package installation intentionally omits peers.
The fix should resolve the direct provider import from the selected official Pi host and exercise a packed installation outside the checkout with no local Pi peers. Pi 1.2.0 compatibility also requires handling custom-message before_agent_start events without a user prompt, consuming native aborted settlement evidence, and preserving the new terminal fake-cursor markers. The development/CI baseline should move to Pi 1.2.0 without raising the existing minimum merely to solve module lookup.
Acceptance: repository check and full tests pass on the new baseline; the managed packed Web process starts under Pi 1.2.0; cancellation and custom runs are covered through real native Sessions; stripping the fixes reproduces their regressions. A compatibility record will be kept at docs/research/PI_1_2_COMPATIBILITY_2026-10-13.md.
Implemented directly in PR #711, commit f6284671, on its freshly fetched cfc5537a head. PR #766 is closed; the compatibility fix is consolidated into #711. The browser acceptance also identified Pi 1.2.0's earlier busy state: Plan implementation admission now consumes only an approval already matched to its exact user prompt and revision, while ordinary busy Plan mutations remain blocked.
Local validation: bun run check passed; bun run test passed with 2494 Node tests, 9 skips, and 1421 UI tests. The native-provider browser suite passed 17 scenarios, then all 5 Plan scenarios passed after correcting admission and an early request-count assertion. The final packed artifact starts and stops under separate Pi 1.2.0 and 0.99.1 hosts without local Pi peers. Real Pi 1.2.0 TUI /web and HTTP assets were checked. Five targeted ablations reproduce the addressed regressions.
Compatibility record and evidence boundary. No npm release or live-service deployment is included.
Integration at 4dc8486c includes #711's newer cfc5537a commit, preserving both documentation index entries. Revalidation passed: full check, 2499 Node tests (9 skips), 1421 UI tests and all 18 native-provider browser scenarios in one run. A newly packed integrated artifact again starts and stops successfully under Pi 1.2.0 and 0.99.1 without local Pi peers. CI completed successfully on this exact integration commit: all 18 PR checks are green, including Windows, and the PR is mergeable.
After consolidation, f6284671 has the same code, tests, dependency lock and CI configuration as that validated tree; only the research record points to the final PR and updated evidence. The documentation contract passed. The new #711 CI run passed all 18 checks at exact head f6284671; #711 is mergeable and #766 remains closed without merging.
Activity
627150795 commentedon Oct 13, 2026
我来处理这个 Issue。范围限定为独立安装时从所选 Pi host 解析 provider、Pi 1.2.0 的 custom-message/cancellation settlement 与 terminal fake-cursor marker 兼容,以及对应的回归测试和 CI 基线;保留现有最低 Pi 版本,不扩展到其他 Web 功能或偏好写入。先基于最新 upstream/main 复现并核对上游贡献规则,再按复现结果做最小修复。