Repository navigation
feat(infinity-slack-bot): interrupt daemon generation on Slack stop - #143
Draft
akainth015 wants to merge 1 commit into
Draft
akainth015 wants to merge 1 commit into
akainth015 wants to merge 1 commit into
Conversation
Deploying infinity with
|
| Latest commit: |
d9f870c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8eddf305.infinity-dc7.pages.dev |
| Branch Preview URL: | https://pr-slack-stop-interrupt.infinity-dc7.pages.dev |
This was referenced Oct 16, 2026
This was referenced Oct 16, 2026
akainth015
force-pushed
the
pr/slack-stop-interrupt
branch
from
October 16, 2026 17:02
9d5b10e to
5f1fb25
Compare
akainth015
force-pushed
the
pr/daemon-interrupt
branch
from
October 16, 2026 17:43
50c035d to
c984bbd
Compare
akainth015
force-pushed
the
pr/slack-stop-interrupt
branch
2 times, most recently
from
October 19, 2026 20:31
817e5ff to
a5e3abb
Compare
akainth015
force-pushed
the
pr/daemon-interrupt
branch
from
October 19, 2026 20:31
c984bbd to
2fe43b6
Compare
Base automatically changed from
pr/daemon-interrupt
to
pr/slack-subagent-threads
October 19, 2026 20:31
akainth015
force-pushed
the
pr/slack-stop-interrupt
branch
from
October 19, 2026 23:51
a5e3abb to
bdc7579
Compare
akainth015
force-pushed
the
pr/slack-subagent-threads
branch
2 times, most recently
from
October 20, 2026 00:17
19a0968 to
2a2b13c
Compare
akainth015
force-pushed
the
pr/slack-stop-interrupt
branch
from
October 20, 2026 00:17
bdc7579 to
1f2fec3
Compare
akainth015
marked this pull request as draft
October 20, 2026 02:52
akainth015
force-pushed
the
pr/slack-stop-interrupt
branch
from
October 20, 2026 17:42
1f2fec3 to
a969704
Compare
…terrupt Adds Slack's native stop button end to end, landing together with the `ClientMessage::Interrupt` wiring so stop actually stops generation: ## Stop button (`agent_session_stopped`) * Handles the `agent_session_stopped` event: discards buffered output and in-flight task cards, never re-touches the messages Slack already finalized client-side, latches the thread so the remainder of the current response is suppressed (latch lifts on the response's final stop or the user's next message), transitions the session out of `processing`, and posts a stop confirmation. `stopped_by_user` append errors set the same latch (defense-in-depth). Requires the `agent_session_stopped` bot event subscription (manifest updated in docs). ## Interrupt wiring * A stop in the root thread interrupts the whole session; a stop inside a subagent's dedicated thread halts and interrupts just that subagent's subtree (`DaemonCommand::Interrupt` via the thread's daemon connection). Sending to an older daemon is a safe no-op (unparsable frames skipped). Docs (stop section + troubleshooting) and sim/unit tests included.
akainth015
force-pushed
the
pr/slack-stop-interrupt
branch
from
October 22, 2026 01:18
a969704 to
d9f870c
Compare
akainth015
force-pushed
the
pr/slack-subagent-threads
branch
from
October 22, 2026 01:18
2001008 to
790a43c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wires the Slack stop path to
ClientMessage::Interrupt: stop in the root thread interrupts the whole session; stop inside a subagent's dedicated thread interrupts just that subtree. No-op against older daemons.Stacked; part 4 of 6.