Skip to content

Subagent tasks hang indefinitely in high-concurrency environment #18378

@huyusong10

Description

@huyusong10

Description

When spawning multiple subagents simultaneously via the task tool in a high-concurrency environment, some subagents occasionally appear to be running (parent shows spinner) but are actually crashed or cancelled. This causes parent agents to wait indefinitely without receiving any error notification.

Visual Evidence

Parent agent shows task as "running" with active spinner animation, but subagent session is actually stuck/crashed with no further output.

Plugins

opencode-worktree@latest; pencode-notifier@latest;

OpenCode version

1.2.27

Steps to reproduce

  1. Create a main agent that spawns 20+ subagents concurrently using the task tool
  2. Wait for subagents to complete
  3. Observe that some subagents hang indefinitely

Screenshot and/or share link

Image Image

Operating System

macos 26.3.1

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions