diff --git a/src/gateway/gateway-codex-harness.live-helpers.test.ts b/src/gateway/gateway-codex-harness.live-helpers.test.ts index 88f934e074c..0e30e5a40c2 100644 --- a/src/gateway/gateway-codex-harness.live-helpers.test.ts +++ b/src/gateway/gateway-codex-harness.live-helpers.test.ts @@ -132,6 +132,15 @@ describe("gateway codex harness live helpers", () => { ).toBe(true); }); + it("accepts the normal-work status emitted by current codex", () => { + const text = + "Working normally. Current cwd is `/tmp/openclaw-live-codex-harness/workspace/dev`, sandbox is workspace-write, network is restricted, and the current date is 2026-05-09 UTC."; + + expect( + EXPECTED_CODEX_STATUS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)), + ).toBe(true); + }); + it("accepts the ready status emitted by current codex", () => { const text = "Ready."; diff --git a/src/gateway/gateway-codex-harness.live-helpers.ts b/src/gateway/gateway-codex-harness.live-helpers.ts index 2a8f118e9b5..1df1ff05e92 100644 --- a/src/gateway/gateway-codex-harness.live-helpers.ts +++ b/src/gateway/gateway-codex-harness.live-helpers.ts @@ -91,6 +91,7 @@ export const EXPECTED_CODEX_STATUS_COMMAND_TEXT = [ "Status shown above.", "No active task is running.", "No active work is running.", + "Working normally.", "Ready.", ] as const;