[BUG] Desktop task panel: subagent resumed via SendMessage has no Running card — original card stays Completed while the execution runs

Status Fixed / completed
Reported on v2.1.210
Maintainer reply None cached
Activity 3 comments · opened Jul 16, 2026 · closed Jul 17, 2026

What's Wrong?

In the Claude Desktop (macOS) task panel, a subagent that is resumed via SendMessage (addressed to its agentId after its original run finished) gets no representation at all while the resumed execution runs:

  • The original card stays in the Finished section as Agent · Completed (truthful for execution #1).
  • No new Running card is created for the resumed execution, and the old card is not flipped back to Running.
  • Meanwhile the harness tracks the resumed execution correctly as a live task — TaskOutput on the same ID reports status: running.

Net effect: a long, token-heavy live execution (~200k tokens in our case) is completely invisible in the panel until its completion notification arrives, orphaned from any card. The operator watching the panel reasonably concludes the agent is done.

Steps to Reproduce

  1. In Claude Code inside the Claude Desktop macOS app, spawn a subagent with the Agent tool and let it complete. Its card appears under Finished (Agent · Completed).
  2. Have the main session call SendMessage with to: <that agent's agentId> and a follow-up message. The tool result confirms a new live execution:

``
Agent "ab2ecf4c713a72310" had no active task; resumed from transcript in the
background with your message. You'll be notified when it finishes.
``

  1. While it runs, check harness state:

``
TaskOutput(task_id: "ab2ecf4c713a72310", block: false)
→ task_type: local_agent, status: running
``

  1. Look at the Desktop task panel: the original card still reads Completed in Finished; there is no Running entry for the resumed execution anywhere in the panel.

Evidence (session of 2026-07-16)

  • Execution #1: Draft plan: land-failure-recovery — Agent · Completed · 8m 56s · 171.8k tokens · 25 tool uses (Finished card, correct).
  • SendMessage resume at ~22:34 UTC → result quoted above (new background execution under the same agentId).
  • TaskOutput polled minutes later → status: running, task_type: local_agent (harness state correct while the panel showed nothing running).
  • Screenshot of the Finished card while the resumed execution was live is available on request.

What Should Happen?

Either representation works; having neither is the bug:

  • flip the existing card back to Running (if cards are keyed on agent identity), or
  • mint a new Running card for the resumed execution (if cards are keyed on executions).

A task the harness reports as running should be visible somewhere in the panel.

Environment

  • Claude Desktop, macOS (Darwin 25.5.0)
  • claude --version → 2.1.210 (Claude Code); the session process stamps transcript entries version: 2.1.209, entrypoint: claude-desktop
  • Task type: local_agent (Agent tool subagent, resumed via SendMessage)

Related issues

  • #76271 — Desktop workflow panel: per-agent tokens/tools/time stay empty during long parallel runs (progress-only batches omit workflowProgress). Same family: the desktop panel's event bridge missing live-state transitions; this report is the subagent-resume variant.
  • #78224 — [FEATURE] Pause-and-resume background subagents on recoverable failures — adjacent feature area; if that ships, resumed executions will be more common and this invisibility more painful.
  • #78135 — Session/agent transcripts intermittently unresolvable, breaking background-agent resume — adjacent resume plumbing (different failure: resume fails; here resume succeeds but is invisible).
  • #78215 — Workflow tool: resumeFromRunId never hits the journal cache — adjacent resume-surface issue on the workflow side.

Dup-check caveat

GitHub's issue full-text search API was returning 503 for every query when this was filed, so duplicate-checking was limited to grepping the newest ~300 open issue titles (no match). Apologies if this duplicates an older report the title grep missed.

View original on GitHub ↗

3 Comments

SQPferrer · 3 months ago

Correction/refinement from continued observation of the same session — the resumed execution is not fully invisible as originally reported; the behavior is sharper and arguably worse:

The resumed execution reuses the original card and live-updates its metrics with every tool use, while the status stays Completed. Observed sequence on the same card:

| when | card read |
|---|---|
| execution #1 finishes | Completed · 8m 56s · 171.8k tokens · 25 tool uses |
| mid-resume (execution #2) | Completed · 3m 51s · 228.8k tokens · 7 tool uses |
| ~2 min later | Completed · 5m 55s · 231.9k tokens · 8 tool uses |

  • Duration and tool-use count reset at resume and tick per tool use — execution-scoped counters that overwrite execution #1's record (its 8m 56s / 25 tool uses stats are lost from the panel).
  • The token figure grew across the resume boundary (171.8k → 228.8k → 231.9k); ambiguous whether it is cumulative across executions or execution-#2-scoped (the resumed run's cache-heavy iterations make either reading plausible).
  • TaskOutput on the same task ID reports status: running throughout.

So the panel demonstrably receives the resumed run's metric events on the same card but never applies a running lifecycle transition — yielding a Completed card with live-ticking numbers. That narrows the likely fix surface: the resume path emits usage/progress updates to the task record but no status transition (or the panel drops it), and the metric overwrite discards the prior execution's stats.

Ljferrer · 3 months ago
  1. <img width="450" height="209" alt="Image" src="https://github.com/user-attachments/assets/d038fd56-86c1-40d0-a1c9-f805fc30bc4e" /> Subagent initially completed
  2. <img width="448" height="342" alt="Image" src="https://github.com/user-attachments/assets/9decdcb2-444c-4a5c-b74f-34355044de3d" /> Resumed subagent still in "Finished" (not "Running") and says "completed", but time and tool-use counts reset
  3. <img width="453" height="333" alt="Image" src="https://github.com/user-attachments/assets/c83c6aff-e075-4241-9f28-f21b4131e9fc" /> Resumed subagent updates on new tool use
  4. <img width="429" height="80" alt="Image" src="https://github.com/user-attachments/assets/73f79484-b68e-4b18-9145-11e9a33bc59e" /> Final state
github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.