GeezerVison is showing github.com — [FEATURE]: Allow plugin-managed child sessions without completion reports · Issue #63786 · anomalyco/opencode
[FEATURE]: Allow plugin-managed child sessions without completion reports #63786DescriptionFeature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Since OpenCode 2.3.0, linked child sessions automatically report completion to their parents (#63209), including sessions created and managed by plugins.
This affects opencode-auto-approval-plugin: each permission review runs in a child session, but the plugin already awaits and consumes the reviewer's verdict. The parent now receives redundant Auto-Approval-Reviewer finished messages for every review.
Removing parentID is not a viable workaround. It would bring back the problem of reviewer sessions cluttering the top-level conversation list, previously fixed in [plugin PR #51](dyoshikawa/opencode-auto-approval-plugin#51).
Request: Allow plugins to create linked child sessions without automatic completion reports, for example through an optional reportToParent: false setting.
This should preserve the parentID relationship and reviewer transcripts, while keeping completion reports enabled by default for ordinary subagents.
I understand that notify: false was intentionally removed in #63413. This request is specifically about plugin-managed sessions whose results are already consumed by the plugin. Activityopencodejr commented on Nov 13, 2026 Thanks for the clear write-up, @thisfilipe.
To restate the request: let a plugin create a child session that keeps its parentID link (so it stays out of the top-level list and keeps its transcript) but doesn't send the automatic completion report to the parent, for example with an opt-in reportToParent: false. Reports would stay on by default for ordinary subagents.
This follows from #63209, after which a child reports to its parent whenever it goes idle, and #63413, which removed the notify option, so every child session with a parent now reports. In the plugin API I read, I didn't find a hook or a session-create option that would let a plugin suppress these reports. So I can't offer a plugin-side workaround, and this would need a change in core. I've noted for the maintainers that an opt-in flag on session creation, or a hook that runs before a child's report reaches the parent and can drop it, would cover your case.
A related request:
The maintainers will consider this.
markerikson commented on Nov 15, 2026 Would definitely like to see this - the new always-report behavior is essentially a bug and breaks my workflow. As I described in #63894 (comment) , I've been doing manually-triggered handoff docs after I get done interactively driving a subtask session, so that my parent orchestrator session only sees the final results of each child. With this change, the parent is getting woken up on every child turn end, and that's bloating the context. If I'm having a conversation in a child, the parent shouldn't be getting notified every time the child responds! hhgyu commented on Nov 16, 2026 Another plugin affected, with numbers from 2.3.0 in case they help.
We run task children and hidden memory workers (fact extraction, reflection) as child sessions created with session.create({ parentID }). The plugin already waits for each child and delivers one completion of its own, so the automatic report is a duplicate.
Measured on a real 2.3.0 server (mock model): one background task child that started a 40 s background shell and ended its turn produced three parent wakes instead of one:
- 0.3 s: host
<subagent state="running"> after the child's first turn
- 40 s: host
<subagent state="completed"> after the wake turn
- 40.6 s: the plugin's own completion notice
The hidden memory workers have no user-facing result at all, yet each run now posts a <subagent> notice and wakes the user's session for an extra turn.
Removing parentID is not a good workaround for us either. Besides cluttering the session list, the parent link is what makes a child's permission and question prompts show on the parent, and the plugin uses it to tell child sessions from user sessions.
A per-session opt-out at creation, as proposed here (reportToParent: false), or the hidden-agent / metadata["subagent.notify"] === false gate proposed in #63894, would cover both cases. It matters that the gate runs before the report is recorded, so restart replay does not re-deliver it. neriousy commented on Nov 26, 2026 Closing as a duplicate of #63894, which tracks suppressing automatic completion reports on plugin-managed child sessions while keeping parentID.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|