Browse Source

chore: add kilocode_change markers for fork tracking

Mark IJbema 5 days ago
parent
commit
4e6bf1c4a5

+ 1 - 0
src/core/auto-approval/__tests__/commands.spec.ts

@@ -1,3 +1,4 @@
+// kilocode_change - new file
 import { getCommandDecision } from "../commands"
 
 describe("getCommandDecision", () => {

+ 2 - 0
src/core/auto-approval/commands.ts

@@ -273,6 +273,7 @@ export function getCommandDecision(
 		// Remove simple PowerShell-like redirections (e.g. 2>&1) before checking
 		const cmdWithoutRedirection = cmd.replace(/\d*>&\d*/, "").trim()
 
+		// kilocode_change start
 		// Try matching both the original command and the stripped command.
 		// This handles the case where the allowlist contains a pattern with redirection
 		// (e.g., "pnpm compile 2>&1") but the stripped command doesn't match it.
@@ -296,6 +297,7 @@ export function getCommandDecision(
 			return "auto_deny"
 		}
 		return "ask_user"
+		// kilocode_change end
 	})
 
 	// If any sub-command is denied, deny the whole command