Skip to content

[VS Code Extension] Follow-up prompt stuck in queue and previous prompt appears re-executed after restart on 26.928.31416 #49968

Closed as duplicate

Description

@Kanpfx

What version of the IDE extension are you using?

26.928.31416

What subscription do you have?

GPT Plus

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

After restarting VS Code, the first Codex prompt works normally.

Starting from the second prompt, pressing Enter often leaves the message stuck indefinitely in an “adding to queue” / pending state.

For example, before restarting:

Prompt 1
Response 1
Prompt 2 (stuck in queue)

After restarting VS Code and reopening the same conversation, the history may become:

Prompt 1
Prompt 2
Response 1'
Response 2

Response 1' is not an identical duplicate of Response 1. It is a newly generated response with different wording but substantially the same meaning, which suggests that Prompt 1 may have been executed again rather than merely duplicated in the UI.

At the same time, Prompt 2 appears to have been accepted and executed even though the UI previously remained stuck in the queue state.

This looks like a queue/transcript state synchronization issue that can result in both hidden successful submissions and possible repeated execution after restart.

What steps can reproduce the bug?

  1. Restart VS Code.
  2. Open a Codex conversation.
  3. Send the first prompt — it works normally.
  4. Send a second prompt — it remains stuck in “adding to queue”.
  5. Restart VS Code.
  6. Reopen the conversation.
  7. The queued prompt has been executed, and a second, semantically similar response to the first prompt may also appear.

What is the expected behavior?

No response

Additional information

This looks similar to #31336, but the trigger is much more consistent in my case.

The duplicated/reprocessed prompt is always the previous prompt that completed normally, rather than a random older prompt from the conversation history.

