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
- [[BUG] V2: subagent with pending background work (shell commands or subagents, background: true) marked completed early — results never collected](https://github.com/anomalyco/opencode/issues/48826), Ploppy3, opened 2026-09-13; closed as completed on 2026-11-11: "that answer is never delivered to the parent."
- feat(core): report subagent results to the parent every time a child goes idle, jlongster; merged 2026-11-11.
- Comment, jlongster, 2026-09-23; on the issue closed as completed on 2026-11-11.
- Comment, 0x4nur4g, 2026-09-25; on the issue closed as completed on 2026-11-11.
- v2.3.0, published 2026-11-13.
- v2.4.1, published 2026-11-23.
- Stable source at v2.4.1, read 2026-11-24.
- Release-to-merge comparison, read through GitHub API 2026-11-24; status behind.
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