Repository navigation
feat(infinity-slack-bot): "Fork from here" message shortcut - #145
Closed
akainth015 wants to merge 1 commit into
Closed
akainth015 wants to merge 1 commit into
akainth015 wants to merge 1 commit into
Conversation
Deploying infinity with
|
| Latest commit: |
bc873ca
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://808c00ff.infinity-dc7.pages.dev |
| Branch Preview URL: | https://pr-slack-rewind-shortcut.infinity-dc7.pages.dev |
This was referenced Oct 16, 2026
akainth015
force-pushed
the
pr/slack-rewind-shortcut
branch
from
October 16, 2026 17:02
6339ac9 to
9b86ea8
Compare
akainth015
force-pushed
the
pr/slack-rewind-shortcut
branch
from
October 16, 2026 17:43
9b86ea8 to
4324e18
Compare
akainth015
force-pushed
the
pr/daemon-rewind
branch
2 times, most recently
from
October 19, 2026 20:31
377735b to
dd406d1
Compare
akainth015
force-pushed
the
pr/slack-rewind-shortcut
branch
from
October 19, 2026 20:31
4324e18 to
a3da634
Compare
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-rewind-shortcut
branch
from
October 19, 2026 23:51
a3da634 to
50e6d6d
Compare
akainth015
force-pushed
the
pr/slack-stop-interrupt
branch
from
October 20, 2026 00:17
bdc7579 to
1f2fec3
Compare
akainth015
force-pushed
the
pr/slack-rewind-shortcut
branch
from
October 20, 2026 00:17
50e6d6d to
dffe1eb
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
akainth015
force-pushed
the
pr/slack-rewind-shortcut
branch
from
October 20, 2026 17:42
dffe1eb to
70474b2
Compare
Adds a message shortcut (callback id `rewind_to_here`, named "Fork from
here") that forks the conversation from the selected user turn into a NEW
session in a NEW Slack thread, with a modal pre-filled with that turn's text
for edit-and-resubmit. Non-destructive: the original thread and its session
are left untouched and keep working.
* The bot maps the clicked message to a turn index by counting human
messages in `conversations.replies`; bot messages map to the nearest
preceding human turn.
* On submit the I/O layer posts a top-level anchor ("⏪ Forked from <link>",
quoting the edited turn) plus a cross-link in the original thread, then
feeds a fork-ready event keyed on the anchor back into the dataflow, which
starts the fork like any new thread: `DaemonCommand::ForkSession` →
`ClientMessage::ForkSession` on a fresh connection, whose `Connected` maps
the new thread to the forked session and sends the edited turn.
* Subagent threads and sessionless threads are rejected with an ephemeral
error.
Requires adding the message shortcut to the Slack app (manifest updated in
docs; manifests replace, don't merge).
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-rewind-shortcut
branch
from
October 22, 2026 01:18
70474b2 to
bc873ca
Compare
Member
Author
|
Closing: the Slack bot now lives in hydro-project/infinity-slack. The "Fork from here" shortcut will be reopened there once #166 lands. |
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.
Message shortcut (callback_id kept as
rewind_to_herefor manifest compatibility): opens a modal prefilled with the clicked turn's text; on submit the bot posts a new top-level thread ("⏪ Forked from ") plus a cross-link in the original thread, forks the session viaForkSession, and sends the edited turn as the fork's first input. The original thread and session are untouched.