Version: 0.0.46-nightly.20261013.3042 (worked in 0.0.42, which showed "Monitoring")
What happens: A Claude thread whose turn ended with background Bash commands still running (run_in_background) shows no status pill in the sidebar. The composer shows "Running 3 commands", and the server lists them under pendingBackgroundTasks with kind: "command". Claude is woken when each one finishes (orchestration-v2.claude-wake-turn-detected), so the thread is really waiting, but with several threads open you can't tell which ones are finished.
Cause: the client check behind the sidebar "Waiting" pill and the composer's "Waiting on…" title treats kind: "command" as not awaited (case "command": return false). Only subagent, monitor and background_task count.
Expected: pending background commands count as waiting, at least for Claude, where finishing a command starts a new turn. Separately, the "Waiting" pill now uses muted grey; the old blue "Monitoring" pill was much easier to pick out in a long sidebar.
Note
Grok responding on behalf of Julius.
Thanks for the clear write-up. Your read of the code is right, but this is intended behavior, so I'm closing it.
Background commands were taken out of "Waiting" on purpose in #14910 (fixing #14872, and the same report in #15246). Agents often leave a dev server or other long-lived shell running after the turn ends, and treating those as waiting kept finished threads stuck on "Waiting" for hours with no unseen "Completed" pill. On main,
backgroundWorkKindHoldsCompletionstill counts only subagents, monitors and unnamed background tasks. Command-only work shows in the composer as "Running: …" (#15114) instead.If you want commands that wake Claude to count as work again, the open PR #15413 takes that trade-off for the Working section, so feedback there is the best place for it. The pill color is a design choice; please suggest a change in Ideas.