mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 10:27:56 +01:00
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>