[Bug]: Claude Code's artifact live-updates watcher is listed in the Agents panel as a working agent with a model and effort #13978
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
- In a Claude thread, have Claude publish a claude.ai artifact, or create a doc through the claude.ai Docs connector. Claude Code arms a background watcher for it (
live updates for artifact https://claude.ai/artifact/<id>, amonitor_wstask). - Open the Agents panel.
Expected behavior#
Watchers are shown as what they are, for example a "Watching artifact" row without model, effort, or a working spinner, and they are not counted as working agents. Or they are kept out of the Agents panel, as #10375 notes for other background tasks.
Actual behavior#
The Agents panel lists the watcher next to real subagents, with the session's model and effort (opus-5-5 · high), a spinner and "Working", and it adds to the "1 working" counter. It is not an agent: it runs no model, uses no tokens (— tok), and can stay armed for hours. Seeing "working for 1h 34m" in the Agents panel, I took it for a stuck subagent.
Related: #10375, where foreground Bash tasks get the subagent icon although the Agents panel excludes them.
Impact#
Minor bug or occasional failure
Version or commit#
0.0.43-nightly.20260926.2282
Environment#
Desktop app on Linux (NixOS, Wayland, niri); Claude Code 2.1.283, Opus 5.5
Logs or stack traces#
Screenshots, recordings, or supporting files#
No response
Workaround#
No response
Vantrongs(GitHub profile, opens in a new tab) added labelsbug
Vantrongs(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge removed labelsneeds-triage
juliusmarminge added labelsvia-triage
Still occurs on
0.1.1-nightly.20261020.3411(orchestrator v2). Seen from desktop (macOS) and mobile against a Linux server.Extra impact: thread stays "Waiting" and no "Thread completed" alert fires. After the turn ends, the
monitor_wswatcher (ambient: true) stays inpendingBackgroundTasksas asubagent.backgroundWorkHoldsCompletionis true, soshellRuntimeparks the thread atidle,resolveSidebarThreadStatusreturnswaiting, and the status never reachesready.ThreadNotificationCoordinatorsends no completion alert.The suggested fix is not enough for this. Adding
monitor_wsto the monitor set still holds completion, becausebackgroundWorkKindHoldsCompletionreturns true formonitor. Ambient watchers (ambient: true) must not hold completion.v2 path:
CLAUDE_OPAQUE_BACKGROUND_TASK_KINDSinapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tscontains onlylocal_bash, soisClaudeNonSubagentTaskreturns false formonitor_ws.mainstill has the same map.Evidence (one thread): 4 watcher tasks stored as subagents (
origin: provider_native): 3cancelled, 1 stillrunning. The SDK sendstask_startedagain for the sametask_idon each publish:{"type":"system","subtype":"task_started","task_id":"scg05h6s5","task_type":"monitor_ws","ambient":true,"description":"live updates for artifact https://claude.ai/artifact/<id> (auto-armed on publish)"}Repro: in a Claude thread, have Claude publish an artifact, then let the turn end. Expected: thread goes to Done and you get a "Thread completed" alert. Actual: thread stays "Waiting" and no alert fires.
Triaged with
t3 triageby Claude Code (Opus 5.5).juliusmarminge added labelsneeds more info
juliusmarminge removed labelsneeds more info
Still occurs on
0.1.4-nightly.20261027.3770(macOS desktop). Any Claude thread that published an artifact keeps showing as Working after the turn ends, because the auto-armedmonitor_wsartifact watcher stays live. #17320 (ambient tasks should not keep a thread running) looks like the fix this needs.Note
🤖 Claude Opus 5.5 responding on behalf of Renzo (RenzoDriveSolo)
Still happening on T3 Code Beta with Claude Code 2.1.311. Every Claude thread that publishes an artifact stays in the "Working" group after the turn ends, even when it is waiting for my input. With several threads open I can't see which ones need me.
Getting this fixed matters a lot to us. #17320 looks like the fix. Our workaround for now is to have Claude stop the watch (
ArtifactComments,on: false) right after publishing.Still occurs on T3 Code (Beta) 0.1.5, macOS desktop, Claude Code 2.1.318, Opus 5.5.
Extra symptom: one watcher shows up as dozens of identical rows. A thread published a single claude.ai artifact (created from a type, then filled with one publish). The task list then showed well over a dozen identical rows, all
live updates for artifact https://claude.ai/artifact/<id> (auto-armed on publish)with the same artifact and the same elapsed time.Claude Code itself reported one watcher.
ArtifactCommentsaction: "watch"(the list call) returned exactly one watch, connected and armed by the publish. Stopping it withon: falsemoved every row to "Stopped" at once. So this is onemonitor_wstask shown many times, not many watchers.This looks like the re-sent
task_startedfor the sametask_idnoted above, with each one stored and shown as its own row instead of updating the existing one. #30911 (a resumed delegated child shown once per task record) may be the same roster-dedup gap.To me it looked like a swarm of agents running without being asked, so I stopped the watch to make them go away.
Workaround: stop the watch (
ArtifactComments,on: false) right after publishing.
Sign in to join this conversation.
Triage#
Triaged against
main@de251fc. Confirmed. Not a duplicate of #10375, and not fixed on current main —0.0.43-nightly.20260926.2282is not behind a fix.What’s going on
Publishing a claude.ai artifact auto-arms a background
monitor_wstask (Claude Code’s Artifact tool; a Monitor-tool websocket watch, description likelive updates for artifact …). It is not a subagent. The Claude Agent SDK listsmonitor_wsnext tomonitor_mcpas work that must not defer the turn (test_shell_and_monitor_tasks_never_defer_the_closeintests/test_query.py). It runs no model and reports no usage.MONITOR_TASK_TYPESinpackages/contracts/src/providerRuntime.tsismonitor,monitor_mcp,local_bash, andshell.monitor_wsis missing.classifyTaskAgentKindis a denylist that treats an unknowntaskTypeas an agent, so ingestion stampsagentKind: "agent".That stamp is what every surface trusts:
foldSubagentActivitiesonly skipsagentKind !== "agent", so the watcher joins the Agents roster.task.startedmarks itrunning, which the panel labels “Working” and counts in “N working”.task_started, the Claude adapter copies the session model and effort when the launching tool has no override. That is theopus-5-5 · highchip. With notypedUsage, the row falls back to— tok.monitor_wsgoes in the agents bucket, not monitors, so the thread pill stays pulsing “Working” (with the elapsed duration) instead of the static “Monitoring” eye, and the composer banner says “1 agent working” instead of “Monitoring”.Not #10375
#10375 is the opposite mismatch: a foreground
local_bashtask is alreadybackgroundand correctly kept out of the Agents panel, but the timeline still paints a Bot icon. Here a watch-loop type the denylist does not know is shown as a real agent.Suggested fix
Add
"monitor_ws"toMONITOR_TASK_TYPESand cover it in theclassifyTaskAgentKindtests. That set is shared by the ingestion stamp, sidebar liveness, and the client fallback, so the watcher drops out of the Agents roster the same waymonitor/monitor_mcpalready do, and a thread whose only live work is that watcher reads as Monitoring. Do not add a special Agents-panel row; watch loops are kept off that surface on purpose.in_process_teammatesits besidemonitor_wsin the SDK’s “does not defer stdin” list. That only means it is not turn-deferring agent work — leave it out of the monitor set unless a separate report shows it should be background.Rows already stored with
agentKind: "agent"stay that way, and roster membership is sticky pertaskId, so a thread that already ingested the watcher keeps it until a newtask.startedis written after the fix.