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
commit 80e970cf36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(