Merge branch 'codex/work-folders-remote-recovery-refresh' into codex/work-folders-session-compat-refresh

* codex/work-folders-remote-recovery-refresh:
  Preserve upstream local sandbox defaults in environment regression test
  Align provider selector tests with current configuration controls
This commit is contained in:
Dotta 2026-09-11 14:48:42 -05:00
commit b218045f3a
3 changed files with 9 additions and 6 deletions

View File

@ -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", () => {

View File

@ -67,9 +67,9 @@ describe("Paperclip Runner Codex configuration", () => {
);
expect(html).toContain("Codex via ACPX");
expect(html).toContain("Pi via ACPX");
expect(html).toContain(
'<option value="approve-reads" selected="">Conservative (fail closed)</option>',
);
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", () => {

View File

@ -60,13 +60,13 @@ describe("adapter configuration sections", () => {
"runPolicy",
config,
);
expect(adapter).toContain("ACPX Claude");
expect(adapter).toContain('<option value="acpx">ACPX</option>');
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('<option value="acpx">');
});
it.each([