Skip to content

bug: tmux status remains on waiting 💬 after permission granted (but no user input is needed) #33

@cisaacstern

Description

@cisaacstern

workmux is amazing! Thanks so much for this tool, it's become my daily driver. For my work, it's the perfect level of abstraction over tmux + git, without getting in the way or obscuring the underlying tooling. I've found what appears to be a small bug in the Claude Code status bar integration.

The Bug

Claude of course helped me identify the issue, and can explain it better than I can:

The Bug: Missing "Permission Granted" Event

The Bug: Missing "Permission Granted" Event

Claude Code does NOT have a hook event that fires after the user responds to a permission prompt.

The flow that causes the bug:

  1. User submits prompt → UserPromptSubmit fires → status = "working" ✅
  2. Claude needs permission (e.g., to run bash) → Notification fires → status = "waiting" ✅
  3. User grants permission → ❌ No event fires → status remains "waiting"
  4. Claude continues working with "waiting" icon incorrectly displayed

The status only returns to "working" when:

  • User sends a new message (UserPromptSubmit)
  • Agent finishes (Stop → "done")

You can see evidence of this bug in the follow screenshot from my local setup, where I've granted Claude permission for some tool use, and Claude is "Billowing..." but the icon remains 💬:

Image

Recommended fix

Here's Claude's recommended fix, which would be a small addition to https://github.com/raine/workmux/blob/main/.claude-plugin/plugin.json:

Suggested Fix for the Maintainer

Add a PostToolUse hook that sets status back to "working" after any tool executes (since tool execution > implies permission was granted):

"PostToolUse": [
  {
    "hooks": [
      {
        "type": "command",
        "command": "workmux set-window-status working"
      }
    ]
  }
]

Also per Claude's suggestion, I have confirmed this fix works for me locally, by patching the above addition
into ~/.claude/plugins/cache/workmux/workmux-status/1.0.0/.claude-plugin/plugin.json, after which I see the following (intended) status of 🤖 following permission being granted for a tool use:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions