Skip to content

Commit 849be60

Browse files
committed
Clarify interrupt hook message so agents that already saw the ID continue
1 parent 25ed7ef commit 849be60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.claude/hooks/check-interrupt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ for SIGNALS_DIR in "$HOME/.claude/teams"/*/signals; do
1616
rm -f "$TMP_FILE"
1717
[ -z "$MESSAGE" ] && continue
1818
ESCAPED_MSG=$(printf '%s' "$MESSAGE" | sed 's/\\/\\\\/g; s/"/\\"/g' | tr '\n' ' ')
19-
printf '{"decision":"block","reason":"INTERRUPT: %s"}\n' "$ESCAPED_MSG"
19+
printf '{"decision":"block","reason":"INTERRUPT: %s. If you have ALREADY processed a message starting with that ID, continue your current work from there. Otherwise stop and wait for it."}\n' "$ESCAPED_MSG"
2020
exit 0
2121
done
2222
exit 0

0 commit comments

Comments
 (0)