You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[VS Code Extension] Follow-up prompt stuck in queue and previous prompt appears re-executed after restart on 26.928.31416 #49968
bugSomething isn't workingextensionIssues related to the VS Code extensionsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
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?
Restart VS Code.
Open a Codex conversation.
Send the first prompt — it works normally.
Send a second prompt — it remains stuck in “adding to queue”.
Restart VS Code.
Reopen the conversation.
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.
Reacted by Mikhail Kalyashin, Maksim Posysoev, Cypher Bash, Tokas, Mert Talha Yener, bacvietswiss, tadeas0, Aqeel Afzal Chaudhry, David Ing, paulofabiani and 10 more
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
Open an existing conversation in the Codex VS Code extension.
Enter a message and submit it.
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
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.
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:
[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.
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.
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.
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.
Reacted by Mikhail Kalyashin and NICOLAS ELIAS DE ARAUJO SILVA
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
Reacted by Mikhail Kalyashin, Keenan Selbee and Madhan Kanagavel
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.
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.
Seeing this on Linux as well, I experience it since the 6.1 Sol update:
Additionally, it sometimes happens that the message just disappears, so not landing in the queue either.
Reacted by Jonás Chaves-Montero, devmarquestaiobeiras and jasonsheridan79
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?
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
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 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:
Send an implementation instruction.
Codex completes the work and provides a completion report.
Later, the same completed instruction appears again as a user message.
Codex may begin executing it again.
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.
bugSomething isn't workingextensionIssues related to the VS Code extensionsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Oct 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
mikhan808 commentedon Oct 1, 2026
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
Expected behavior
The submitted message appears in the conversation and starts a response, or a visible error preserves the message for retry.
Environment
Log evidence
The extension logs contain the following warning in both versions:
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.
jameshgriffin commentedon Oct 1, 2026
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:
It also logged:
The VS Code Developer Tools console additionally contains repeated warnings like:
These occur very frequently while the state size changes slightly. VS Code also recorded:
I have not seen the
Failed to release queued message send lock / "undefined" is not valid JSONwarning mentioned above.Happy to provide further logs or run additional diagnostics if useful.
jameshgriffin commentedon Oct 1, 2026
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:
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.
niickl commentedon Oct 1, 2026
I can reproduce the same regression on VS Code Remote - WSL with extension
26.928.31416.Additional diagnostics that may help narrow it down:
turn-startinexthost*/openai.chatgpt/Codex.log.lslocksshows 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.Received broadcast but no handler is configured method=thread-read-state-changedReceived broadcast but no handler is configured method=query-cache-invalidateReceived broadcast but no handler is configured method=thread-queued-followups-changedthread_stream_role_changed ... role=owner,resumeState=resumed streamRole=owner, then the firstturn-start; no secondturn-startappears when the next Send fails.26.917.62051fixes the multi-turn send behavior immediately.Environment:
0.159.3openai.chatgpt 26.928.3141626.917.62051This 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.
ryangaige-fp commentedon Oct 1, 2026
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
mifai commentedon Oct 2, 2026
I have the same problem with a newer version v26.928.40906 and Windows.
stepfunc-droid commentedon Oct 2, 2026
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:
Queue paused because you interruptedResumecontrol is shownThis 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.
stepfunc-droid commentedon Oct 2, 2026
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:
The modal offers Clear queue and Send message.
In this broken state, neither button has any effect:
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.
fweth commentedon Oct 2, 2026
Seeing this on Linux as well, I experience it since the 6.1 Sol update:

Additionally, it sometimes happens that the message just disappears, so not landing in the queue either.
HubKing commentedon Oct 2, 2026
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?
ObjectOriented0 commentedon Oct 2, 2026
If you are suffering from this issue, you can install a previous version of the extension in VS Code by doing the following:
jennisdebbaut-lgtm commentedon Oct 2, 2026
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
GeoRouv commentedon Oct 2, 2026
Same issue here
jameshgriffin commentedon Oct 2, 2026
Can confirm: this worked for me. I went back to 26.917.62051
Living-Tribunal commentedon Oct 2, 2026
I too can confirm this worked for me!
TechTimeGuy commentedon Oct 2, 2026
Confirmed, Worked for me as well.
naokixp666 commentedon Oct 3, 2026
I am seeing what appears to be the same or a closely related issue on a newer VS Code extension version.
Environment:
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:
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