From d74c613e0f86f6c5fb747ac8b22f621691babc82 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sat, 7 Mar 2026 18:32:43 +0000 Subject: [PATCH] chore(loader): add logging for safe commands config loading Add debug print statements to indicate when the safe commands config file is successfully loaded or when falling back to the built-in list. --- internal/recipe/loader.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/recipe/loader.go b/internal/recipe/loader.go index be6e225..8ccffc6 100644 --- a/internal/recipe/loader.go +++ b/internal/recipe/loader.go @@ -21,6 +21,7 @@ var safeCommands = sync.OnceValue(func() map[string]bool { data, err := os.ReadFile(cfgPath) if err != nil { // Fallback to a built-in safe list + fmt.Println("Could not read safe shell commands config, using built-in fallback") return map[string]bool{ "ls": true, "pwd": true, "cat": true, "tree": true, "find": true, "grep": true, "rg": true, @@ -30,7 +31,9 @@ var safeCommands = sync.OnceValue(func() map[string]bool { "pytest": true, "poetry run pytest": true, "ctest": true, "python -m pytest": true, "python": true, "poetry": true, } + } + fmt.Println("Using safe shell commands config:", cfgPath) var cfg struct { SafeCommands []string `yaml:"safe_commands"`