Skip to content

Fix Pi plan approval continuation delivery - #805

Merged
backnotprop merged 1 commit into
backnotprop:mainfrom
xz-dev:fix/pi-plan-approve-followup
May 28, 2026
Merged

backnotprop merged 1 commit into
backnotprop:mainfrom
xz-dev:fix/pi-plan-approve-followup

Conversation

@xz-dev

@xz-dev xz-dev commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #804.

  • Queue the Pi plan approval continuation as a follow-up message.
  • Remove the unreliable setTimeout(0) workaround.
  • Align the approval continuation with existing review/annotation feedback delivery.

Why

Approved plans return terminate: true, so Pi may still consider the agent turn active when agent_end fires. Calling pi.sendUserMessage() without a delivery mode can therefore fail with Agent is already processing. deliverAs: "followUp" tells Pi to queue the continuation safely.

Testing

  • git diff --check
  • Not run: bun run typecheck (Bun is not installed in this environment: bun: command not found)

@backnotprop

Copy link
Copy Markdown
Owner

nice work, thanks

@backnotprop
backnotprop merged commit 9b545d1 into backnotprop:main May 28, 2026
12 checks passed
buihongduc132 pushed a commit to buihongduc132/plannotator that referenced this pull request Jun 3, 2026
Integrates upstream features:
- Kiro CLI integration (backnotprop#837)
- Amp plugin (backnotprop#803)
- Droid slash-command (backnotprop#787)
- Ask AI for plan/annotate reviews (backnotprop#763)
- PLANNOTATOR_DATA_DIR env var (backnotprop#795)
- Queue plan approval continuation (backnotprop#805)
- Mermaid block sizing/zoom fixes (backnotprop#819)
- Safari copy fix (backnotprop#785)
- Update notification with toast (backnotprop#838+)
- Versions 0.19.18 → 0.19.26

Preserves local fork work:
- Multi-session server parity
- SPA routing fixes
- PLANNOTATOR_SERVER_URL support
- 404 guard endpoints
- plannotator-last-message command
- Test coverage improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pi extension errors after approving a plan

2 participants