[BUG] Remote-control sessions: completed background tasks remain as "running" badges and accumulate

Open 💬 0 comments Opened Jul 7, 2026 by 11shinho11-hub

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Title: Remote-control web UI: completed background tasks stay shown as "running" and accumulate (ghost task badges)

Environment

Claude Code CLI 2.1.202, Linux 6.17 (arm64, DGX Spark)

Long-running session in tmux, started with claude --resume <session-id> --remote-control --name cc

Accessed via claude.ai web and mobile app

What Should Happen?

Describe the bug
The web/mobile UI for a remote-control session shows an ever-growing count of "실행 중인 작업" (running tasks) — currently 14+ — even though all background tasks (Workflow runs, background agents) completed long ago.

Error Messages/Logs

Evidence it is server-side UI state, not local:





Inside the session, TaskList returns "No tasks found" (backend has zero running tasks).



Manually deleting the badges in the UI works, but the count re-accumulates as new tool calls / background tasks complete.



Fully killing and restarting the CLI process (kill <pid> then claude --resume <id> --remote-control) does not clear the badges — they persist across process restarts, so the stale state appears to live on the claude.ai side.

Steps to Reproduce

Steps to reproduce

Start a remote-control session (claude --resume <id> --remote-control).

Run several background tasks (Workflow tool, background agents) to completion.

Observe web UI: tasks remain listed as running indefinitely and accumulate over days.

Expected: badges clear when the underlying task completes (or at least when the process restarts).
Actual: badges persist and accumulate; only manual per-badge deletion removes them, temporarily.

Impact: cosmetic but confusing — users cannot tell whether real work is still running, and may take risky recovery actions (e.g., deleting server-stored sessions) trying to clear them.

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.202 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