Activity

  1. added
    extension
    on Oct 1, 2026
  2. added
    bug
    windows-os
    session
    on Oct 1, 2026
  3. mikhan808 commented on Oct 1, 2026

    @mikhan808

    Summary

    The Codex IDE extension silently drops messages when continuing an existing conversation. The conversation opens and its history is displayed, but submitting a message clears the input without adding the message to the conversation or starting an assistant response. All buttons remain available.

    The user reports the same behavior after switching from extension 26.5928.31416 to the stable release 26.928.31416. One successful message after switching did not resolve subsequent failures.

    Steps to reproduce

    1. Open an existing conversation in the Codex VS Code extension.
    2. Enter a message and submit it.
    3. Observe that the input clears, but the message is absent from the conversation and no assistant response starts.

    Expected behavior

    The submitted message appears in the conversation and starts a response, or a visible error preserves the message for retry.

    Environment

    • Component: Codex IDE extension, Linux x64, VS Code Remote WSL
    • Extension versions affected: 26.5928.31416 and stable 26.928.31416
    • VS Code: 1.139.1, x64
    • VS Code commit: 04c0d99f4fb0d8afe6ce4f0c58e31e183ac3e4b1
    • Environment: Windows host, Ubuntu 24.04 under WSL2
    • Kernel: 6.6.87.2-microsoft-standard-WSL2
    • Separately installed Codex CLI: 0.151.0 (not necessarily the extension's bundled version)
    • Reported: October 1, 2026

    Log evidence

    The extension logs contain the following warning in both versions:

    Failed to release queued message send lock
    errorMessage="\"undefined\" is not valid JSON"
    errorName=SyntaxError
    SyntaxError: "undefined" is not valid JSON
        at JSON.parse (<anonymous>)
        at e.onFetchResponse (.../webview/assets/app-initial-*.js:3:1518)
    

    The warning is present in the 26.5928.31416 logs and also at 14:55:40.848 in the stable 26.928.31416 log on October 1, 2026. Local paths and unrelated log contents have been omitted.

    This warning may be relevant to sending/queue management, but its causal relationship to dropped messages has not been established. The symptoms above are user-reported; the versions and warnings were checked in local installation metadata and logs.

  4. jameshgriffin commented on Oct 1, 2026

    @jameshgriffin

    I’m seeing what appears to be the same or a closely related issue on VS Code / Windows with extension 26.928.31416.

    In my case, an existing conversation intermittently stops responding after I submit a prompt. Reloading the VS Code window or restarting VS Code can temporarily recover it, but the problem recurs.

    A useful A/B test: while the existing conversation was stuck, I opened a brand-new Codex conversation in the same VS Code process and same workspace and submitted Say hello. The new conversation responded normally, while the existing conversation remained stuck. This suggests the problem is associated with conversation/session state rather than the workspace, network connection, authentication, or the extension being completely unavailable.

    While the existing conversation was stuck, Output → Codex repeatedly logged:

    Error fetching httpStatus=404 statusText="Not Found" url=/tbo/primary
    sa_server_request_failed ... routePattern=/tbo/primary status=404
    

    It also logged:

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

    The VS Code Developer Tools console additionally contains repeated warnings like:

    WARN [mainThreadStorage] large extension state detected
    (extensionId: openai.chatgpt, global: true): ~731-737kb
    

    These occur very frequently while the state size changes slightly. VS Code also recorded:

    Extension host (LocalProcess ...) is unresponsive.
    Extension host (LocalProcess ...) is responsive.
    UNRESPONSIVE extension host: received responsive event and cancelling profiling session
    

    I have not seen the Failed to release queued message send lock / "undefined" is not valid JSON warning mentioned above.

    Happy to provide further logs or run additional diagnostics if useful.

  5. jameshgriffin commented on Oct 1, 2026

    @jameshgriffin

    Follow-up observation from the same session:

    I had a follow-up message (Thanks, Next!) visibly stuck in the queued/pending state. I selected Turn off queueing from its menu.

    Immediately after doing that, the entire Codex extension UI became temporarily unresponsive. It later recovered, but there was no visible change: the message still appeared queued/pending.

    I then ran Developer: Reload Window. After reload:

    • queueing had in fact been disabled (the menu now offered Turn on queueing), so the earlier command had taken effect despite the UI appearing unchanged;
    • the message was still persisted;
    • there was no response to the message;
    • the message now offered Retry;
    • its tooltip said: “Delivery could not be confirmed. Check the conversation before deleting this saved message.”

    So in this case the queue-setting state changed successfully, but the UI did not reflect/reconcile that change until the VS Code window was reloaded, and the queued message remained in an uncertain-delivery state with no response.

  6. niickl commented on Oct 1, 2026

    @niickl

    I can reproduce the same regression on VS Code Remote - WSL with extension 26.928.31416.

    Additional diagnostics that may help narrow it down:

    • First prompt in a newly-created conversation sends and completes normally.
    • The second prompt cannot be sent; clicking Send produces no new turn-start in exthost*/openai.chatgpt/Codex.log.
    • Reproduces in both existing and brand-new conversations.
    • Restarting VS Code temporarily allows one prompt again, then the next prompt fails.
    • The active extension app-server process still owns the thread writer lock when the UI is stuck.
    • lslocks shows the current extension-owned Codex process holding the FLOCK for the affected thread, so this does not appear to be another process stealing the writer lock.
    • The webview logs around the completed first turn include repeated IPC warnings such as:
      • Received broadcast but no handler is configured method=thread-read-state-changed
      • Received broadcast but no handler is configured method=query-cache-invalidate
      • Received broadcast but no handler is configured method=thread-queued-followups-changed
    • For the new thread, the log shows thread_stream_role_changed ... role=owner, resumeState=resumed streamRole=owner, then the first turn-start; no second turn-start appears when the next Send fails.
    • Downgrading only the VS Code extension to 26.917.62051 fixes the multi-turn send behavior immediately.

    Environment:

    • VS Code Remote - WSL / Ubuntu
    • Codex CLI: 0.159.3
    • Problematic extension: openai.chatgpt 26.928.31416
    • Working rollback: 26.917.62051
    • ChatGPT Plus account

    This strongly suggests the regression is in the extension/webview ↔ app-server state after the first completed turn, rather than thread ownership or local Codex DB corruption.

  7. ryangaige-fp commented on Oct 1, 2026

    @ryangaige-fp

    I am seeing this consistently as well on Windows.

    The first prompt completes normally, but every follow-up prompt in the same conversation briefly appears to start and then cancels/stops without producing a response.

    This happens every single time for me and makes multi-turn Codex conversations unusable.

    Current extension version: 26.928.31416

  8. mifai commented on Oct 2, 2026

    @mifai

    I have the same problem with a newer version v26.928.40906 and Windows.

  9. stepfunc-droid commented on Oct 2, 2026

    @stepfunc-droid

    Additional reproduction from Oct 2, 2026 in the VS Code extension.

    A conversation can become completely unusable after an interruption. The UI is left in a persistent paused queue state:

    • Banner: Queue paused because you interrupted
    • A Resume control is shown
    • Multiple follow-up messages remain visibly queued underneath
    • The composer is still visible, but the conversation cannot continue normally and new follow-ups do not make progress

    This appears consistent with the queue/session state desynchronization described in this issue, but with an additional failure mode where an interrupted thread gets stuck in a paused queue state instead of recovering.

    The screenshot for this reproduction is intentionally not attached because it contains local connection details/credentials. Those details are unrelated to the bug and should be treated as redacted.

    Exact extension version / platform were not captured in the screenshot; the report was observed on Oct 2, 2026.

  10. stepfunc-droid commented on Oct 2, 2026

    @stepfunc-droid

    Severity update from the same reproduction:

    The affected thread is not merely delayed; it becomes effectively unrecoverable from the VS Code UI.

    When attempting to send another message, Codex shows a modal:

    Send message?
    You are about to send a message. Do you want to clear the 4 messages previously queued?

    The modal offers Clear queue and Send message.

    In this broken state, neither button has any effect:

    • Clear queue does not clear the queued messages.
    • Send message does not send the new message or resume the conversation.
    • The thread remains stuck at Queue paused because you interrupted.
    • Multiple queued follow-ups remain visible.
    • The composer remains present, but the conversation cannot make progress.

    This is a complete blocker for the affected thread rather than a cosmetic queue-state issue. Once the thread reaches this state, the user cannot continue the conversation or recover it using the queue controls exposed by the extension.

    Observed Oct 2, 2026 in the VS Code extension.

  11. fweth commented on Oct 2, 2026

    @fweth

    Seeing this on Linux as well, I experience it since the 6.1 Sol update:
    Image
    Additionally, it sometimes happens that the message just disappears, so not landing in the queue either.

  12. HubKing commented on Oct 2, 2026

    @HubKing

    I also started to have this issue in VS Code today, constantly. My Codex extension version is 26.930.21537. I wasted a lot of time for this. How the heck can things like this happen with a multi-billion dollar company's flagship software... Can't you just set some sort of automated AI code review process before releasing?

  13. ObjectOriented0 commented on Oct 2, 2026

    @ObjectOriented0

    If you are suffering from this issue, you can install a previous version of the extension in VS Code by doing the following:

    1. Open the Extensions tab and find Codex.
    2. Click the carat next to the "Uninstall" button.
    3. Select "Install Specific Version..."
    4. Then, pick version "26.917.62051" or one that works for you.
  14. jennisdebbaut-lgtm commented on Oct 2, 2026

    @jennisdebbaut-lgtm

    i'm having a similar issue, opening a second vs code window and loading the codex extensions over there somehow fixes the issue in the first window. i did not even type anything in the second window

  15. GeoRouv commented on Oct 2, 2026

    @GeoRouv

    Same issue here

  16. jameshgriffin commented on Oct 2, 2026

    @jameshgriffin

    If you are suffering from this issue, you can install a previous version of the extension in VS Code by doing the following:

    1. Open the Extensions tab and find Codex.
    2. Click the carat next to the "Uninstall" button.
    3. Select "Install Specific Version..."
    4. Then, pick version "26.917.62051" or one that works for you.

    Can confirm: this worked for me. I went back to 26.917.62051

  17. Living-Tribunal commented on Oct 2, 2026

    @Living-Tribunal

    If you are suffering from this issue, you can install a previous version of the extension in VS Code by doing the following:

    1. Open the Extensions tab and find Codex.
    
    2. Click the carat next to the "Uninstall" button.
    
    3. Select "Install Specific Version..."
    
    4. Then, pick version "26.917.62051" or one that works for you.
    

    I too can confirm this worked for me!

  18. TechTimeGuy commented on Oct 2, 2026

    @TechTimeGuy

    If you are suffering from this issue, you can install a previous version of the extension in VS Code by doing the following:

    1. Open the Extensions tab and find Codex.
    2. Click the carat next to the "Uninstall" button.
    3. Select "Install Specific Version..."
    4. Then, pick version "26.917.62051" or one that works for you.

    Confirmed, Worked for me as well.

  19. naokixp666 commented on Oct 3, 2026

    @naokixp666

    I am seeing what appears to be the same or a closely related issue on a newer VS Code extension version.

    Environment:

    • Codex VS Code extension: 26.930.31730
    • IDE: Visual Studio Code
    • Platform: Windows

    In my case, a user prompt that had already completed successfully sometimes appears again later as a new user turn.

    This is not only a duplicate rendering issue. In at least one occurrence, Codex actually started executing the previously completed instruction again. I manually stopped it by sending a short message such as "wait".

    In another occurrence, Codex detected that the task had already been completed and replied that it would not repeat the work. So the behavior is not consistent: sometimes the duplicate prompt is rejected as already completed, and sometimes execution starts again.

    The rough sequence is:

    1. Send an implementation instruction.
    2. Codex completes the work and provides a completion report.
    3. Later, the same completed instruction appears again as a user message.
    4. Codex may begin executing it again.
    5. I manually stop the repeated execution.

    I have attached a sanitized conversation log showing the sequence. The log itself is in Japanese, but timestamps, duplicated prompts, completion reports, and the manual stop are preserved.

    I have also occasionally seen abnormal endless-scrolling behavior in the Codex chat UI, although I cannot confirm that it has the same root cause.

    Because the replayed instruction can perform file edits, this seems potentially risky for coding workflows: a stale completed instruction may be executed again against a workspace whose state has already changed.

    The attached log has local usernames, care-recipient names, attachment IDs, and repository-specific identifiers masked.

    codex_vscode_duplicate_prompt_log_masked.txt

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

    bugextensionsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions