Skip to content

Fork a thread from a specific message, preserving provider session where possible #158

Closed

Description

@currentbits

What Synara does

Message-level forks with native provider forking where supported, and a source divider linking back to the original conversation (changelog 0.7.2).

Solenta today

forkThread (electron/services.js:638-697) clones the whole thread with sessionId: null: fresh session, no message boundary, provider session not carried.

Why it matters

"Branch the conversation from here, before it went wrong" is the standard recovery move. A whole-thread fork with a cold session forces re-explaining everything.

Fix direction

Fork at a message boundary, copy the transcript prefix, and resume/fork the provider session where the CLI supports it (claude has session resume; others fall back to a seeded fresh session).

Activity

  1. added
    enhancement
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Research note (Codex 0.146): ephemeral forks — fork a thread to try something without the fork polluting the thread list. A 'scratch fork' state (ephemeral by default, promote to keep) fits the checkpoint model.

  3. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 22 intel: Claude Code's /fork now makes the copied session's code changes in a worktree of its own instead of the original session's checkout. Obvious in retrospect, but it resolves the ambiguous case this issue has to decide: when the fork preserves the provider session (continuing the same conversation lineage), the filesystem lineage must still diverge, or the fork and the original silently fight over the same working tree. Fork = shared conversation history + separate worktree, always.

  4. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 23 intel: the market has now shipped both fork-placement answers, so Solenta should pick deliberately. Devin Desktop: duplicate/fork opens in a new tab, original stays put. Factory Droid v0.196.0: fork keeps you in the original session and prints a resume command for the copy. Recommendation: stay-in-place (Droid's choice) as default, because the common fork motivation is "let me try a different direction" and the user wants to keep reading the original while the fork runs; opening the fork in a new tab yanks focus to the unproven branch. Whichever is chosen, the fork gets its own worktree (see earlier Claude Code comment).

  5. added
    plan:doing
    and removed
    plan:todo
    on Oct 10, 2026
  6. added a commit that references this issue on Oct 10, 2026
  7. added 2 commits that reference this issue on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:doing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions