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:
commit
80e970cf36
@ -55,7 +55,9 @@ export function getClaudeSettingsPaths(customPath?: string): string[] {
|
|||||||
paths.unshift(customPath)
|
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(
|
function mergeHooksConfig(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user