[FEATURE] Clone / Branch a Session #1977

Closed
opened 2026-02-16 17:33:31 -05:00 by yindo · 2 comments
Owner

Originally created by @webboty on GitHub (Oct 6, 2025).

Every now and then it may make sense to approach 2 (or more) strategies to continue with a project.
It would be nice if we could have a /clone or /branch command for that, which basically copies the session, we could then continue on that session with the CTX loaded and test the approach to continue. Always having the option to go another path with the original session.

That would also make it easier to /compact sessions while having the option to keep the un-compacted session open.

I think this small command would add a ton of flexibility to workflows.

The easiest way would be to just branch a session on the latest chat / message.
Even more fancy, branch/clone using a specific chat message in the timeline, but this is probably not required (as the same may be accomplished using a normal /branch and then /undo (s) on the branched / cloned session).

Originally created by @webboty on GitHub (Oct 6, 2025). Every now and then it may make sense to approach 2 (or more) strategies to continue with a project. It would be nice if we could have a /clone or /branch command for that, which basically copies the session, we could then continue on that session with the CTX loaded and test the approach to continue. Always having the option to go another path with the original session. That would also make it easier to /compact sessions while having the option to keep the un-compacted session open. I think this small command would add a ton of flexibility to workflows. The easiest way would be to just branch a session on the latest chat / message. Even more fancy, branch/clone using a specific chat message in the timeline, but this is probably not required (as the same may be accomplished using a normal /branch and then /undo (s) on the branched / cloned session).
yindo closed this issue 2026-02-16 17:33:31 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 6, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1759: [Feature Request] Fork session - A similar request for forking/duplicating sessions to create new branches of the same conversation
  • #1020: Feature: Visual Conversation Timeline for Navigation and Branching - A comprehensive feature request for session branching with visual timeline navigation (specifically mentions branching conversations from any point)
  • #728: /fork - Discussion about a /fork function to compact and create new sessions for continuing work

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 6, 2025): This issue might be a duplicate of existing issues. Please check: - #1759: [Feature Request] Fork session - A similar request for forking/duplicating sessions to create new branches of the same conversation - #1020: Feature: Visual Conversation Timeline for Navigation and Branching - A comprehensive feature request for session branching with visual timeline navigation (specifically mentions branching conversations from any point) - #728: /fork - Discussion about a /fork function to compact and create new sessions for continuing work Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 6, 2025):

Yeah I think this will be included in the opentui version of opencode that is currently a WIP btu should be done soon. Closing as dup of: #1759

@rekram1-node commented on GitHub (Oct 6, 2025): Yeah I think this will be included in the opentui version of opencode that is currently a WIP btu should be done soon. Closing as dup of: #1759
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1977