[Bug]: Codex worker-start fails agent_readiness with "timeout" while Codex is idle at its prompt (v1.4.215, codex 0.158.0)
Operating system
macOS 27.0 (build 26A428)
Orca version
1.4.215 (latest at time of filing), codex-cli 0.158.0
Details
Short summary
orchestration worker-start --agent codex fails at agent_readiness with lastError: "timeout", even though Codex launched and is sitting at its input prompt. The task prompt is never injected. Codex works when run directly, so the readiness check seems not to recognise the Codex 0.158.0 idle screen.
Related to #19768 (same stage), but this is a different error (timeout, not codex-interactive-prompt) and there is no respawn loop.
How to reproduce
orca orchestration run-create --objective "smoke test" --jsonorca orchestration worker-start --spec "Run date and report the time in worker_done." --worktree current --agent codex --json
The command exits 1 with:
"state": "failed",
"stage": "agent_readiness",
"failedStage": "agent_readiness",
"lastError": "timeout",
"launch": { "effective": { "agent": "codex", "model": null, "effort": null } },
"mode": { "mode": "terminal", "reason": "user_default" }What the worker terminal showed
orca terminal read on the created terminal, after the failure:
>_ OpenAI Codex (v0.158.0)
~/repositories/<repo>
permissions: YOLO mode
Bring a question. Bonus points if it's a weird one.
[ASCII art banner]
› Ask Codex to do anything
GPT-6-Sol medium · ~/repositories/<repo>
← for agents · ? for shortcutsSo Codex had reached an idle, ready prompt. Nothing was typed into it.
Codex itself works
codex exec --skip-git-repo-check "What time is it? Run date and answer in one line." < /dev/null returns the time correctly in the same shell.
State after the failure
worker-list:outcome: failed,liveness: unverifiable (missing_status),resource.state: user_owned,nextAction: none,attention: [failure, unverifiable],requiresAction: true.worker-showa minute later:observation.status: exited,agentWait: null. The terminal is gone fromorca terminal list. No respawns.
Possibly relevant
The Codex idle screen now has a large ASCII-art banner between the header and the › prompt, plus a ← for agents · ? for shortcuts footer. If readiness matches on screen content, that layout may be what it misses.
Source: stablyai/orca