Skip to content

[FEATURE]: Add cli flag to fork session #11137

@moonray

Description

@moonray

Feature hasn't been suggested before.

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

Describe the enhancement you want to request

I know there is a fork ability in ui, but it would be great if we could fork using a cli flag for better automation and tooling.

Claude uses the following:

  --fork-session                                    When resuming, create a new session ID instead of reusing the original (use with --resume or --continue)

e.g.

opencode --continue --fork-session

or

opencode --session [session_id] --fork-session

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions