Skip to content

Subagent tasks hang indefinitely in high-concurrency environment #18378

Closed as not planned

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

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 20, 2026
  2. github-actions commented on Mar 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct (specifically about high-concurrency / 20+ parallel subagents causing hangs rather than a single subagent hanging), please clarify what makes it different from the above.

  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions