Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Codex App 26.1002.7124.0 (Windows package OpenAI.Codex). The bundled CLI reports codex-cli 0.160.1.
What subscription do you have?
Not recorded; the behaviour does not depend on the plan.
What platform is your computer?
Windows 11 Pro (10.0.26200), x64.
What issue are you seeing?
While a thread is running a /goal, a message added from outside with codex queue --thread <id> --message "…" is not delivered at the next turn boundary. It waits until the user presses Steer.
From reading the installed build's app-server schema, codex queue maps to thread/queue/add, and the item is stored in ~/.codex/queue_1.sqlite. The Desktop drains the queue (thread/queue/start) only while the thread is idle. Under an active goal, the goal's continuation turn starts about 64 ms after task_complete, so the thread is almost never idle and the queue usually loses that race. In our observations one boundary out of three went to the queue; the other two started the continuation. The queued item then sits behind every following continuation turn.
Two things make this hard to work around:
codex queueexits 0 once the item is stored, so the sender cannot tell "stored" from "taken".turn/steer {threadId, input, expectedTurnId}exists, but only on the app-server that owns the thread. When the Desktop owns it, that server is its private stdio child, so no external process can reach it.
The result: a local tool that runs a long task and wakes the agent with codex queue when the task ends works in an ordinary thread, but stalls a goal-mode thread until a person clicks.
What steps can reproduce the bug?
- In the Codex App, start a thread and run
/goal <any multi-turn goal>. - While the goal is active, from a terminal run
codex queue --thread <that thread id> --message "ping". The command exits 0. - Watch the thread across several goal turns. The queued message is not taken at the boundaries; it remains queued (a row stays in
~/.codex/queue_1.sqlite) until Steer is pressed.
What is the expected behavior?
Any one of these would solve it:
- The queue is drained at a goal's turn boundary before the continuation turn starts, or a queued item interrupts the continuation; or
codex queuegains a delivery mode that steers the active turn when there is one (as requested in codex queue: support steering the active turn (queue item delivery mode) #48928); or- a supported local endpoint lets an authorized client call
turn/steeron a Desktop-owned thread (as requested in Supported external steering into an existing Desktop-owned active turn #51625).
Separately, it would help if codex queue reported whether the item was taken, or offered a way to read its state, so senders can say "queued" versus "delivered" truthfully.
Additional information
Related: #48928 (steer mode for codex queue) and #51625 (external steering into a Desktop-owned active turn). This report adds the goal-mode case: in an ordinary thread the queue drains once the turn ends, but an active goal leaves almost no idle boundary, so the item waits indefinitely, not just behind one long turn.
Our current workaround, in the open-source project AlphaLattice (https://github.com/xinglin-li/alphalattice): under an active goal, the agent waits inside its turn on the task handle instead of ending the turn and relying on a queued wake. That costs model steps for long waits.
Activity
github-actions commentedon Oct 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action