Skip to content

Fix notifications not firing for PermissionRequest waiting states#52

Merged
kosinal merged 1 commit intomasterfrom
feature/51-fix-waiting-notification
Mar 6, 2026
Merged

Fix notifications not firing for PermissionRequest waiting states#52
kosinal merged 1 commit intomasterfrom
feature/51-fix-waiting-notification

Conversation

@kosinal
Copy link
Copy Markdown
Owner

@kosinal kosinal commented Mar 6, 2026

Summary

  • Removed the NOTIFY_TOOLS allowlist from the dashboard's browser notification logic that was preventing notifications for PermissionRequest events
  • The allowlist only included ExitPlanMode, AskUserQuestion, Write, Edit, NotebookEdit — so permission prompts for tools like Bash never triggered browser notifications despite correctly showing "waiting" status
  • The server-side state machine already correctly determines when user input is needed, making the client-side filter redundant and incomplete

Test plan

  • All 109 existing tests pass
  • Updated test to verify NOTIFY_TOOLS is removed and notification fires for all waiting transitions
  • Manual: enable notifications, run Claude Code in plan mode, verify browser notification fires for Bash permission requests

Fixes #51

🤖 Generated with Claude Code

The NOTIFY_TOOLS whitelist in checkAndNotify only included interactive
tools (ExitPlanMode, AskUserQuestion, Write, Edit, NotebookEdit), so
PermissionRequest events for tools like Bash never triggered browser
notifications despite correctly showing "waiting" status. Removed the
NOTIFY_TOOLS filter since the state machine already correctly determines
when user input is needed.

Fixes #51
@kosinal kosinal merged commit eb41ddf into master Mar 6, 2026
6 checks passed
@kosinal kosinal deleted the feature/51-fix-waiting-notification branch March 6, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Waiting state does not fire notification

1 participant