Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

fix(codex): replace invalid --full-auto with correct auto-mode flags

Chaitanya Giri99a3c0e29865
diff --git a/src/shared/agentProvider.ts b/src/shared/agentProvider.ts
index 3283e37e..d83ebbc9 100644
--- a/src/shared/agentProvider.ts
+++ b/src/shared/agentProvider.ts
@@ -29,10 +29,10 @@ export const AGENT_PROVIDER_PRESETS: AgentProviderPreset[] = [
label: 'Codex',
defaultCommand: 'codex',
commandGroups: CODEX_COMMAND_GROUPS,
- // --full-auto: auto-approves workspace operations, keeps OS sandbox scoped to
- // workspace (no outbound network). Matches the non-interactive intent of
+ // -a never: never prompt for approval; -s workspace-write: sandbox scoped to
+ // the workspace (no outbound network). Matches the non-interactive intent of
// Claude's bypassPermissions while retaining a safety boundary.
- autoModeFlag: '--full-auto',
+ autoModeFlag: '-a never -s workspace-write',
// Suppresses first-run interactive prompts (directory-trust gate, installer).
nonInteractiveEnv: { CODEX_NON_INTERACTIVE: '1' }
},
diff --git a/src/shared/codexCommands.ts b/src/shared/codexCommands.ts
index 9aa3b286..6e552478 100644
--- a/src/shared/codexCommands.ts
+++ b/src/shared/codexCommands.ts
@@ -41,10 +41,10 @@ export const CODEX_COMMAND_GROUPS: CmdGroup[] = [
{
title: 'APPROVALS & PERMISSIONS',
items: [
- { cmd: 'codex --full-auto', kind: 'cli', desc: 'Run without approval prompts for workspace operations. Maintains an OS-enforced workspace sandbox (no outbound network). Use this for auto mode.' },
- { cmd: 'codex --dangerously-bypass-approvals-and-sandbox', kind: 'cli', desc: 'Skip all approval prompts AND disable the OS sandbox entirely. Alias: --yolo. For fully-isolated environments (Docker, CI VM) only.' },
- { cmd: 'codex --ask-for-approval never', kind: 'cli', desc: 'Never ask for approval (fine-grained flag — pair with --sandbox for full control).' },
- { cmd: 'codex --sandbox danger-full-access', kind: 'cli', desc: 'Remove all sandbox restrictions (fine-grained flag).' }
+ { cmd: 'codex -a never -s workspace-write', kind: 'cli', desc: 'Auto mode: never prompt for approval (-a never) and scope the sandbox to the workspace (-s workspace-write). Used by Munder Difflin when auto mode is on.' },
+ { cmd: 'codex --dangerously-bypass-approvals-and-sandbox', kind: 'cli', desc: 'Skip all approval prompts AND disable the OS sandbox entirely. CI-only full-bypass override — for externally-isolated environments (Docker, CI VM) only.' },
+ { cmd: 'codex -a untrusted', kind: 'cli', desc: 'Only run trusted commands without asking; escalate to the user for anything else.' },
+ { cmd: 'codex -s danger-full-access', kind: 'cli', desc: 'Remove all sandbox restrictions (fine-grained flag — pair with -a for full control).' }
]
},
{