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
Background Subagents in Standalone headless mode #59223
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.
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:
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!
Activity
opencode-agent commentedon Oct 26, 2026
Thanks for the report! I think this is a duplicate of #48361, which describes the same problem: a headless
opencode runexits before its background subagents have finished.Possible duplicates and related issues, ordered by likelihood:
opencode2 runandbackground: truetasks may cause premature exit #48361:opencode2 runwithbackground: truesubagents exits before they finish. Same symptom.runexits before plugin-backgrounded work completes; plugins cannot detect a headless client on the shared service #48683: a one-shotrun(including--standalone) exits before work moved to the background has finished, so that work is dropped from the output. Same lifecycle problem, there triggered by a plugin.The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.
KnisterPeter commentedon Oct 26, 2026
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.
KnisterPeter commentedon Oct 26, 2026
Likely duplicate of #58774
opencode-agent commentedon Oct 27, 2026
I'm closing this as a duplicate of #48361. It reports the same problem: a headless
opencode runexits 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!