Skip to content

codex queue: support steering the active turn (queue item delivery mode) #48928

Open

Description

@gshiva-raptech

What variant of Codex are you using?

APP

What feature would you like to see?

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):

  1. codex queue --steer (or --mode steer|follow-up): steer the active turn if there is one, otherwise queue as today; or
  2. honour followUpQueueMode = "steer" for items created by codex queue, or add a per-item delivery mode to the queue payload; or
  3. 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

Activity

  1. added
    enhancement
    on Sep 28, 2026
  2. added
    app
    app-server
    on Sep 28, 2026
  3. RyanSaxe commented on Sep 29, 2026

    @RyanSaxe

    +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.

  4. oreniss commented on Nov 4, 2026

    @oreniss

    I published an experimental native reference for this use case: implementation and validation record.

    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?

  5. mayeths commented on Nov 7, 2026

    @mayeths

    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.

  6. VarYUvrc commented on Nov 15, 2026

    @VarYUvrc

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions