Skip to content

Commit a6abab9

Browse files
committed
fix: use cwd from hook input instead of tool_input.workdir
1 parent 819ab9a commit a6abab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cc-safety-net.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function runClaudeCodeHook(): Promise<void> {
9595
return;
9696
}
9797

98-
const cwd = input.tool_input?.workdir ?? process.cwd();
98+
const cwd = input.cwd ?? process.cwd();
9999
const strict = envTruthy("SAFETY_NET_STRICT");
100100
const paranoidAll = envTruthy("SAFETY_NET_PARANOID");
101101
const paranoidRm = paranoidAll || envTruthy("SAFETY_NET_PARANOID_RM");

0 commit comments

Comments
 (0)