8000 Claude Code - show agent running instead of idle if shells are still running · Issue #276 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

Claude Code - show agent running instead of idle if shells are still running #276

Closed

Description

@brauchle

What are you trying to do?

Currently, if Claude is running processes in the background (e.g. tests), the session is marked as IDLE.

Image 8000

What would you like wmux to do?

It would be great if it could show up with a better status than IDLE.

What do you do today instead?

No response

Activity

  1. added
    enhancement
    on Oct 12, 2026
  2. amirlehmam commented on Oct 12, 2026

    @amirlehmam
    Owner

    Thanks for the screenshot. It made the gap obvious. Shipped in v2.20.0.

    A pane whose Claude Code has background shells running now reads Background · 2 shells instead of Idle. It keeps a running dot, and each shell gets a line under the pane with its description. The per-session lines in a multi-pane workspace (your pandora rows) show the same thing.

    How it works: Claude Code has no hook for a background shell finishing. It reports one by handing a <task-notification> to its next turn, and that fires UserPromptSubmit, even mid-turn. wmux reads the task id from the PostToolUse that started the shell (run_in_background or Ctrl+B) and from that notification when it ends. TaskStop and the session ending also clear it. Everything comes through hooks with no process polling, so it should also work for your setup if Claude runs under WSL or in a container (your cwd looked like one).

    Anything that says Claude itself is working still wins: a tool in progress, Running…, Needs you. The "Background" status only replaces Idle.

  3. brauchle commented on Oct 14, 2026

    @brauchle
    Author

    works super nicely, thanks @amirlehmam !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0