Skip to content

Messages get stuck in queue or disappear after 2–3 turns in VS Code #50239

Closed as duplicate

Description

@martinvtt

What version of the IDE extension are you using?

Reproduced with 26.930.21537 and 26.928.40906.

What subscription do you have?

Enterprise

Which IDE are you using?

Visual Studio Code

What platform is your computer?

Windows x64. Reproduced both in native Windows VS Code and in VS Code connected to Ubuntu through WSL.

What issue are you seeing?

Codex stops reliably processing messages after the first 2–3 turns.

The first messages work. A subsequent message briefly appears in the queue above the composer, with a loading indicator. Later messages remain queued or disappear without being processed. I often have to resend the same message several times.

The issue also occurs in a temporary VS Code profile with only Codex enabled.

Logs collected during troubleshooting include:

[warning] Failed to release queued message send lock
errorMessage=""undefined" is not valid JSON"
errorName=SyntaxError

[warning] [IpcClient] Received broadcast but no handler is configured method=thread-queued-followups-changed

[warning] [IpcClient] Received broadcast but no handler is configured method=query-cache-invalidate

[error] [desktop-notifications][global-error] ResizeObserver loop completed with undelivered notifications.

[error] Request failed
error={"code":-32603,"message":"No such file or directory (os error 2)"}
method=fs/getMetadata

These errors were observed, but their causal relationship to the lost messages has not been established.

What steps can reproduce the bug?

  1. Open VS Code on Windows.
  2. Create a temporary profile and enable only the Codex extension.
  3. Open a local Windows folder and start a new Codex conversation.
  4. Send a short message, such as "bonjour", and wait for the response.
  5. Send another short message and wait for the response.
  6. Send a third message.

In my tests, the second message briefly enters the queue, and by the third message the problem returns: the message gets stuck or disappears without a response.

The same general problem also occurs when using VS Code connected to Ubuntu through WSL.

What is the expected behavior?

Each submitted message should be processed once, without requiring repeated submissions. If processing fails, the extension should display an actionable error and preserve the message.

Additional information

Troubleshooting already attempted:
- Reloading and restarting VS Code.
- Starting new conversations.
- Downgrading from 26.930.21537 to 26.928.40906.
- Testing native Windows and WSL.
- Testing a temporary VS Code profile with only Codex enabled.

The bundled CLI worked during a short multi-message test when launched with --no-daemon.

Important: a local diagnostic modification was applied to the installed extension bundles after the original failures. It adds `return null` to the `queued-follow-up-send-lock-release` handler, which otherwise returns undefined while the frontend expects JSON.

An isolated test reproduced the JSON parsing error and confirmed that returning null fixes that specific response error. However, the modification did not resolve the queued/lost messages. The installed bundles may therefore still contain this local modification; the temporary profile test was not necessarily using an unmodified bundle.

Additional information

This appears closely related to #49943, #50195 and #50118. I also reproduced it in a temporary VS Code profile with only Codex enabled. The CLI works with --no-daemon. Returning null from the queued-message lock release handler did not resolve the lost messages.

Activity

  1. added
    extension
    on Oct 2, 2026
  2. added
    bug
    windows-os
    app-server
    on Oct 2, 2026
  3. javagotchi commented on Oct 2, 2026

    @javagotchi

    Independent confirmation of this regression.

    • Windows host using VS Code Remote WSL2
    • VS Code / server 1.140.0 (07f806f999227108933c2e30515b26eecc1fda74), x64
    • Ubuntu 24.04 on WSL2
    • Bundled Codex CLI 0.159.2
    • Remote extension host package reports 26.5928.31416
    • Client build commit in Codex.log: 69c39c76da78edf143e380efffe94e49f10da8e0

    The user reports that composer submissions frequently hang or fail to appear since the 2026-10-01 rollout, making sustained work in the VS Code extension unreliable. The same thread-queued-followups-changed, query-cache-invalidate, ResizeObserver, and fs/getMetadata log patterns are present.

    The lower package version reported by the remote extension host, combined with the current client build and matching symptoms, may indicate that this is not limited to the two VSIX versions already listed in the issue and could involve a separately delivered web-client/IPC rollout. This is only an inference, not a confirmed cause.

    No raw logs, prompt content, repository paths, account metadata, or thread identifiers are included.

  4. andrerav commented on Oct 2, 2026

    @andrerav

    This is being reported all over the internet, and is most likely impacting a large amount of users.

  5. JaviFRx commented on Oct 2, 2026

    @JaviFRx

    Confirmed duplicate via #50249. Reproduced on Windows x64 with VS Code 1.140.0, Codex extension 26.5928.31416, and Codex CLI 0.156.1. After a completed turn, follow-up prompts remain queued indefinitely, including after cancelling and resubmitting them. Logs show latestTurnStatus=completed with markedStreaming=true and repeated Failed to release queued message send lock errors reporting undefined is not valid JSON. No screenshot attached for workspace privacy.

  6. matthewfischl commented on Oct 2, 2026

    @matthewfischl

    Any chance this could impact usage limits? I have chatgpt plus and after experiencing this issue I quickly reached my 5 hour limit.

  7. GeoRouv commented on Oct 2, 2026

    @GeoRouv

    Same issue here

  8. RCN81 commented on Oct 2, 2026

    @RCN81

    Same issue here. Reloading the windows, retries the previous sent prompt, and then executes the queued messages. It seems that the previous prompt is not registered as completed, so any new prompts are queued.

  9. Comrad3J commented on Oct 2, 2026

    @Comrad3J

    Additional report from a Linux x64 VS Code installation, submitted at the user's request.

    Environment:

    • Codex extension openai.chatgpt 26.930.21537, stable channel.
    • The current runtime error stacks reference this version. Retained logs also contain the same error on 26.928.31416.
    • The user reports that prompts sometimes disappear. The exact UI sequence has not been reduced to a deterministic reproduction.

    Local evidence collected before any extension modification:

    • Retained logs contain 50 occurrences of Failed to release queued message send lock with SyntaxError: "undefined" is not valid JSON.
    • Logs also contain unhandled broadcasts for thread-queued-followups-changed and query-cache-invalidate.
    • One prompt persisted in VS Code global state with submission.status = "outcome-unknown" and pausedReason = "submission-outcome-unknown".
    • The local conversation-history database contains a user message with the same client ID. Its turn completed successfully, without a stored error. Thus this particular prompt reached Codex, while the extension's persisted submission status remained stale.

    The installed release handler calls release(...) and returns undefined. The internal bridge serializes the value with JSON.stringify(o), and the webview calls JSON.parse(e.bodyJsonString). A test using the extracted installed handler and parser reproduced the SyntaxError and confirmed that the lock-release side effect had already completed.

    After collecting that evidence, a local correction added return null to this handler. The extracted handler/parser test then passed, the modified bundle passed a syntax check, and the installed file differs from its backup only by this return statement.

    This correction addresses the response-parsing defect in #49834. It is not a verified fix for disappearing prompts. Runtime verification after reloading VS Code is pending. No live conversation state or database was changed.

    Please investigate submission-status reconciliation and retention of prompt text when submission or queue state is uncertain. The relationship between the JSON warning and prompt loss remains unproven.

    No prompt text, private local paths, thread/client identifiers, account data, credentials, or raw logs are included.

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

    app-serverbugextensionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions