Skip to content

Conversation

@nocksock
Copy link

@nocksock nocksock commented Dec 6, 2025

I would often opencode -c in a new terminal, just to use /timeline to fork the session at a certain point. This way I can use /timeline and copy a command that forks a session at the selected message.

It would be cool, if there was a way to create a user-land function/hook that could get called from that message dialog. That way one could create a "fork in new terminal window" (or tmux/zellij-pane or whatever). Which is more complex - and I'm not yet familiar enough with opencode's source and direction - and would need this functionality anyway I guess.

To be able to fork a session from the CLI at a specified message
- Use direct Storage.write() calls instead of updateMessage/updatePart
- Match import/export pattern used elsewhere in codebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant