Files
loki/scripts
g-butandClaude Sonnet 4.6 bbf45c9a21 fix(hooks): guard Notification auto-inject behind idle check; surface continue prompt in UI
The Notification hook was unconditionally injecting "Resolve the pending
question..." whenever Claude Code sent a notification event — even if the
user was actively at the keyboard typing their own reply. This caused the
double-prompt problem independently of the Stop hook fix.

Two changes:
1. handle_notification now applies the same 60s idle gate as handle_stop.
   If the user is active, the hook plays the attention sound only and exits —
   the user responds themselves. Auto-inject only fires when they're away.

2. The "continue" prompt entry in agent-prompts.json had style "internal"
   and slot null, making it invisible in the prompt library UI despite being
   the SSOT for this behavior. Changed to style "more" / slot 14 so it
   appears under the More button and can be read, used, and edited from the
   same place as every other prompt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 17:38:38 +02:00
..