Merge pull request #1297 from khduy/fix/deduplicate-settings-paths

fix(claude-code-hooks): deduplicate settings paths to prevent double hook execution
This commit is contained in:
YeonGyu-Kim
2026-02-04 13:35:06 +09:00
committed by GitHub
+3 -1
View File
@@ -55,7 +55,9 @@ export function getClaudeSettingsPaths(customPath?: string): string[] {
paths.unshift(customPath)
}
return paths
// Deduplicate paths to prevent loading the same file multiple times
// (e.g., when cwd is the home directory)
return [...new Set(paths)]
}
function mergeHooksConfig(