From 055cc24ec646de396683188e22c8f14fa3838498 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Fri, 16 Jan 2026 13:29:51 -0600 Subject: [PATCH] fix(hooks): match STATE.md field names in notify hook The hook was grepping for `current_phase:` and `status:` but STATE.md uses `Phase:` and `Status:`. Now shows actual phase info instead of always falling back to "Ready for input". Co-Authored-By: Claude Opus 4.5 --- hooks/gsd-notify.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/gsd-notify.sh b/hooks/gsd-notify.sh index 8aaf1e661..9e6d1fead 100755 --- a/hooks/gsd-notify.sh +++ b/hooks/gsd-notify.sh @@ -17,8 +17,8 @@ fi message="" state_file="$cwd/.planning/STATE.md" if [[ -f "$state_file" ]]; then - phase=$(grep -m1 "^current_phase:" "$state_file" 2>/dev/null | sed 's/^current_phase: *//') - status=$(grep -m1 "^status:" "$state_file" 2>/dev/null | sed 's/^status: *//') + phase=$(grep -m1 "^Phase:" "$state_file" 2>/dev/null | sed 's/^Phase: *//') + status=$(grep -m1 "^Status:" "$state_file" 2>/dev/null | sed 's/^Status: *//') if [[ -n "$phase" && -n "$status" ]]; then message="Phase $phase: $status" fi