test: align codex integration test with AgentPermissionMode

This commit is contained in:
Prateek 2026-03-07 21:01:32 +05:30
parent e81a8a4e27
commit cb2b386f99
1 changed files with 2 additions and 2 deletions

View File

@ -27,13 +27,13 @@ describe("agent-codex launch/env wiring (integration)", () => {
it("preserves update-check override alongside other flags", () => {
const cmd = agent.getLaunchCommand(
makeLaunchConfig({
permissions: "skip",
permissions: "default",
model: "o3-mini",
prompt: "Do the thing",
}),
);
expect(cmd).toContain("-c check_for_update_on_startup=false");
expect(cmd).toContain("--dangerously-bypass-approvals-and-sandbox");
expect(cmd).not.toContain("--ask-for-approval");
expect(cmd).toContain("--model 'o3-mini'");
expect(cmd).toContain("-c model_reasoning_effort=high");
});