[BUG] Background bash tasks started with run_in_background: true in previous sessions persist indefinitely on Anthropic's servers and reappear after every /compact or new session, despite clicking "Stop" in the Background Tasks UI panel.
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?
Issue: Background bash tasks started with run_in_background: true in previous sessions persist indefinitely on Anthropic's servers and reappear after every /compact or new session, despite clicking "Stop" in the Background Tasks UI panel.
Current state: 12 tasks running for 177–268 hours (see attached screenshot). Names include: "Логи ошибок Nginx", "Search for php.exe across drives", "Create mysqldump on production server", "Find sexec.exe location", "Статус мс-джобов id>=130", and others.
What Should Happen?
Current state: 12 tasks running for 177–268 hours (see attached screenshot). Names include: "Логи ошибок Nginx", "Search for php.exe across drives", "Create mysqldump on production server", "Find sexec.exe location", "Статус мс-джобов id>=130", and others.
What was tried:
Clicked Stop on each task in the Background Tasks panel — they disappear from view but reappear after /compact
TaskList tool returns empty — background bash tasks are not accessible via the task management API
TaskStop requires a task_id that is not retrievable from within a new session
Expected behavior: Clicking Stop should permanently terminate the process on the server, not just hide it from the current session's UI.
Request: Please clear all running background tasks for this account server-side.
Error Messages/Logs
Steps to Reproduce
In any Claude Code session, call the Bash tool with run_in_background: true (e.g. a long-running monitoring command)
Note the task appears in the Background Tasks panel
Click Stop on the task in the panel
Run /compact or close and reopen the session
Observe: the task reappears in the Background Tasks panel with the original timer still running, as if Stop was never clicked
Repeat steps 3–5 — the task returns every time
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code Desktop (MSIX)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Additional context
TaskList does not enumerate background bash tasks — returns empty
TaskStop requires a task_id that is unavailable in new sessions (not carried over in context)
The tasks compound over time as Claude restarts them when compaction summaries mention unfinished work
Platform: Windows 11, Claude Code Desktop (MSIX)
Account: [ryazansky@gmail.com](mailto:ryazansky@gmail.com)