From 66a639fe6f374138a1d5904e60ff821256414d87 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Fri, 20 Mar 2026 10:43:51 -0400 Subject: [PATCH] fix(hooks): add version header to gsd-workflow-guard.js (#1249) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gsd-workflow-guard.js was missing the // gsd-hook-version: {{GSD_VERSION}} header that all other hook files have. The stale hook detection in gsd-check-update.js scans all gsd-*.js files for this header and flags any without it as stale (hookVersion: 'unknown'). This caused a persistent '⚠ stale hooks — run /gsd:update' warning in the statusline even on the latest version. Added the version header to gsd-workflow-guard.js. Running /gsd:update will reinstall the hook with the correct version stamp. --- hooks/gsd-workflow-guard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks/gsd-workflow-guard.js b/hooks/gsd-workflow-guard.js index d8075aaf6..5cee8184f 100644 --- a/hooks/gsd-workflow-guard.js +++ b/hooks/gsd-workflow-guard.js @@ -1,4 +1,5 @@ #!/usr/bin/env node +// gsd-hook-version: {{GSD_VERSION}} // GSD Workflow Guard — PreToolUse hook // Detects when Claude attempts file edits outside a GSD workflow context // (no active /gsd: command or Task subagent) and injects an advisory warning.