anomalyco / anomalyco/opencode

`opencode2 run` and `background: true` tasks may cause premature exit

Open
#48,361 1 comment 1 reaction 1 assignee View on GitHub

@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
  1. Use opencode2 run with instructions to execute a lot of work in parallel and ask it to use background: true
  2. Wait for the jobs to be parallelized
  3. Observe opencode2 run ending prematurely.
Screenshot and/or share link

No response

Operating System

MacOS 26.5.2

Terminal

iTerm + tmux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.