From ddcdc03876a9fe94139f272f4a53e0a63cd0c9bb Mon Sep 17 00:00:00 2001 From: cooper Date: Sat, 7 Nov 2026 22:57:59 -0800 Subject: [PATCH] fix(setupagent): pass --yolo to codex exec in sandboxed setup --- apps/stackpanel-go/go.mod | 3 ++- apps/stackpanel-go/internal/setupagent/agent.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/stackpanel-go/go.mod b/apps/stackpanel-go/go.mod index b5fd58dd..8b9351dd 100644 --- a/apps/stackpanel-go/go.mod +++ b/apps/stackpanel-go/go.mod @@ -223,7 +223,6 @@ require ( go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/multierr v1.10.0 // indirect go.uber.org/zap v1.27.1 // indirect - golang.org/x/exp v0.0.0-20250819193227-8b4c13bb791b // indirect golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac // indirect golang.org/x/image v0.41.0 // indirect golang.org/x/mod v0.35.0 // indirect @@ -233,6 +232,8 @@ require ( golang.org/x/term v0.42.0 // indirect golang.org/x/text v0.37.0 // indirect golang.org/x/tools v0.44.0 // indirect + golang.org/x/tools/go/expect v0.1.1-deprecated // indirect + golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect honnef.co/go/tools v0.6.1 // indirect diff --git a/apps/stackpanel-go/internal/setupagent/agent.go b/apps/stackpanel-go/internal/setupagent/agent.go index 5e2c8b94..cd292bd5 100644 --- a/apps/stackpanel-go/internal/setupagent/agent.go +++ b/apps/stackpanel-go/internal/setupagent/agent.go @@ -133,7 +133,7 @@ func commandFor(agent Agent, req RunRequest) ([]string, error) { // Overrides replace these tables for this invocation. Keep user auth and // model configuration, while disabling integrations outside the sandbox. return []string{ - "exec", "--json", "--sandbox", sandbox, "--color", "never", + "exec", "--json", "--sandbox", sandbox, "--yolo", "--color", "never", "-c", `approval_policy="never"`, "-c", "mcp_servers={}", "-c", "features.apps=false", "-c", "features.plugins=false", "-c", "features.hooks=false", "-c", "features.multi_agent=false",