feat: Global hooks approval modal with plan/question/permission modes
- Add PermissionRequest and Stop approval hooks to local Claude config - Unify PermissionApproval into multi-mode card (permission, plan, question) - Support allowAlways, deny-with-reason, and AskUserQuestion answering - Add cross-process broadcast fallback (HTTP to sync server) - Fix approval scripts to default to .claude/debug/ for local agent
This commit is contained in:
@@ -151,6 +151,16 @@
|
||||
"timeout": 5000
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": ".*",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/approval-permission.ps1",
|
||||
"timeout": 130000
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Notification": [
|
||||
@@ -174,6 +184,15 @@
|
||||
"timeout": 10000
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "powershell -NoProfile -File hooks/approval-plan.ps1",
|
||||
"timeout": 130000
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user