opencode support the --resume when runing as headless? similar to claude code
Activity
rekram1-node commentedon Sep 3, 2025
@sjcotto have you tried the -c flag?
rekram1-node commentedon Sep 3, 2025
ex:
opencode run "hello"opencode run "goodbye" -c^ second one will send prompt to last updated session
rekram1-node commentedon Sep 3, 2025
Oh wait looking at the --resume it has a picker doesn't it
sjcotto commentedon Sep 3, 2025
yes, so how is the command? for example
run in headless mode, obtain output and session id, then run another one passing same sessionId , not sure if those commands are documented somewhere
rekram1-node commentedon Sep 3, 2025
yeah I don't think we have a session id listing command atm that should probably exist
this makes sense
sjcotto commentedon Sep 6, 2025
rekram1-node commentedon Sep 6, 2025
Yeah 100%
I was thinking something like
opencode session listJimmyBenHur commentedon Nov 16, 2025
+1
yanmxa commentedon Jan 11, 2026
+1 Looking forward to this feature with fuzzy matching support.
raihanadf commentedon Jan 27, 2026
+1
github-actions commentedon Mar 30, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.