You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Start and continue a session with opencode run -s (modify flag behavior) #3434
No this is trivial. If the session exists, resume it. If the session does not exist, create it and run it. This is how it should be from an UX/UI viewpoint. It makes users feel safe, comfortable and empowered. It's efficient.
I can't find the session ID's at all so I don't know how to manipulate them yet. Is there a folder full of session ID's? Surely we don't have to go into TUI to get the session ID's, right?
In addition to the example given in the description, I would like to have this feature so that a meaningful title can be provided when creating the session.
My current flow invokes multiple Agent skills as part of a single session, but the name is based on the first skill (which is very vague). It would help if i can configure the session id name, so that when going through sessions, i can easily be able to identify by some metadata added to the session name
Trying to switch from Github Copilot CLI to OpenCode. The former uses uuid as session id, and allow using a non-existed uuid to start, so I make an alias that generates a uuid with the project path as session id parameter, so whenever I start a CLI at a particular project root, it always use the same session id.
Other than this session resume feature, OpenCode is way better overall. Really wish Opencode has an equivalent way to resume session.
+1. Session name appears in the tab title as well. So a name given by the user better identifies the tab among many tabs. As well as in the "view/resume session" list.
Activity
rekram1-node commentedon Oct 25, 2025
The --session is meant to continue a given session, with this behavior it would be harder to detect if the session you passed even exists wouldnt it?
As in there is some tradeoff of not erroring
621625 commentedon Oct 26, 2025
No this is trivial. If the session exists, resume it. If the session does not exist, create it and run it. This is how it should be from an UX/UI viewpoint. It makes users feel safe, comfortable and empowered. It's efficient.
I can't find the session ID's at all so I don't know how to manipulate them yet. Is there a folder full of session ID's? Surely we don't have to go into TUI to get the session ID's, right?
rekram1-node commentedon Oct 26, 2025
we only really surface them via the
opencode exportcommandtomjose92 commentedon Feb 25, 2026
In addition to the example given in the description, I would like to have this feature so that a meaningful title can be provided when creating the session.
My current flow invokes multiple Agent skills as part of a single session, but the name is based on the first skill (which is very vague). It would help if i can configure the session id name, so that when going through sessions, i can easily be able to identify by some metadata added to the session name
mingfai commentedon Mar 9, 2026
Trying to switch from Github Copilot CLI to OpenCode. The former uses uuid as session id, and allow using a non-existed uuid to start, so I make an alias that generates a uuid with the project path as session id parameter, so whenever I start a CLI at a particular project root, it always use the same session id.
Other than this session resume feature, OpenCode is way better overall. Really wish Opencode has an equivalent way to resume session.
LucasArthur94 commentedon May 8, 2026
+1 for this! This is the only blocker today to use the OpenCode in my workflow, even with a better execution in comparison to other harness tools :/.
maliayas commentedon Jun 13, 2026
+1. Session name appears in the tab title as well. So a name given by the user better identifies the tab among many tabs. As well as in the "view/resume session" list.
github-actions commentedon Aug 13, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
Hi-Angel commentedon Oct 29, 2026
Folks, last comment asked to re-create the issue, done here, pls resubscribe.