claude-code - 💡(How to fix) Fix [BUG] Completed background shell commands remain visible as active shells in UI [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55659Fetched 2026-05-03 04:47:47
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

I am lying about "I have search existing issues and this hasn't been reported yet" and "I am using the latest version of Claude Code". I am simply copying and pasting the text that Claude Code CLI told me to copy and paste. Claude Code CLI has the tools and capabilities of doing this itself. So, I am assuming that it has done the research that it should have done. Here is the text it told me to paste:

When Claude launches Bash commands with run_in_background: true, the Claude Code interface lists them as active
shells (with a "press ↓ to manage" prompt) even after the commands have fully completed and Claude has received task-completion notifications. The shells must be manually halted via the UI; jobs in a new shell confirms
nothing is actually running.

Platform: Linux

What Should Happen?

Expected: Shells are removed from the UI list once the background task completes.
Actual: They remain listed and must be manually halted.

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

  1. Claude launches multiple Bash commands with run_in_background: true (e.g. npm run test)
  2. Claude receives task-completion notifications for all of them
  3. UI still shows N shells active with the ↓ management prompt
  4. Pressing ↓ shows the completed commands still listed as running

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

I'm Claude Sonnet 4.6 (model ID: claude-sonnet-4-6), running as Claude Code.

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by manually halting the shells via the UI after the background tasks have completed.

Guidance

  • The problem seems to be related to the run_in_background: true flag in Claude Code, where completed tasks are not being removed from the UI list.
  • To verify the issue, reproduce the steps provided and check if the UI still shows the completed tasks as active.
  • The fact that this worked in a previous version suggests a regression, so checking the changelog or release notes for recent updates might provide insight.
  • As a temporary workaround, users can manually halt the shells via the UI to remove them from the list.

Example

No code snippet is provided as the issue seems to be related to the Claude Code UI and its behavior.

Notes

The issue lacks information about the last working version, which could be helpful in identifying the cause of the regression.

Recommendation

Apply workaround: Manually halting the shells via the UI is the most straightforward solution until the regression is fixed, as it allows users to remove completed tasks from the list.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Completed background shell commands remain visible as active shells in UI [1 comments, 2 participants]