claude-code - 💡(How to fix) Fix Native OS system notifications when Claude needs input [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#46942Fetched 2026-04-12 13:29:05
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Fix Action

Fix / Workaround

Currently the only workaround is a custom hook:

"hooks": {
  "Notification": [{
    "matcher": "",
    "hooks": [{ "type": "command", "command": "osascript -e '...'" }]
  }]
}

This works but is platform-specific and undiscoverable. A built-in toggle would make the multi-tasking workflow accessible to everyone.

Code Example

"hooks": {
  "Notification": [{
    "matcher": "",
    "hooks": [{ "type": "command", "command": "osascript -e '...'" }]
  }]
}
RAW_BUFFERClick to expand / collapse

Problem

When using Claude Code in VS Code, notifications only appear within the editor. If I'm in another app (browser, terminal, Slack), I miss that Claude is waiting for my input, which kills the async workflow efficiency.

Proposed solution

Add a first-class setting (e.g. notifications.system: true) that sends native OS notifications (macOS, Windows, Linux) when Claude needs user input — permission prompts, questions, or task completion.

Currently the only workaround is a custom hook:

"hooks": {
  "Notification": [{
    "matcher": "",
    "hooks": [{ "type": "command", "command": "osascript -e '...'" }]
  }]
}

This works but is platform-specific and undiscoverable. A built-in toggle would make the multi-tasking workflow accessible to everyone.

Environment

  • VS Code extension on macOS
  • Also relevant for terminal CLI and desktop app users

extent analysis

TL;DR

Enabling a built-in setting for native OS notifications could improve the workflow efficiency by alerting users when Claude needs input, even when they are not actively using the VS Code editor.

Guidance

  • Consider adding a first-class setting, such as notifications.system: true, to send native OS notifications when Claude requires user input.
  • Evaluate the proposed solution's feasibility and potential impact on the user experience across different platforms (macOS, Windows, Linux).
  • Assess the current custom hook workaround and its limitations, including platform specificity and discoverability issues.
  • Investigate the possibility of implementing a universal notification system that can be easily enabled or disabled by users.

Example

No code example is provided, as the issue focuses on proposing a new feature rather than fixing a specific code-related problem.

Notes

The solution's effectiveness may vary depending on the specific use case and user preferences. It is essential to consider the potential distractions or annoyances that frequent notifications could cause.

Recommendation

Apply a workaround, such as the proposed custom hook, until a built-in solution is implemented, as it provides a temporary fix for the issue, albeit with some limitations.

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