Skip to content

Codex desktop app: messages stay queued with a spinner for 5 to 10 minutes, even when the session is idle #54591

Open

Description

@rightonq-code

Since about 10 Oct 2026, messages I send in the Codex desktop app (macOS, GPT-6 Sol, High) don't go through. They stack up above the text box, each with a spinner and a bin icon, and sit there for 5 to 10 minutes before sending.

  • Happens even when the session is idle, and with no VPN.
  • Still happening after updating to the latest version and rebooting, and in new chats.
  • The bin icon deletes a queued message, but there's no way to resend it or force it through.

This looks like the regression reported in #50822 and #31128. Happy to provide logs if you tell me which ones you need.

Activity

  1. added
    bug
    app
    on Oct 16, 2026
  2. rightonq-code commented on Oct 16, 2026

    @rightonq-code
    Author

    Diagnostics as promised (identifiers redacted).

    Environment (verified 16 Oct 2026)

    • App: ChatGPT desktop / Codex, bundle id com.openai.codex
    • Version 26.1007.71326, build 20398, commit f37f098cf0950315e2fa3fa92520a50ec3a7be5a
    • macOS 27.0.1 (26A434)
    • Plan: Pro
    • Timezone: Europe/London (BST, UTC+1)

    Verified delayed-delivery incident, 15 Oct (UTC)

    • 20:35:43 screenshot shows the message still waiting above the composer
    • 20:36:09.994 preceding task_complete
    • 20:43:48.304 next task_started, containing the waiting message
    • Gap between completion and dispatch: 7 min 38 s (the original enqueue time isn't known, so the total wait may be longer)

    App log excerpts, ~/Library/Logs/com.openai.codex/2026/10/15/

    2026-10-15T20:35:19.055Z info [electron-message-handler] chatgpt_pubsub_reconnect_scheduled delayMs=5520.89 retryCount=0 rendererWindowFocused=false
    2026-10-15T20:36:44.697Z info [AppServerConnection] app_server_connection.closed code=1006 connectionId=7 failureReason=unknown hostKind=durable transport=websocket
    2026-10-15T20:36:44.699Z info [AppServerConnection] Skipping reconnect after app-server close connectionId=7 disposed=false isAppQuitting=true isStoppingConnection=false
    2026-10-15T20:39:08.333Z error [electron-message-handler] Request failed error={"code":-32001,"message":"App server request queue is full"} method=fs/getMetadata pendingCountAfter=23 priority=interactive
    2026-10-15T20:39:41.093Z warning [IpcClient] Received broadcast but no handler is configured method=thread-queued-followups-changed
    2026-10-15T20:43:48.311Z info [AppServerConnection] response_routed method=turn/start durationMs=152 queueWaitMs=0
    2026-10-15T20:43:48.553Z info [AppServerConnection] response_routed method=turn/steer durationMs=1 queueWaitMs=0
    

    Recurrence 16 Oct (UTC)

    2026-10-16T12:40:43.031Z info [electron-message-handler] chatgpt_pubsub_reconnect_scheduled delayMs=7587.70 retryCount=0
    2026-10-16T12:45:43.550Z warning [electron-message-handler] Failed to start visualization turn diff snapshot errorCode=-32001 errorMessage="App server request queue is full"
    2026-10-16T12:47:35.578Z warning [IpcClient] Received broadcast but no handler is configured method=thread-queued-followups-changed
    2026-10-16T12:53:53.518Z warning [IpcClient] Received broadcast but no handler is configured method=thread-queued-followups-changed
    

    Right now (about 12:55 UTC, 16 Oct) messages are stacked in three separate chats at once (two in one thread, one in another), so it is happening across every thread, not just one.

    Notes

    • The 7+ minute delay after task completion is verified.
    • Repeated "App server request queue is full" (-32001), and thread-queued-followups-changed broadcasts arriving with no handler configured, line up with the stalls. That's a correlation, not a proven cause. The 1006 close records isAppQuitting=true, which looks wrong while the app is running normally.

    Please look at why queued follow-ups aren't dispatched for minutes after the previous turn completes, and whether the missing handler for thread-queued-followups-changed or app-server queue saturation is behind it.

  3. rightonq-code commented on Oct 16, 2026

    @rightonq-code
    Author

    Related to #53959 (same symptom on desktop) and #53608 (Windows). Keeping this one open because it has the macOS logs and timings above; happy for maintainers to merge them into whichever issue they prefer.

  4. guimcast commented on Oct 17, 2026

    @guimcast

    Also having the same problem on Windows. I have a workaround that is working reliably in my tests, including messages sent during a response and after a turn has stopped. It bypasses the normal composer queue; it is not a confirmed fix for the underlying bug.

    My latest tests were on Codex desktop 26.1013.40934 (Windows package 26.1013.4894.0).

    What I observed:

    • Messages could remain in the desktop queue even after the agent had received them; other messages arrived much later.
    • The desktop app and VS Code extension could disagree about which messages were pending. I also saw Error submitting message: Queued follow-up changed before dispatch in VS Code.
    • Clearing the queue alone was insufficient in one test: a supposedly cleared message was delivered afterward. My workaround now removes each recorded item through the owner, clears the remaining queue, and synchronizes the discarded message IDs before sending the new message.

    The route that works for me is the desktop app's local session-owner IPC, through the Windows named pipe \\.\pipe\codex-ipc. VS Code does not need to be running; the Codex desktop app and the chat's local owner do. This is an internal interface, so the method versions may change with app updates.

    The sequence is:

    1. Initialize an IPC client and discover the owner of the exact local chat ID.
    2. Back up the replacement message and queued records locally.
    3. Call thread-follower-remove-queued-message for each saved queued item, then thread-follower-clear-queued-messages.
    4. Synchronize discardedMessageIds through thread-follower-set-queued-follow-ups-state, retaining any other records.
    5. Call thread-follower-steer-turn (version 1).
    6. Only if the owner explicitly rejects steering because there is no active turn, call thread-follower-start-turn (version 2) with inheritThreadSettings: true. Do not retry automatically after a timeout or ambiguous failure.

    I wrapped this in a Windows helper that reads the active chat/composer through UI Automation and replaces Enter, with a persisted on/off toggle. The standalone code below contains the queue/send part, without that hotkey/UI wrapper. I tested this extracted script against the live app: owner discovery and an active-turn send succeeded. The installed helper's stopped-turn fallback was tested separately.

    Before running: this intentionally discards the queued messages for the selected chat, after saving a local backup; it sends only the new text file. Use the exact chat UUID, inspect it first, and avoid sending/editing queue items concurrently. It reads the app's saved queue but does not directly edit its databases or application files. Backups/receipts stay in %LOCALAPPDATA%\CodexQueueWorkaround. If delivery is uncertain, inspect chat history before trying again.

    This example is Windows / PowerShell 7.5+ / existing local chats / text only. It does not capture the current composer, attachments, annotations, or model overrides. I have not tested the macOS transport.

    Standalone PowerShell workaround: Send-CodexQueueWorkaround.ps1
    #requires -Version 7.5
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)][guid]$ThreadId,
        [string]$TextFile,
        [switch]$InspectQueue,
        [switch]$DiscardQueuedMessages
    )
    $ErrorActionPreference = 'Stop'
    class CodexOwnerRejected : System.Exception {
        CodexOwnerRejected([string]$message) : base($message) {}
    }
    $chatId = $ThreadId.ToString()
    $codexRoot = $env:CODEX_HOME
    if (!$codexRoot) { $codexRoot = Join-Path $env:USERPROFILE '.codex' }
    $statePath = Join-Path $codexRoot '.codex-global-state.json'
    $script:clientId = 'initializing-client'
    $pipe = [IO.Pipes.NamedPipeClientStream]::new(
        '.', 'codex-ipc', [IO.Pipes.PipeDirection]::InOut,
        [IO.Pipes.PipeOptions]::Asynchronous)
    
    function Read-AppState {
        $stream = [IO.FileStream]::new($statePath, [IO.FileMode]::Open,
            [IO.FileAccess]::Read, [IO.FileShare]::ReadWrite -bor [IO.FileShare]::Delete)
        try {
            if ($stream.Length -gt 64MB) { throw 'State file exceeds read limit.' }
            $reader = [IO.StreamReader]::new($stream)
            try { return ($reader.ReadToEnd() | ConvertFrom-Json -AsHashtable -DateKind String) }
            finally { $reader.Dispose() }
        } finally { $stream.Dispose() }
    }
    function Get-Queue($state) {
        if ($state['queued-follow-ups']) {
            @($state['queued-follow-ups'][$chatId] | Where-Object { $null -ne $_ })
        }
    }
    function Write-Frame($frame) {
        $bytes = [Text.Encoding]::UTF8.GetBytes(($frame | ConvertTo-Json -Depth 60 -Compress))
        $prefix = [BitConverter]::GetBytes([uint32]$bytes.Length)
        $pipe.Write($prefix, 0, 4)
        $pipe.Write($bytes, 0, $bytes.Length)
        $pipe.Flush()
    }
    function Read-Bytes([int]$count, $watch, [int]$deadline) {
        $buffer = [byte[]]::new($count)
        $offset = 0
        while ($offset -lt $count) {
            $remaining = $deadline - [int]$watch.ElapsedMilliseconds
            if ($remaining -le 0) { throw 'IPC timeout; outcome may be unknown. Do not auto-resend.' }
            $task = $pipe.ReadAsync($buffer, $offset, $count - $offset)
            if (!$task.Wait($remaining)) { throw 'IPC timeout; outcome may be unknown. Do not auto-resend.' }
            if ($task.Result -eq 0) { throw 'IPC disconnected; outcome may be unknown.' }
            $offset += $task.Result
        }
        return ,$buffer
    }
    function Invoke-Ipc([string]$method, [hashtable]$parameters, [string]$target) {
        $requestId = [guid]::NewGuid().ToString()
        $isStart = $method -eq 'thread-follower-start-turn'
        $timeout = if ($isStart) { 60000 } else { 8000 }
        $frame = @{
            type='request'; requestId=$requestId; sourceClientId=$script:clientId
            version=$(if ($isStart) { 2 } else { 1 })
            method=$method; params=$parameters; timeoutMs=$timeout
        }
        if ($target) { $frame.targetClientId = $target }
        Write-Frame $frame
        $watch = [Diagnostics.Stopwatch]::StartNew()
        while ($true) {
            $header = Read-Bytes 4 $watch ($timeout + 5000)
            $size = [BitConverter]::ToUInt32($header, 0)
            if ($size -eq 0 -or $size -gt 64MB) { throw 'Invalid IPC frame.' }
            $body = Read-Bytes $size $watch ($timeout + 5000)
            $reply = [Text.Encoding]::UTF8.GetString($body) | ConvertFrom-Json -AsHashtable -DateKind String
            if ($reply.type -eq 'client-discovery-request') {
                Write-Frame @{type='client-discovery-response'; requestId=$reply.requestId; response=@{canHandle=$false}}
            } elseif ($reply.type -eq 'request') {
                Write-Frame @{type='response'; requestId=$reply.requestId; resultType='error'; error='no-handler-for-request'}
            } elseif ($reply.type -eq 'response' -and $reply.requestId -eq $requestId) {
                if ($reply.resultType -ne 'success') {
                    throw [CodexOwnerRejected]::new([string]$reply.error)
                }
                return $reply
            }
            # Broadcasts and unrelated responses are ignored.
        }
    }
    function Save-Receipt {
        [IO.File]::WriteAllText($receiptPath, ($receipt | ConvertTo-Json -Depth 80), [Text.UTF8Encoding]::new($false))
    }
    
    $receipt = $null
    try {
        if (!$InspectQueue) {
            if (!$DiscardQueuedMessages) { throw 'Use -DiscardQueuedMessages to explicitly allow clearing this chat queue.' }
            if (!$TextFile) { throw 'Supply a UTF-8 -TextFile containing the message.' }
            $message = [IO.File]::ReadAllText((Resolve-Path -LiteralPath $TextFile).ProviderPath)
            if ([string]::IsNullOrWhiteSpace($message) -or $message.Length -gt 200000) { throw 'Message must contain 1-200000 characters.' }
        }
        $pipe.Connect(2500)
        $init = Invoke-Ipc 'initialize' @{clientType='queue-workaround'}
        $script:clientId = $init.result.clientId
        $discovery = Invoke-Ipc 'thread-owner-discovery' @{hostId='local'; conversationId=$chatId}
        $owner = $discovery.handledByClientId
        if (!$owner) { throw 'No local thread owner found. Open the chat in Codex first.' }
        $snapshot = @(Get-Queue (Read-AppState))
        if ($InspectQueue) {
            @{threadId=$chatId; ownerFound=$true; queuedIds=@($snapshot | ForEach-Object {$_.id})} | ConvertTo-Json
            return
        }
        $backupDir = Join-Path $env:LOCALAPPDATA 'CodexQueueWorkaround'
        [void][IO.Directory]::CreateDirectory($backupDir)
        $runId = [guid]::NewGuid().ToString()
        $receiptPath = Join-Path $backupDir ($runId + '.json')
        $receipt = @{threadId=$chatId; message=$message; queueBefore=$snapshot; phase='backed-up'; removals=@()}
        Save-Receipt
        Copy-Item -LiteralPath $receiptPath -Destination (Join-Path $backupDir ($runId + '-backup.json'))
        $discarded = [Collections.Generic.HashSet[string]]::new()
        foreach ($queued in $snapshot) {
            if (!$queued.id -or !$discarded.Add([string]$queued.id)) { continue }
            $removed = Invoke-Ipc 'thread-follower-remove-queued-message' @{conversationId=$chatId; messageId=$queued.id} $owner
            $receipt.removals += $removed.result
            Save-Receipt
        }
        $cleared = Invoke-Ipc 'thread-follower-clear-queued-messages' @{conversationId=$chatId} $owner
        $receipt.clearResult = $cleared.result
        Save-Receipt
        foreach ($queued in $cleared.result.messages) {
            if ($queued.id) { [void]$discarded.Add([string]$queued.id) }
        }
        if ($discarded.Count -gt 0) {
            $retained = @(Get-Queue (Read-AppState) | Where-Object { !$discarded.Contains([string]$_.id) })
            $sync = Invoke-Ipc 'thread-follower-set-queued-follow-ups-state' @{
                conversationId=$chatId; state=@{ $chatId=$retained }; discardedMessageIds=@($discarded)
            } $owner
            $receipt.discardSyncResult = $sync.result
        }
        $id = [guid]::NewGuid().ToString()
        $inputItems = @(@{type='text'; text=$message; text_elements=@()})
        $restore = @{
            id=$id; text=$message
            context=@{workspaceRoots=@(); imageAttachments=@(); fileAttachments=@(); addedFiles=@()
                commentAttachments=@(); responseTextAnnotations=@(); attachmentOrder=@(); prompt=$message}
            responsesapiClientMetadata=@{source='codex'; client_type='queue-workaround'}
        }
        $receipt.phase = 'dispatching'
        $receipt.clientUserMessageId = $id
        Save-Receipt
        try {
            $sent = Invoke-Ipc 'thread-follower-steer-turn' @{
                conversationId=$chatId; clientUserMessageId=$id; input=$inputItems
                restoreMessage=$restore; additionalContext=@{}
            } $owner
            $receipt.method = 'steer'
        } catch [CodexOwnerRejected] {
            $reason = $_.Exception.Message
            if ($reason -notmatch 'no active turn to steer|is not active|^Cannot steer conversation \S+ because its active turn already ended$') { throw }
            $sent = Invoke-Ipc 'thread-follower-start-turn' @{
                conversationId=$chatId
                turnStart=@{
                    request=@{threadId=$chatId; input=$inputItems; clientUserMessageId=$id}
                    context=@{restoreMessage=$restore; inheritThreadSettings=$true}
                }
            } $owner
            $receipt.method = 'start'
        }
        $receipt.phase = 'accepted'
        $receipt.response = $sent.result
        Save-Receipt
        @{accepted=$true; method=$receipt.method; receipt=$receiptPath} | ConvertTo-Json
    } catch {
        if ($null -ne $receipt) { $receipt.error = $_.Exception.Message; Save-Receipt }
        throw
    } finally { $pipe.Dispose() }

    Save that as Send-CodexQueueWorkaround.ps1. Put the message you want to send in a UTF-8 message.txt, and use the chat UUID from its copied chat link:

    # Read-only: confirm that the intended chat has a local owner and inspect queued IDs.
    .\Send-CodexQueueWorkaround.ps1 -ThreadId '<chat UUID>' -InspectQueue
    
    # Explicitly discard that chat's queue, back it up, then send message.txt.
    .\Send-CodexQueueWorkaround.ps1 -ThreadId '<chat UUID>' -TextFile '.\message.txt' -DiscardQueuedMessages

    One extra detail for anyone implementing the full composer wrapper: response annotations need their selected text, comment, and source message/offsets preserved. The app's display parser also expects a leading newline before # Response annotations:. Without it, the model can receive the annotation correctly while the app displays (No content) for an annotation-only message. Matching that format restored the annotation chip and navigation to the referenced response in my test.

    For maintainers: this narrows the behavior in my setup, but does not establish the root cause. Direct owner dispatch works while the normal queued-composer path stalls, and discarded-item synchronization matters. I would investigate the queue admission/dispatch handoff and how discarded IDs propagate between clients. I cannot confirm whether this has the same cause as the macOS log errors above.

  5. d-dalee commented on Oct 20, 2026

    @d-dalee

    Additional macOS reproduction, reported on 20 October 2026 with the user's explicit authorization.

    Environment

    • Codex desktop, production channel.
    • Installed version 26.1013.40934, build 20770. The app's updater reports up_to_date for the configured channel.
    • macOS 26.5.1 (verified locally); the affected screenshot shows GPT-6.1 Sol / Extra High.

    User-observed behavior

    • Submitted messages and steers intermittently remain as pending cards above the composer, with a spinning indicator and a trash icon, including when the conversation appears idle.
    • Initially observed in one conversation on 19 October; the user now reports it across several conversations, including newly created ones.
    • Messages can eventually arrive; permanent loss is not established.
    • Switching away from the conversation and reopening it did not resolve the recurrence.
    • The user installed the latest offered update on 20 October hoping to resolve this, but reports that it continues.

    Independently checked, with limits

    • The supplied screenshot confirms the pending-card/spinner/delete-control presentation. A static screenshot does not establish backend state or elapsed waiting time.
    • During an earlier affected occurrence, a read-only thread inspection showed idle with its latest recorded turn completed. The two pictured pending follow-ups were absent from the latest inspected turns at that time.
    • One explicitly authorized cross-chat connectivity probe reached that conversation and was acknowledged in approximately 12 seconds. This demonstrates that delivery route on one occasion, not a fix for the typed-message queue and not proof that all delivery paths were healthy.
    • No controlled minimal reproduction, precise local enqueue-to-dispatch timing, or common root cause has been established.

    Work impact

    The user describes this as very disruptive to daily work. They cannot reliably deliver timely corrections or steering instructions, or tell whether a pending instruction has already arrived. Re-entering consequential instructions risks duplicate execution if delayed originals later dispatch.

    Please investigate idle-to-next-turn queue admission/dispatch and reconciliation of pending entries with authoritative thread/turn and delivered-message state. Pending messages should either dispatch or expose an actionable error, preserving message identity and avoiding duplicate execution.

    Related symptom reports: #53959 and #34026. These links do not establish an identical underlying cause.

    This is a sanitized report: no private task IDs, conversation text, local paths, screenshots, raw logs, credentials, or app-owned state are uploaded. No local application state was modified for this report.


    Update — 25 October 2026

    This update was prepared and posted by Codex on the user's behalf, with the user's explicit authorization. These observations are separated because a common cause has not been established. The version/build above describes the original 20 October report; it was not rechecked for this update.

    Apparent reposting during delayed delivery — user reported, unverified

    The user reports that messages sometimes appear to repost when delivery is delayed, across several conversations. They do not yet have sufficiently documented exact cases. Message identities, enqueue/delivery times, actual duplicate delivery and duplicate execution have not been verified. Display duplication, delayed original messages and new submissions have not been distinguished.

    A follow-up clarification in this reporting conversation reached Codex after the preceding report update had already been posted. The user attributes its late arrival to the same message-delivery problem. The original submission/enqueue time is unavailable, so the delay cannot be quantified and its cause is not independently established.

    Question panel absent and composer disappears — user reported

    The user reports a new desktop UI failure: when an agent requests a response through a choice panel, the panel sometimes does not appear and the normal text-entry composer disappears, leaving no visible way to answer in that conversation. No controlled reproduction or direct visual verification of this failure has been completed. Please investigate the question-panel/composer state transition and preserve an ordinary text-entry fallback when a panel cannot render.

    Cross-conversation messaging rejection — independently observed, distinct from a queued send

    Three cross-conversation send attempts on 25 October returned this exact tool error:

    MCP tool call requires approval, but approval policy is never

    The recorded attempts failed immediately. A conversational approval did not make a later attempt succeed. A manual user-delivered handoff did reach the destination and was acknowledged. These are verified rejections, not proof of delayed queue dispatch. Why the effective approval policy was never, and whether that reflects configuration or a defect, remain unverified.

    A read-only snapshot of saved queued-follow-up state contained no entries for the two relevant conversations at inspection time. This is not an authoritative inventory of all in-memory, backend or in-flight messages.

    These symptoms add to the user's difficulty knowing whether an instruction was rejected, waiting, displayed twice or actually delivered. Please advise whether the panel failure and approval-policy rejection should be tracked separately from this delivery issue. No shared root cause or fix is claimed.

    No private conversation/project names, IDs, prompts, screenshots, local paths, raw logs, credentials or application-state files are included. No queue or permission settings were changed for this report.

  6. barelyknown commented on Oct 27, 2026

    @barelyknown

    Seeing this on native Linux: Codex desktop 26.1013.31256, build 20586, Omarchy x86_64, Wayland/Hyprland. I routinely use multiple Codex windows.

    The chat was idle with its latest turn completed, but the desktop queue still contained the answered prompt and a newer follow-up, both marked pending.

    Timeline on October 26, 2026, Pacific time:

    • 17:42:30 — Message A entered the queue.
    • 17:50:38 — A turn containing A’s text started, approximately eight minutes later.
    • 17:51:33 — That turn completed.
    • 17:51:40 — Message B entered the queue.
    • 17:53:23 — The chat was idle, with both A and B still marked pending.

    I took no deliberate action in the affected chat immediately before A began processing. Other Codex windows were in use.

    Desktop logs show owner/follower activity across windows. I haven’t tested whether using a single window prevents recurrence.

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

    appbugperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions