diff --git a/src/hooks/claude-code-hooks/config.ts b/src/hooks/claude-code-hooks/config.ts index b155c4810..60f9bc27a 100644 --- a/src/hooks/claude-code-hooks/config.ts +++ b/src/hooks/claude-code-hooks/config.ts @@ -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(