From adb90e4e7c39d62d3a18bf10081991fefa87146b Mon Sep 17 00:00:00 2001 From: ollie Date: Sun, 19 Jul 2026 18:44:25 +0200 Subject: [PATCH] execute: skip sandbox config loading when Yolo is set Previously loadSandboxConfig was called unconditionally, causing failures on hosts without ~/.config/ollie/sandbox/ even when yolo mode was enabled. Move the load inside the !Yolo branch. --- pkg/tools/execute/server.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkg/tools/execute/server.go b/pkg/tools/execute/server.go index aa167d3..24a20b4 100644 --- a/pkg/tools/execute/server.go +++ b/pkg/tools/execute/server.go @@ -627,9 +627,13 @@ func (e *Server) executeWithStdin(ctx context.Context, code, language string, ti } } - cfg, err := loadSandboxConfig(sandboxName) - if err != nil { - return "", err + var cfg *sandbox.Config + var err error + if !e.Yolo { + cfg, err = loadSandboxConfig(sandboxName) + if err != nil { + return "", err + } } e.wdMu.RLock()