permissions hook helper
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove passthrough notification, can't distinguish prompt from auto-allow

-9
-9
chook.mjs
··· 414 414 process.exit(0); 415 415 } 416 416 417 - // Passthrough — Claude is waiting for user approval, send notification 418 417 audit(config.audit, input, "passthrough", null); 419 - const detail = toolInput.command || toolInput.file_path || toolInput.notebook_path || toolName; 420 - const short = detail.length > 80 ? detail.slice(0, 77) + "..." : detail; 421 - try { 422 - execFileSync("osascript", [ 423 - "-e", 424 - `display notification "${short.replace(/"/g, '\\"')}" with title "chook: ${toolName} needs approval"`, 425 - ]); 426 - } catch {} 427 418 } catch (e) { 428 419 process.stderr.write(`chook error: ${e.message}\n`); 429 420 process.exit(1);