Skip to content

Consumed prompt remains invisible and blocks two queued prompts; queue cannot be cleared #51150

Open

Description

@brentjreynolds

What version of the Codex App are you using (From “About Codex” dialog)?

26.930.4958.0 (installed Windows package OpenAI.Codex)

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64; user also accesses the chat from a phone

What issue are you seeing?

Recurring prompt-queue/display failure, reported again October 5, 2026. A previous prompt has already been ingested and answered by the agent, but does not display in the chat thread and still appears to block later input. Two subsequent stacked prompts remain blocked behind it. The queued prompt cycles indefinitely and cannot be cleared, reopened, executed/pushed, or terminated through the available UI. Adding one, two, or three queued prompts does not unblock it. This prevents delivering a requested test grid and instructions to an operating agent. This is a customer report of observed behavior; the internal cause is unknown.

What steps can reproduce the bug?

User-observed sequence (intermittent; no deterministic minimal reproduction established):

  1. Send a prompt to an existing Codex chat.
  2. The agent ingests and responds to it, but the consumed prompt does not appear in the visible chat thread.
  3. Send two follow-up prompts while the stale queued item remains.
  4. Both follow-ups remain stacked/blocked behind the already consumed prompt.
  5. Attempt to clear, reopen, push/execute, or terminate the stale item. No working recovery control is available; it continues cycling. Additional stacked prompts do not help.
    No context-window/token measurements were captured. Private task contents and document links omitted.

What is the expected behavior?

Ingested prompts and their replies should be visible in the thread. Once consumed, a prompt should leave the pending queue and must not block later messages. Follow-up prompts should be delivered in order, with a usable cancel/remove/retry or termination control for genuinely stuck items, without losing user input.

Additional information

Operational impact: user cannot reliably steer or deliver requested artifacts to the agent, and must use another agent to relay the message. The user reports this persists despite prior apparent fixes. Please investigate queue lifecycle reconciliation and transcript rendering together. App package version and OS verified locally; queue symptoms are user-reported, not a controlled reproduction by the filing agent.

