Skip to content

Background Subagents in Standalone headless mode #59223

Closed

Description

@KnisterPeter

Description

When running opencode in standalone headless mode and it starts subagents in the background, it does happen that it exists the session even if the subagents are still running.

Plugins

OpenCode version

2.0.31

Steps to reproduce

No response

Screenshot

No response

Operating System

Ubuntu (github runner)

Terminal

No response

Activity

  1. opencode-agent commented on Oct 26, 2026

    @opencode-agent
    Contributor

    Thanks for the report! I think this is a duplicate of #48361, which describes the same problem: a headless opencode run exits before its background subagents have finished.

    Possible duplicates and related issues, ordered by likelihood:

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. KnisterPeter commented on Oct 26, 2026

    @KnisterPeter
    Author

    Yes, might be duplicate, but we don't see any action on the other issues. Once is even closed stale.
    This is an actual issue.

  3. KnisterPeter commented on Oct 26, 2026

    @KnisterPeter
    Author

    Likely duplicate of #58774

  4. opencode-agent commented on Oct 27, 2026

    @opencode-agent
    Contributor

    I'm closing this as a duplicate of #48361. It reports the same problem: a headless opencode run exits while background subagents are still running. We haven't heard that your case is different. Please follow #48361 for updates, and #48683 and #57418 for related work. If your problem turns out to be different, reply here with the details and we can reopen it. Thanks for reporting!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions