opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[Feature Request] Fork session

Open d3vr opened this issue 4 months ago • 2 comments

Add ability to "fork" a session, basically duplicating current state of the session to a new session

d3vr avatar Aug 09 '25 14:08 d3vr

I would propose 'clone' rather than 'fork' for this but perhaps it's best not to use git-like terms (fork, clone, branch) since there's no git integration going along with it. 'copy' might be a good alternative.

Even something simple like opening the session manager and copying an existing session with a new name would be super useful. Please do let me know if there's a way to handle this now.

xpufx avatar Sep 19 '25 12:09 xpufx

Long since resolved, not certain exactly when.

ariane-emory avatar Dec 16 '25 00:12 ariane-emory

Seems like the command is /fork and you (@ariane-emory) are the contributor. Thanks for that. There's no documentation yet on the main site as far as I can see except for an entry in the API section.

xpufx avatar Dec 16 '25 08:12 xpufx

@xpufx I am not sure who originally contributed the existing fork feature, it wasn't me but I do appreciate their work. Just noticed this Issue 'cause the Github bot linked it at me on my PR for a new /fork command so I thought I'd point out that this issue was already resolved.

ariane-emory avatar Dec 16 '25 11:12 ariane-emory

ariane is gonna expose it under /fork and ill add to docs

Right now you can click messages -> fork

rekram1-node avatar Dec 16 '25 12:12 rekram1-node