You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codex queue: support steering the active turn (queue item delivery mode) #48928
Context: We run long-lived Codex Desktop threads ("lanes") and deliver short coordination messages to them from scripts with codex queue --thread <id> --message … (codex-cli 0.153.4, Desktop framework 154.0.8037.57, macOS).
Problem:codex queue always creates a follow-up (queued_items) that starts only after the current turn ends. The Desktop's [desktop] followUpQueueMode = "steer" applies only to messages typed in the composer, so script-delivered messages wait behind long turns until a human presses Steer. The app-server protocol already has turn/steer {threadId, input, expectedTurnId}, but when the Desktop owns the thread its app-server is --listen stdio://, so no external process can reach it.
Request (any one would solve it):
codex queue --steer (or --mode steer|follow-up): steer the active turn if there is one, otherwise queue as today; or
honour followUpQueueMode = "steer" for items created by codex queue, or add a per-item delivery mode to the queue payload; or
a supported local endpoint on the Desktop (e.g. the app-server control socket) through which a script can call turn/steer on Desktop-owned threads.
Why it matters: unattended multi-thread workflows need a way to redirect a busy thread without a human at the keyboard. Today messages sent overnight wait for hours.
Additional information
No response
Reacted by Gao, Ruiyuan, mendi80, Chris Alves, Alexx and VarYU
+1, and option 1 would solve it for me. I send messages to running Codex sessions with codex queue, and turns often run 10+ minutes, so a correction arrives only after the agent has finished the work it was meant to redirect. codex queue --steer, falling back to a normal queue item when no turn is active, would deliver it at the next step boundary without launching Codex any differently.
It adds opt-in agent/message/submit RPC/loopback HTTP ingress through native attributed agent-message scheduling, with notify and recipient-enabled follow_up, destination-scoped expiring capabilities, durable pair/delivery deduplication, receipts, and same-owner restoration of the existing UUID/settings. It preserves stop, approval, Plan, archive, protected-child and drain boundaries.
Mac and Linux builds and 31 direct checks per platform passed, plus 33 targeted native tests. A Linux dispatcher over private SSH deliberately lost the first reply and reconnected; a new process recovered the original receipt with one observed POST. Provider fixtures confirmed native agent_message attribution. Every model request was mocked: this is not live-account validation or an exactly-once inference claim.
This also relates to #54683. At the investigated revision, per-call MCP threadId/root sessionId already exist; the reference adds explicitly audience-scoped host/runtime/board/route metadata. The signed desktop was unchanged. Existing desktop chats still need their actual owning desktop runtime to expose the supported interface; a standalone app-server is not a second writer for those chats.
The reference is pinned to 79dcb11c9016a71340064dc12cec210363948516; the report separately records later observed upstream drift. Given the current contribution policy, I have not opened an upstream PR. Could the appropriate app-server, desktop and security owners advise on a supported route for reviewing this design/reference and its evidence?
This is indeed a useful feature. Multi-agent and subagent are getting popular, it's weird that we can't steer messages between agents like humans. Hope this gets added.
Activity
RyanSaxe commentedon Sep 29, 2026
+1, and option 1 would solve it for me. I send messages to running Codex sessions with
codex queue, and turns often run 10+ minutes, so a correction arrives only after the agent has finished the work it was meant to redirect.codex queue --steer, falling back to a normal queue item when no turn is active, would deliver it at the next step boundary without launching Codex any differently.feat(codex): steer a running turn when the installed Codex supports it (
oreniss commentedon Nov 4, 2026
I published an experimental native reference for this use case: implementation and validation record.
It adds opt-in
agent/message/submitRPC/loopback HTTP ingress through native attributed agent-message scheduling, withnotifyand recipient-enabledfollow_up, destination-scoped expiring capabilities, durable pair/delivery deduplication, receipts, and same-owner restoration of the existing UUID/settings. It preserves stop, approval, Plan, archive, protected-child and drain boundaries.Mac and Linux builds and 31 direct checks per platform passed, plus 33 targeted native tests. A Linux dispatcher over private SSH deliberately lost the first reply and reconnected; a new process recovered the original receipt with one observed POST. Provider fixtures confirmed native
agent_messageattribution. Every model request was mocked: this is not live-account validation or an exactly-once inference claim.This also relates to #54683. At the investigated revision, per-call MCP
threadId/rootsessionIdalready exist; the reference adds explicitly audience-scoped host/runtime/board/route metadata. The signed desktop was unchanged. Existing desktop chats still need their actual owning desktop runtime to expose the supported interface; a standalone app-server is not a second writer for those chats.The reference is pinned to
79dcb11c9016a71340064dc12cec210363948516; the report separately records later observed upstream drift. Given the current contribution policy, I have not opened an upstream PR. Could the appropriate app-server, desktop and security owners advise on a supported route for reviewing this design/reference and its evidence?mayeths commentedon Nov 7, 2026
This is indeed a useful feature. Multi-agent and subagent are getting popular, it's weird that we can't steer messages between agents like humans. Hope this gets added.
VarYUvrc commentedon Nov 15, 2026
+1