anomalyco / anomalyco/opencode
`opencode2 run` and `background: true` tasks may cause premature exit
Open
@kitlangton is already working on this.
Since Sep 10, 2026.
2.0
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I have a script that uses opencode2 run in which I am trying to achieve parallelization. The model decided to use background: true for the subagents/tasks.
When that happened, it correctly dispatched all the subagents, but opencode2 run terminated prematurely.
Plugins
None
OpenCode version
v0.0.0-beta-19425
Steps to reproduce
- Use
opencode2 runwith instructions to execute a lot of work in parallel and ask it to usebackground: true - Wait for the jobs to be parallelized
- Observe
opencode2 runending prematurely.
Screenshot and/or share link
No response
Operating System
MacOS 26.5.2
Terminal
iTerm + tmux
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.