Skip to content

feat(protocol): add batch resume for parallel interrupts#86

Merged
Christian Bromann (christian-bromann) merged 2 commits into
mainfrom
cb/add-batch-interrupt-resume
May 28, 2026
Merged

feat(protocol): add batch resume for parallel interrupts#86
Christian Bromann (christian-bromann) merged 2 commits into
mainfrom
cb/add-batch-interrupt-resume

Conversation

@christian-bromann

Copy link
Copy Markdown
Member

Summary

  • Add InputRespondOne interface for single-interrupt resume
  • Add InputRespondMany interface for batch resume of multiple interrupts
  • Rename existing params type to InputRespondEntry for clarity
  • Update CDDL spec, TypeScript types, and Python bindings

This enables clients to respond to multiple parallel interrupts (e.g., simultaneous tool authorization prompts) in a single run rather than requiring sequential responses that would fail for subsequent interrupts.

Add InputRespondOne and InputRespondMany types to support resuming
either a single interrupt or several interrupts pending at the same
checkpoint (e.g., parallel tool-authorization prompts). The batch form
is required because sequential single resumes cannot handle parallel
interrupts: the first resume starts a run, leaving remaining interrupts
with no interrupted run to respond to.
@christian-bromann Christian Bromann (christian-bromann) merged commit 8246ac0 into main May 28, 2026
4 checks passed
@christian-bromann Christian Bromann (christian-bromann) deleted the cb/add-batch-interrupt-resume branch May 28, 2026 23:03
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.

2 participants