OpenCode V2 pane reports idle while a background subagent is still running
Author: chriswigginsCreated Sep 23, 2026Updated Sep 30, 2026
Labelsbugmaintainer-neededp2macosagent-detectionintegrationstriaged
Is this a reproducible bug?
- I confirm this is a reproducible bug, not a feature request, idea, question, contribution proposal, or direction check.
- I reproduced this bug on the version and environment reported below using the exact steps provided.
Current behavior
After an OpenCode V2 parent turn launches a background subagent and returns, OpenCode continues showing the subagent's active spinner, a Background label, and 1 subagent. During that activity, herdr agent get reports the pane as idle. herdr agent explain --json reports screen_detection_skip_reason: full_lifecycle_hook_authority, so visible activity does not correct the state.
Expected behavior
The pane should remain working while a background subagent belonging to the selected OpenCode session is active, and become idle only after that work settles.
Reproduction
- Install the current OpenCode integration with
herdr integration install opencode. - Start
opencode --standalone --autoin a Herdr pane. - Submit:
Launch one general subagent in the background. In that subagent, run the shell command sleep 60 and then reply exactly CHILD_DONE. Do not wait for the subagent. As soon as the background launch is confirmed, reply exactly PARENT_DONE and stop. - After
PARENT_DONE, confirm OpenCode still shows the spinning background subagent and1 subagent. - Run
herdr agent get <pane>andherdr agent explain <pane> --json. The pane reportsidlewhile the subagent is still active.
Impact
The sidebar and herdr agent wait can treat a pane as finished while delegated work is still running, causing false completion signals and making background work unreliable to monitor.
Environment
- Herdr version: 0.9.1
- Update channel (stable or preview): stable
- Operating system: macOS 26.6.2 arm64
- Terminal: Ghostty 1.3.1
- Shell, if relevant: zsh 5.9
- Relevant config, if any: OpenCode 2.0.12; OpenCode integration v12; isolated
--standalone --autosession
Source: herdrdev/herdr