fix(hooks): add defensive null check for matcher.hooks to prevent Windows crash (#441)

This commit is contained in:
YeonGyu-Kim
2026-02-07 13:12:18 +09:00
parent 1c0b41aa65
commit bbe08f0eef
7 changed files with 39 additions and 34 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ interface RawClaudeHooksConfig {
function normalizeHookMatcher(raw: RawHookMatcher): HookMatcher {
return {
matcher: raw.matcher ?? raw.pattern ?? "*",
hooks: raw.hooks,
hooks: Array.isArray(raw.hooks) ? raw.hooks : [],
}
}