-
Notifications
You must be signed in to change notification settings - Fork 77
Description
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:
- User submits prompt →
UserPromptSubmitfires → status = "working" ✅- Claude needs permission (e.g., to run bash) →
Notificationfires → status = "waiting" ✅- User grants permission → ❌ No event fires → status remains "waiting"
- 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 💬:
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
PostToolUsehook 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:
