Skip to content

[FEATURE]: Fork from a single user message #57229

Closed

Description

@BoYanZh
  • I have verified this feature I'm about to request hasn't been suggested before.

Right now /fork only forks the whole session history from the command palette.
Each user message just has revert and copy next to it, with no way to fork from that point.
I'd like a small fork button next to revert/copy on every user message.
Clicking it should fork the session at that message and jump to the new session.
Looks like UserActions already reserves fork (packages/session-ui/src/components/message-part.tsx:178) but nothing renders it per message.

Activity

  1. opencode-agent commented on Oct 19, 2026

    @opencode-agent
    Contributor

    Thanks for the suggestion! You're asking for a Fork button next to Revert and Copy on each user message in the session timeline. Clicking it would fork the session at that message and open the new session.

    A couple of notes from looking at the current code:

    • /fork already opens a "Fork from message" picker where you choose the user message to fork from (packages/app/src/session/commands/fork-dialog.tsx). So the underlying fork-at-message behaviour exists; what's missing is a per-message shortcut.
    • There's no reserved fork action right now. SessionUserActions in packages/session-ui/src/actions.ts only has openAttachment, revert and pending, and message-part.tsx no longer exists. Wiring this up would mean adding the action there and connecting it the same way the fork dialog does.

    Maintainers will consider it. Related issues:

  2. Tarquinen commented on Oct 26, 2026

    @Tarquinen
    Member

    This was fixed by #58865. That PR merged into the beta branch, so GitHub didn't close this issue automatically. The fix will be in the next release. Closing as completed.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions