Repository navigation
feat(infinity-daemon): fork a session from a user turn (non-destructive rewind) - #144
Merged
Merged
Conversation
Deploying infinity with
|
| Latest commit: |
8eb7985
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e2165b27.infinity-dc7.pages.dev |
| Branch Preview URL: | https://pr-daemon-rewind.infinity-dc7.pages.dev |
This was referenced Oct 16, 2026
akainth015
force-pushed
the
pr/daemon-rewind
branch
from
October 16, 2026 17:02
3eae29a to
8eb7985
Compare
akainth015
force-pushed
the
pr/daemon-rewind
branch
from
October 16, 2026 17:43
8eb7985 to
377735b
Compare
akainth015
force-pushed
the
pr/daemon-rewind
branch
from
October 19, 2026 20:31
377735b to
dd406d1
Compare
Member
Author
|
Superseded by #166 — this PR was auto-marked merged by a stack reorder (its commit became reachable from its base branch). It never reached |
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.
Adds
ClientMessage::ForkSession { thread_id, user_turn, keeps_session_alive }: creates a NEW session seeded with the original root thread's history before theuser_turn-th user input. The original session is only read, never modified. Rows before the cut are copied verbatim (turn indices stay compaction-stable), and the latest compaction summary at or before the cut is carried over. The fork inherits cwd and model, and is registered last so a half-seeded fork never lists. LikeCreateSession, the requesting connection is attached to the fork and receivesConnected. Out-of-range turns returnError. Remote-forwarding stripsThreadRefs.Uses only existing store APIs: no store-trait changes, and agent-core/lambda are untouched (4 files, ~160 production lines + test).