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>
This commit is contained in:
BillionToken 2026-03-25 11:54:51 +08:00 committed by GitHub
parent a0ae085531
commit 6d9c93732c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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