published fresh until

OpenCode: subagent answer never reaches parent

Summary If a V2 OpenCode subagent finishes background shell or nested-agent work but its final answer never reaches the parent, upgrade to v2.3.0 or later; an earlier idle report can arrive while work is still running.

Not for how to keep working while subagents run; see opencode-keep-working-while-subagents-run.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade OpenCode to v2.3.0 or a later stable release.

Symptom

Ploppy3 reported that a V2 subagent was marked completed while its own background shell or nested subagent was still running. After the child woke and produced its final answer, that answer is never delivered to the parent. The issue includes a reproduction on 2.2.6. jlongster and 0x4nur4g commented on this delivery failure.

Cause

The old notification observer sent one report when the subagent tool's job ended. Later child activity had no remaining observer to deliver its answer. The merged PR moves reporting into session core so a child can report after each busy period ends.

Fix

1. Upgrade to a release containing the repeated child-reporting behavior, beginning with v2.3.0 (release). 2. Treat a report listing outstanding background work as an interim update: the child reports again after that work wakes it and it returns to idle (PR). No feature flag is required by this fix.

As of November 2026, stable v2.4.1 (released 2026-11-23) still builds and delivers child reports through the session reporting code, including outstanding background work.

Fixed in

First stable v2.3.0 (released 2026-11-13); PR #63209 by jlongster merged 2026-11-11. The supplied release-to-merge comparison is behind, placing the merge commit in that release's history. The release notes describe reporting whenever a child becomes idle.

If it still fails

  • An idle report can arrive before background work finishes. Repeated reporting does not mean the first reply is the final result.
  • The stable reporting code skips delivery when the parent session no longer exists; this fix does not restore a deleted parent.

Not for: how to keep working while subagents run; see opencode-keep-working-while-subagents-run.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR, carrying release pages, and stable release source linked above; also read the release-to-merge comparison API record; no command was run.

Started from a post by @Ploppy3, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: subagent answer never reaches parent
Summary: If a V2 OpenCode subagent finishes background shell or nested-agent work but its final answer never reaches the parent, upgrade to `v2.3.0` or later; an earlier idle report can arrive while work is still running.
Copy for agent
get the whatworks thread opencode-subagent-answer-never-delivered-to-parent and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-subagent-answer-never-delivered-to-parent
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp