diff --git a/packages/adapters/codex-local/src/server/codex-args.test.ts b/packages/adapters/codex-local/src/server/codex-args.test.ts index 23d52fccc5..75ceed00ba 100644 --- a/packages/adapters/codex-local/src/server/codex-args.test.ts +++ b/packages/adapters/codex-local/src/server/codex-args.test.ts @@ -8,7 +8,10 @@ describe("buildCodexExecArgs", () => { expect(result.args).toContain("features.shell_snapshot=false"); expect(result.args.indexOf("allow_login_shell=false")).toBeGreaterThan(result.args.indexOf("allow_login_shell=true")); expect(result.args.slice(-1)).toEqual(["-"]); - expect(buildCodexExecArgs({}).args).toEqual(["exec", "--json", "-"]); + expect(buildCodexExecArgs({}).args).toEqual([ + "exec", "--json", "-c", 'sandbox_mode="workspace-write"', + "-c", "sandbox_workspace_write.network_access=true", "-", + ]); }); it("forwards GPT-6 Astra, its ultra reasoning effort, and fast mode", () => { diff --git a/ui/src/adapters/codex-local/config-fields.test.tsx b/ui/src/adapters/codex-local/config-fields.test.tsx index 9a29e7ac3d..863d06cebd 100644 --- a/ui/src/adapters/codex-local/config-fields.test.tsx +++ b/ui/src/adapters/codex-local/config-fields.test.tsx @@ -67,9 +67,9 @@ describe("Paperclip Runner Codex configuration", () => { ); expect(html).toContain("Codex via ACPX"); expect(html).toContain("Pi via ACPX"); - expect(html).toContain( - '', - ); + expect(html).toContain('aria-label="Permission mode"'); + expect(html).toContain('data-slot="select-value"'); + expect(html).toContain("Conservative (fail closed)"); }); it("falls back to the fail-closed Codex permission mode", () => { diff --git a/ui/src/adapters/config-sections.test.tsx b/ui/src/adapters/config-sections.test.tsx index 42a27e2235..a2bba54cb1 100644 --- a/ui/src/adapters/config-sections.test.tsx +++ b/ui/src/adapters/config-sections.test.tsx @@ -60,13 +60,13 @@ describe("adapter configuration sections", () => { "runPolicy", config, ); - expect(adapter).toContain("ACPX Claude"); + expect(adapter).toContain(''); expect(adapter).not.toContain("Runner lifecycle"); expect(configuration).not.toContain("Permission mode"); expect(configuration).not.toContain("Runner lifecycle"); expect(policy).toContain("Runner lifecycle"); expect(policy).toContain('value="45000"'); - expect(policy).not.toContain("ACPX Claude"); + expect(policy).not.toContain('