Skip to content

bug(web): make Plan Ready handoff actionable - #634

Merged
tt-a1i merged 8 commits into
openpi-dev:mainfrom
Zhong-fan:fix/web-plan-ready-handoff-470
Sep 29, 2026
Merged

tt-a1i merged 8 commits into
openpi-dev:mainfrom
Zhong-fan:fix/web-plan-ready-handoff-470

Conversation

@Zhong-fan

Copy link
Copy Markdown
Contributor

Problem

In Web Plan Mode, /plan, /plan implement, and /plan fresh could be reported as handled while the plan stayed ready, the browser gave no actionable feedback, and the tool gate remained closed. This blocked the issue's “review the plan, then explicitly choose implementation” flow.

Value

Users can continue from Plan Ready through an explicit, reviewable implementation handoff, and unsupported actions explain how to recover instead of silently consuming the command.

Approach

  • Add a same-session editable implementation handoff. The tool gate opens only after Pi accepts the user's explicit submission.
  • Keep approvals scoped to the relevant session, plan revision, and prompt; cancellation, refresh, and session changes do not approve or unlock another session.
  • Show clear feedback for unsupported /plan fresh and for /plan off, while preserving the plan when fresh-session handoff is unavailable.
  • Add issue-focused runtime, store, host, and provider E2E coverage, a dedicated Plan provider test config/CI step, and durable behavior documentation.

Validation

  • Plan control/runtime/Web host Node tests: 100/100 passed.
  • Plan-filtered Web UI/store Vitest: 8 passed (169 unrelated tests skipped).
  • Dedicated Plan provider Playwright E2E: 5/5 passed.
  • node scripts/check-docs-contract.mjs: passed.
  • bun run check and bun run test were not run because Bun is unavailable in this environment.

Impact

Limited to the Plan Ready handoff, its user-visible command outcomes, and the tests/docs/CI needed to verify this issue. No implementation starts before explicit user submission.

Closes #470

@Zhong-fan
Zhong-fan requested review from a team and tt-a1i as code owners September 29, 2026 04:44
@github-actions github-actions Bot added documentation Improvements or additions to documentation area:github GitHub workflows, templates, ownership, or tests labels Sep 29, 2026

@tt-a1i tt-a1i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed exact head 19d1b9d against main ad68e44. The Plan Ready handoff keeps the tool gate closed through preview, binds authorization to the active Session and Plan revision, and opens only after Pi accepts the explicitly submitted prompt. The runtime cancels transient approval on rejection and Session changes. Source tests cover the preflight and Web store boundaries; the dedicated real Chromium provider run passed all 5 scenarios, including blocked writes before approval and an allowed write after submit. The branch is mergeable and all checks passed at this head. Main has advanced since; final merge remains conditional on rebase/update and exact-head CI.

@tt-a1i tt-a1i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Rechecked exact head 0029688 against current main cabaf4f. The branch update leaves the 23-file Plan Ready handoff diff unchanged, and the merge tree is clean. The source review and dedicated Chromium provider acceptance from the previous review still apply. Merge is conditional on all checks passing for this exact head.

@tt-a1i
tt-a1i merged commit 1c4d331 into openpi-dev:main Sep 29, 2026
6 checks passed
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 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(web): Plan Ready 后实施命令被静默处理,工具门仍关闭

2 participants