Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature Request / Proposal: fork session from message via CLI + copy command message dialog#5172

Closed
nocksock wants to merge 3 commits intoanomalyco:devanomalyco/opencode:devfrom
nocksock:feat/session-fork-commandnocksock/opencode:feat/session-fork-commandCopy head branch name to clipboard
Closed

Feature Request / Proposal: fork session from message via CLI + copy command message dialog#5172
nocksock wants to merge 3 commits intoanomalyco:devanomalyco/opencode:devfrom
nocksock:feat/session-fork-commandnocksock/opencode:feat/session-fork-commandCopy head branch name to clipboard

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
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions bot closed this Feb 8, 2026
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

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.