Skip to content

feat(infinity-daemon): add input-less Interrupt for in-flight generation - #142

Merged
akainth015 merged 0 commit into
pr/slack-subagent-threadsfrom
pr/daemon-interrupt
Oct 19, 2026
Merged

akainth015 merged 0 commit into
pr/slack-subagent-threadsfrom
pr/daemon-interrupt

Conversation

@akainth015

@akainth015 akainth015 commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Adds ClientMessage::Interrupt { thread_id }: cancels the in-flight completion on the target thread and its active descendants without queuing input or shutting the session down. Reuses the driver's text-interrupt machinery via a TaggedSyntheticKind::Interrupt marker; trailing unanswered tool calls get synthetic 'interrupted' results (late real results are dropped — stops multi-step loops), pending choices are dismissed, one ResponseDone per interrupted thread settles clients. Old daemons skip the unknown frame safely.

Stacked; part 3 of 6.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Deploying infinity with  Cloudflare Pages  Cloudflare Pages

Latest commit: c984bbd
Status: ✅  Deploy successful!
Preview URL: https://0ebd1bf1.infinity-dc7.pages.dev
Branch Preview URL: https://pr-daemon-interrupt.infinity-dc7.pages.dev

View logs

@akainth015

Copy link
Copy Markdown
Member Author

Superseded by #165 — this PR was auto-marked merged by a stack reorder (its commit became reachable from its base branch). It never reached main.

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