Skip to content

Nested Subagent Fails Silently in 3-Layer Deep Chain (Works Fine in 2-Layer) #23091

Description

@xsrtyq

Description

A subagent called at depth 3 (parent → child → grandchild) fails silently without any error message. The issue does not occur at depth 2 (parent → child). The problem began appearing on 2026-04-17, while everything worked normally the previous day.

The grandchild agent receives the prompt successfully (child session window appears), enters a "thinking" phase, and then abruptly terminates without any error or output — not even a single tool call or text response.

Plugins

none

OpenCode version

v1.4.7

Steps to reproduce

1.Create a main agent that uses the task tool to call a child subagent.

2.In the child subagent's prompt, instruct it to further call a grandchild subagent via the task tool.

3.Give the grandchild subagent a simple task (e.g., "read a file and summarize").

4.Observe the behavior: the grandchild subagent starts, thinks for a few seconds, then disappears with no error.

Screenshot and/or share link

Image

Operating System

Windows11

Terminal

Windows terminal

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