fix: add spawnSync error logging and restore 5s timeout

- Check spawnSync result and log warning on failure via stderr
- Restore osascript timeout to 5000ms, increase hook deadline to 10s
  for sufficient headroom
This commit is contained in:
Jonghyeok Park
2026-03-24 10:55:15 +09:00
parent d3699f9010
commit f6b10481f3
2 changed files with 5 additions and 2 deletions

View File

@@ -297,7 +297,7 @@
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"stop:desktop-notify\" \"scripts/hooks/desktop-notify.js\" \"standard,strict\"",
"async": true,
"timeout": 5
"timeout": 10
}
],
"description": "Send macOS desktop notification with task summary when Claude responds"