#4511·herdr

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

  1. Install the current OpenCode integration with herdr integration install opencode.
  2. Start opencode --standalone --auto in a Herdr pane.
  3. 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.
  4. After PARENT_DONE, confirm OpenCode still shows the spinning background subagent and 1 subagent.
  5. Run herdr agent get <pane> and herdr agent explain <pane> --json. The pane reports idle while 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 --auto session