Activity

  1. added
    app
    on Oct 5, 2026
  2. added
    bug
    windows-os
    session
    on Oct 5, 2026
  3. PatrickASimpson commented on Oct 8, 2026

    @PatrickASimpson

    Captured this again on Windows Desktop 26.1002.7124.0. The Desktop log records:

    Failed to send queued message ... errorMessage="Queued follow-up changed before dispatch"

    The consumed prompt was already present in app-server history and was later delivered again as a new turn with the same client message ID, while subsequent prompts remained queued. The packaged/minified stack points into app-shared-40678a67f0e3.js; the initial log alone could not distinguish the guards.

    Update (October 8): this has been affecting almost every thread for the past couple of hours, rather than an isolated thread. Non-pausing debugger logpoints captured two failures in sendNow: disposed=false, queue enabled, queued item unchanged, but the ownership-validity callback returned false. Tracing that callback shows it rejects a follower window, or a window that previously held the stream-owner role and subsequently lost it. We have identified the ownership guard; which ownership transition triggered it, and why, remain unconfirmed.

  4. PatrickASimpson commented on Oct 8, 2026

    @PatrickASimpson

    Workaround verified in my Windows Desktop setup (26.1002.7124.0): keep each thread confined to one window for the lifetime of the open Desktop windows.

    1. Close all Codex Desktop windows, then reopen with one window.
    2. Use that single window, or keep multiple windows only if you never open the same thread in more than one of them.
    3. Previously opening a thread in another window still counts, even after switching that window to a different thread. Simply making the thread visible in only one window is not sufficient in my tests.
    4. Before moving a thread between windows, close all Desktop windows and start fresh.

    This avoids the stuck pending messages / failed queued steering in my setup. It is a workaround, not a fix or a guarantee for every queue failure. Debugger captures identified the local stream-ownership guard rejecting queued steering in a follower window; the cause of every stale queue/transcript entry remains unconfirmed.

    Related single-window recovery reports: #50806, #51251, #49456. Their reports corroborate single-window recovery; the retained-window-history detail above is from my own testing.

  5. PatrickASimpson commented on Oct 8, 2026

    @PatrickASimpson

    Reduced reproduction in my Windows Desktop setup (26.1002.7124.0), which now appears repeatable:

    1. Fully quit Codex Desktop and start it fresh.
    2. Right-click an existing thread and select Open in new window, leaving the original window open.
    3. Enter a prompt in the new window.
    4. Immediately attempt to Steer the first prompt while it is processing. The prompt can already be executing while its entry remains in the pending UI; steering fails.

    This appears to happen with any existing thread in my testing; it is not an exhaustive test of every thread.

    The window-role distinction is important: the original window retains the thread's owner role, while the new window actually displaying the thread is classified as a follower. Displaying and interacting with the thread in the new window does not automatically make it the owner.

    Recovery: closing the first/original owner window allows the follower window holding the prompt to become the owner and start working normally; it can then successfully submit the steering instruction. Leave the new window open and retry Steer there. This worked without restarting Desktop. In a captured instance, the new window was a follower during two Queued follow-up changed before dispatch failures, then became owner after the original window closed; its next turn/steer response succeeded (errorCode=null).

    Please cover this fresh-launch/new-window sequence in regression tests, including initial prompt queue cleanup and preventing an already-consumed prompt from being replayed.

  6. YiwenPang commented on Oct 13, 2026

    @YiwenPang

    Serious Recurrence on October 13, 2026 — Duplicate Prompt Execution, Queue Corruption, and Potentially Wasted Paid Usage

    I am experiencing what appears to be the same issue in the Codex Windows desktop application, and I would like to report a particularly serious consequence: previously completed prompts are being executed repeatedly without my intentionally submitting them again.

    Environment

    • Platform: Codex Windows Desktop
    • Model: GPT-6 Astra Ultra
    • Follow-up behavior: Queue mode
    • Incident date: October 13, 2026 (UTC+8)
    • Application version: Not yet recorded

    What Happened

    I experienced the following sequence:

    1. I submitted a prompt, and Codex successfully processed it and returned a complete response.
    2. I subsequently queued additional questions while working in the same conversation.
    3. After the original response had already been completed, the previously answered prompt unexpectedly appeared again as a new user message.
    4. Codex started another reasoning session and generated another response to the same question.
    5. This was not an isolated occurrence. The same previously answered prompt reappeared and was processed repeatedly, while other queued questions were delayed.
    6. I eventually had to manually interrupt execution to prevent further unnecessary processing.
    7. The interface then displayed a paused queue containing additional pending messages.

    I did not intentionally request these repeated executions.

    I have multiple screenshots documenting the duplicate user messages, repeated model execution, and abnormal queue states.

    Why This Is a Serious Problem

    This is not merely a visual glitch or an inconvenient delay.

    I am a paying customer using a model with limited usage allowances. Every unintended reasoning session may consume part of the usage allowance I have paid for.

    When Codex executes an already completed instruction again because of an apparent queue-management failure, the customer receives no additional value but may still incur usage consumption.

    I find it unacceptable for users to potentially bear the computational cost of executions they did not intentionally initiate.

    The financial amount involved may be small, but the principle is extremely important. Even a small amount of improperly consumed paid usage undermines confidence in the product's reliability and usage accounting.

    There is also a broader risk: unintended repeated execution in an autonomous coding agent can result in duplicate API calls, unnecessary file modifications, repeated operations, and potentially irreversible side effects.

    Requested Engineering Actions

    I respectfully but firmly request that the Codex engineering team:

    1. Investigate duplicate prompt delivery and execution, particularly when previously processed messages remain associated with pending queue entries.
    2. Ensure that completed requests cannot be unintentionally executed again because of stale queue state, delayed dispatch, retries, or synchronization failures.
    3. Investigate whether these unintended executions consume subscription usage, and provide a way for affected customers to request correction of improperly deducted usage.
    4. Fix queue-state synchronization, ensuring that queued, delivered, running, completed, and canceled messages are accurately distinguished.
    5. Provide a reliable recovery mechanism that preserves conversation context and pending instructions without requiring users to restart their work.
    6. Provide an engineering acknowledgment and information about the planned resolution.

    I recognize that the precise internal cause has not yet been established. My screenshots demonstrate the visible duplicate messages and repeated execution, but I cannot independently verify the server-side delivery mechanism or exact usage deductions.

    Nevertheless, the externally observable behavior is already serious enough to warrant investigation.

    Final Concern

    I rely on Codex for substantial development and research work. I should not have to constantly supervise whether the application is executing my instructions once, twice, or repeatedly.

    A paid AI coding assistant must provide reliable instruction delivery, predictable execution, and trustworthy usage accounting.

    Please prioritize this issue and investigate the potential impact on customers' paid usage allowances.

    Thank you.

  7. bwalkerMIR commented on Oct 13, 2026

    @bwalkerMIR

    Yes this is a very serious issue. Codex is unusuable. The queue gets stuck and nothing you can do about it, then randomly will start working again but process already executed instructions AGAIN

  8. YiwenPang commented on Oct 14, 2026

    @YiwenPang

    Thanks for replying and sharing your experience, @bwalkerMIR. That’s exactly the behavior I was seeing too.
    One observation that might help with the investigation: in my case, this seemed to coincide with the service slowdown on October 13. Since the service started behaving normally again at around 5:00 PM Beijing time that day (UTC+8; 09:00 UTC), I haven’t seen the queue getting stuck or previously completed instructions being executed again.
    This is just an observation from my own usage, so I wouldn’t take it as confirmation that the issue is fixed or that the slowdown was the root cause. However, the timing seemed worth sharing in case it helps the team investigate.
    Thanks again for adding your report. I genuinely hope the OpenAI and Codex teams can get to the bottom of this and deliver a more stable, reliable experience, while continuing to surprise us with meaningful improvements.

  9. Kansalis commented on Oct 15, 2026

    @Kansalis

    Windows local Work recurrence, 15 October 2026: exact client IDs delivered two and three times on an unmodified desktop app

    Adding a measured recurrence to this existing report. Normal sends to an idle chat stall behind previously answered instructions; those old instructions later execute again before the new input. This has been happening for approximately two weeks and became frequent today.

    Environment

    • Windows x64; desktop logs report OS 10.0.26300.
    • Installed Store package: OpenAI.Codex 26.1007.9446.0.
    • Bundled desktop version: 26.1007.71326, build 20398.
    • Bundled app-server: 0.162.0-alpha.17.2.
    • ChatGPT Pro; local Work chat in the unified desktop app.
    • Four app windows during the captured recurrences.

    The affected chat stayed in its original window. I did not open it in another window, refresh it, or switch that window to another chat. I used other existing windows, returned to the affected chat, and pressed Enter normally after the preceding answer had completed. Recovery and replay also occurred while the affected window was unfocused and untouched. No new chats were required.

    Directly verified evidence

    Read-only comparison of persisted queued-follow-ups, backend userMessage.clientId values, turn records, and the session rollout confirms duplicate delivery under the same client ID, not merely similar prompt text or duplicate rendering.

    All times below are UTC on 2026-10-15. A/B/C labels replace private identifiers; equality was checked against the actual IDs locally.

    Instruction First completed turn Later deliveries with the same client ID
    A 13:28:03–13:29:03 13:38:07–13:38:53
    B 13:38:54–13:39:28 13:48:52–13:49:15, then 14:00:23–14:00:38
    C 13:49:15–13:50:22 14:00:38–14:01:20

    Additional observations:

    • A was absent from the persisted queue at 13:28:21 and 13:29:47, then reappeared as pending at 13:36:51 with its original ID and creation timestamp, ahead of newer input.
    • At 13:47:45 the queue contained already-delivered A as sending, already-delivered B as pending, and genuinely new C as pending.
    • A was not delivered a third time in that occurrence. B was delivered again, then C started immediately after B's replay finished.
    • A newer request waited approximately 153 seconds, including the unnecessary replay turn.
    • The separate SQLite queued_items table was empty during captured failures; checking that table alone misses this legacy frontend queue.
    • Successful turn/start RPCs had millisecond durations and queueWaitMs=0; the observed delay occurred before dispatch.

    Closing other windows coincided with recovery once, but failed on a later recurrence. A full restart temporarily helped; using one window was initially stable, then the issue recurred after reopening four. These are observations, not proof that window count alone is the cause.

    Installed-code reproduction, with limits

    A read-only extraction of shipped methods, run with synthetic state/clock and mocked transport/storage adapters, reproduces:

    1. The send-lock manager retains a successful per-thread/message receipt for 600,000 ms.
    2. The dispatcher acquires that lock before accepted-history reconciliation. A restored, already-accepted pending entry waits while the receipt exists, then can send again when it expires. A stale sending entry can instead wait and then reconcile without another send.
    3. The follower-snapshot acceptance method can restore an already-accepted pending entry into an empty owner queue from a stale full snapshot.

    The roughly ten-minute replay intervals are consistent with this mechanism. The particular writer/snapshot that restored each live entry has not been traced, so this is not a claim of a complete captured production causal chain.

    The extracted frontend asset is app-shared-30671c57ec82.js, SHA-256 392b023063a3569a2efc47a019accb2d1e72295b1bfec2cbb81fc37e1515580a.

    An isolated candidate that checks accepted IDs before lock acquisition and filters follower snapshots passes eight focused cases. It is not a complete fix: a further test still replays an accepted ID after receipt expiry when cached acceptance history is unavailable. No patch was installed. No live queue edits, deliberate replay, or diagnostic test messages caused the captured duplicates.

    Requested investigation

    • Reconcile accepted IDs independently of dispatch admission and expiring send locks.
    • Preserve acceptance knowledge across cache misses, ownership changes and restarts.
    • Reject stale queue snapshots without overwriting newer legitimate input.
    • Consider server-side idempotency for repeated client message IDs as additional protection.
    • Provide a supported recovery path preserving conversation history and genuinely pending input, and identify the desktop version containing a verified correction.

    Related evidence: #49456 (receipt gating/stale snapshots), #50806 (Windows ownership/Steer), #49743 (blocked Work intake). The exact triggers differ; a common cause is not asserted.

    Prepared with ChatGPT assistance from local read-only records and isolated tests, at my request. Private prompts, chat/thread IDs, client IDs, account details, filesystem paths, screenshots, raw databases and application bundles are omitted. No usage charge or allowance deduction has been measured.

  10. differential-ai-jude-fisher commented on Oct 20, 2026

    @differential-ai-jude-fisher

    Reproduced multiple times. This is making Codex almost unusable. I'm running 5 codex windows in parallel (don't know if this causes it).

    At random a new instruction is queued instead of being sent to the model and at this point the chat is broken - no further messages can be sent, they just pile up in the queue.

    Branching the chat often fixes it. Restarting the app entirely always does - but this is a real pain with 5x parallel processes to restart.

  11. bwalkerMIR commented on Oct 20, 2026

    @bwalkerMIR

    This issue is definitely related to having multile codex windows open. I gave up on multiple windows, and since then I haven't been seeing this error. Obnoxious though that we are stuck at one window.

  12. bwalkerMIR commented on Oct 20, 2026

    @bwalkerMIR

    Actually I take that back, the issue is more rare on a single window but can still happen specifically when restarting a goal in the codex app (running on windows 11). It will occasionally find previous instruction it already processed (even if it was a day ago and had already completed) and it will run it again.

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

    appbugsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions