From 6d9c93732c7b5160771ef0ef17326aacd101519f Mon Sep 17 00:00:00 2001 From: BillionToken Date: Wed, 25 Mar 2026 11:54:51 +0800 Subject: [PATCH] docs: remove outdated Claude Code hooks section from notifications (#2053) The Claude Code hooks section referenced pre-0.60 configuration using matchers (idle_prompt, permission_prompt) that are no longer valid in current Claude Code versions. Replace with a link to the official Claude Code documentation. Fixes #2009 Co-authored-by: BillionClaw <267901332+BillionClaw@users.noreply.github.com> --- docs/notifications.md | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/docs/notifications.md b/docs/notifications.md index 42bb5903..d6926d36 100644 --- a/docs/notifications.md +++ b/docs/notifications.md @@ -54,36 +54,9 @@ cmux notify --title "Done" --tab 0 --panel 1 ## Integration Examples -### Claude Code Hooks +### Claude Code -Add to `~/.claude/settings.json`: - -```json -{ - "hooks": { - "Notification": [ - { - "matcher": "idle_prompt", - "hooks": [ - { - "type": "command", - "command": "command -v cmux &>/dev/null && cmux notify --title 'Claude Code' --body 'Waiting for input' || osascript -e 'display notification \"Waiting for input\" with title \"Claude Code\"'" - } - ] - }, - { - "matcher": "permission_prompt", - "hooks": [ - { - "type": "command", - "command": "command -v cmux &>/dev/null && cmux notify --title 'Claude Code' --subtitle 'Permission' --body 'Approval needed' || osascript -e 'display notification \"Approval needed\" with title \"Claude Code\"'" - } - ] - } - ] - } -} -``` +See the [Claude Code documentation](https://docs.anthropic.com/en/docs/claude-code) for hook configuration. ### OpenAI Codex