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"`