diff --git a/src/gateway/gateway-codex-harness.live.test.ts b/src/gateway/gateway-codex-harness.live.test.ts index 31653b2f114..eef76dd3e08 100644 --- a/src/gateway/gateway-codex-harness.live.test.ts +++ b/src/gateway/gateway-codex-harness.live.test.ts @@ -791,7 +791,7 @@ async function waitForCodexSubagentStarted(params: { childSessionKey: string; events: CapturedAgentEvent[]; }): Promise { - const deadline = Date.now() + Math.min(CODEX_HARNESS_REQUEST_TIMEOUT_MS, 120_000); + const deadline = Date.now() + CODEX_HARNESS_REQUEST_TIMEOUT_MS; while (Date.now() < deadline) { if (hasCodexAppServerLifecycleEvent(params)) { return; @@ -876,6 +876,7 @@ async function verifyCodexSubagentProbe(params: { mode: "run", cleanup: "keep", context: "isolated", + lightContext: true, expectsCompletionMessage: false, runTimeoutSeconds: CODEX_HARNESS_AGENT_TIMEOUT_SECONDS, },