Skip to content

headless mode --resume #2404

Closed
Closed

Description

@sjcotto

opencode support the --resume when runing as headless? similar to claude code

Activity

  1. rekram1-node commented on Sep 3, 2025

    @rekram1-node
    Collaborator

    @sjcotto have you tried the -c flag?

  2. rekram1-node commented on Sep 3, 2025

    @rekram1-node
    Collaborator

    ex:

    opencode run "hello"

    opencode run "goodbye" -c

    ^ second one will send prompt to last updated session

  3. rekram1-node commented on Sep 3, 2025

    @rekram1-node
    Collaborator

    Oh wait looking at the --resume it has a picker doesn't it

  4. sjcotto commented on Sep 3, 2025

    @sjcotto
    Author

    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

  5. rekram1-node commented on Sep 3, 2025

    @rekram1-node
    Collaborator

    yeah I don't think we have a session id listing command atm that should probably exist

    this makes sense

  6. sjcotto commented on Sep 6, 2025

    @sjcotto
    Author
  7. rekram1-node commented on Sep 6, 2025

    @rekram1-node
    Collaborator

    Yeah 100%

    I was thinking something like opencode session list

  8. JimmyBenHur commented on Nov 16, 2025

    @JimmyBenHur

    +1

  9. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Nov 16, 2025
  10. yanmxa commented on Jan 11, 2026

    @yanmxa

    +1 Looking forward to this feature with fuzzy matching support.

  11. raihanadf commented on Jan 27, 2026

    @raihanadf

    +1

  12. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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