The Codex auth lease is exclusive per account so two Codex processes never rotate the same refresh token at once. With the single configured account that also serializes every Codex run, and claimCodexAuthLease() failed immediately while another room's Codex run held it: the turn errored with "Codex rotation pool unavailable", the task closed as reviewer_codex_unavailable and the review was silently skipped. All three such failures on 2026-09-28 coincided exactly with another room's Codex run holding the lease (10:25:55, 18:08:25, 18:22:50 KST). runAgentProcess now waits (up to 15 min, polling every 2s) when the only obstacle is a lease held by a live run. A dead or rate-limited pool still fails fast, and the normal path adds no async hop because the wait is only entered when the lease is actually busy. The exclusivity itself is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9.3 KiB
9.3 KiB