Skip to content

fix: continue interrupted agents with follow-up - #87

Merged
boadij merged 1 commit into
mainfrom
fix/agent-interrupt-follow-up
Sep 18, 2026
Merged

boadij merged 1 commit into
mainfrom
fix/agent-interrupt-follow-up

Conversation

@boadij

@boadij boadij commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Interrupt control markers were previously delivered as Pi steering messages, so the replacement instruction could be consumed by the run that had just been aborted.
  • Deliver only interrupt markers through Pi's follow-up queue; task, steer, and reply requests retain the existing steering path.
  • Extend the request-pump regression to assert follow-up delivery and native abort behavior.

Validation

  • npm test -- extension/agent-runtime.test.ts — 51 passed
  • npm run check — passed
  • git diff --check and git diff HEAD --check — passed
  • Independent read-only review — no findings
  • Live smoke — passed: the long-running tool was aborted, the Owner interrupt: replacement executed and completed in the same session and assignment, the queued stale steer did not execute, and exactly one final result was produced.

Route interrupt control markers through Pi's follow-up queue so the replacement instruction survives cancellation of the current run and executes in a fresh continuation. Keep task, steer, and reply requests on the existing steering path.

Extend the managed request pump regression to assert follow-up delivery and native abort behavior.

Validation:
- npm run check
- git diff --check
- Live interrupt smoke passed with replacement completion, preserved assignment/session identity, and no stale steer execution.
@boadij
boadij merged commit 15880be into main Sep 18, 2026
3 checks passed
@boadij
boadij deleted the fix/agent-interrupt-follow-up branch September 18, 2026 21:25
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.

1 participant