Repository navigation
Description
What version of the IDE extension are you using?
openai.chatgpt 26.928.31416 (linux-x64)
What subscription do you have?
Not collected in this report.
Which IDE are you using?
VS Code.
What platform is your computer?
Linux x64.
What issue are you seeing?
The VS Code internal fetch bridge serializes an undefined handler result using JSON.stringify(o). This produces undefined rather than JSON text. The webview success handler subsequently calls JSON.parse(e.bodyJsonString) and rejects an otherwise successful request.
This is observed when releasing a queued follow-up send lock. Sanitized logs from October 1, 2026 (local time, UTC+8):
10:35:28.203 [warning] Failed to release queued message send lock
conversationId=<redacted>
errorMessage="\"undefined\" is not valid JSON"
errorName=SyntaxError
at JSON.parse (<anonymous>)
at e.onFetchResponse (.../webview/assets/app-initial-4bd9e54bcd58.js:3:1518)
10:45:29.373 [warning] Failed to release queued message send lock
conversationId=<same-thread-redacted>
errorMessage="\"undefined\" is not valid JSON"
errorName=SyntaxError
The user also observed a message being processed twice without intentionally sending it twice. In the local rollout, the same user text appears as two distinct user response items at:
- 2026-10-01T02:35:28.156Z
- 2026-10-01T02:45:29.271Z
These are separate message occurrences, not the normal response_item/event_msg pair for a single message.
The parsing defect is confirmed; its causal relationship to the duplicate submission is not established. The lock release handler performs its side effect before returning undefined, so the warning alone does not prove that the actual lock was not released.
What steps can reproduce the bug?
The exact UI sequence for the duplicate submission has not yet been reduced to a deterministic reproduction. The serialization failure can be reproduced independently:
const assert = require("node:assert/strict");
const handlerResult = undefined; // e.g. queued-follow-up-send-lock-release
const response = {
responseType: "success",
status: 200,
bodyJsonString: JSON.stringify(handlerResult),
};
// The success response has no "body" property:
assert.throws(() => JSON.parse(response.bodyJsonString), SyntaxError);Inspection of the installed bundle found:
queued-follow-up-send-lock-releasecallsthis.queuedFollowUpSendLocks.release(...)without returning a value.- The internal VS Code fetch bridge returns
bodyJsonString: JSON.stringify(o). - The webview success handler uses
"body" in e ? e.body : JSON.parse(e.bodyJsonString).
What is the expected behavior?
Successful internal requests with no return value should resolve without a JSON parsing error. Queued messages should be processed once, with successful submissions removed from the queue.
Additional information
A local workaround changed only the internal bridge serialization expression:
- bodyJsonString: JSON.stringify(o)
+ bodyJsonString: JSON.stringify(o ?? null)Validation:
- Reproduced the original undefined parsing failure.
- Checked round trips for undefined, null, an object, false, 0, an empty string, an empty array, and an acquired=false object (8 cases).
node --checkpassed for the modified bundle.- Verified the installed file differs from its backup only by the intended expression.
This is a local installed-bundle workaround, not an upstream source patch. End-to-end verification after reloading VS Code, including whether duplicate messages stop, is still pending.
Potential investigation lead, not a confirmed cause: the installed send-lock implementation retains sent-message IDs for 6e5 milliseconds (10 minutes), close to the observed 601-second gap. This does not establish that both submissions used the same client message ID.
Logs and code were inspected with assistance from Codex. Local paths and conversation identifiers are redacted.
Activity
ywlywl6 commentedon Oct 1, 2026
I can reproduce this on
openai.chatgpt 26.928.31416, and I found additional evidence that the issue is associated with persistent send-state desynchronization.In one session I observed 15 occurrences of:
Read-only inspection confirms the same code path described in this issue:
I also observed two additional behaviors.
1. Completed message remains persisted as
sendingA message reached core, was written to the rollout, and completed successfully.
However, several minutes later, the VS Code persisted
queued-follow-upsstate still contained the same client ID with statussending.So the message was successfully processed, while the persisted client-side send state remained stale.
2. A queued message can remain before turn creation
Another message reached
thread/queue/addand was present in the server queue, but several minutes later it still had not produced a corresponding user message / model turn.This suggests there can also be a delay or failure between queue insertion and turn creation, independent of whether the message has already reached the local app-server.
Duplicate submission observed
I also confirmed one duplicate-content case where the exact same text became two independent submissions.
The two submissions had:
Both were processed independently.
The logs cannot determine whether the second submission was caused by a manual retry or an automatic replay, so I am not claiming that the extension itself definitely duplicated the request.
Current conclusion
So far I can confirm:
I cannot yet prove that the JSON parsing defect is the sole cause of every UI symptom where clicking Send appears to do nothing.
The lock release side effect happens before the JSON parsing failure, and the logs do not record each individual mouse click.
My user-visible symptom is:
All investigation was read-only. No plugin files, configuration, databases, or logs were modified.
juytj21 commentedon Oct 1, 2026
I can reproduce the same symptom on Windows with the Codex VS Code extension version 26.928.31416 after the update: the first prompt completes, but sending a subsequent prompt in the same conversation leaves the send control spinning and the prompt is not submitted. Restarting VS Code and reinstalling/updating the extension did not resolve it.
The same post-completion follow-up submission failure is also occurring in the ChatGPT desktop app on this machine, suggesting this may not be limited to the VS Code UI path.
No logs, account identifiers, project paths, conversation content, or other private data are included in this report.
Kaisersom commentedon Oct 1, 2026
Additional reproduction on macOS / Antigravity IDE (VS Code fork), investigated with Codex at the user's request.
Environment:
User-visible symptoms:
After approximately three messages, a new prompt remains spinning above the composer. Fully quitting/reopening the IDE temporarily unblocks it, but an already-answered prompt can appear and be processed again while the newer prompt waits. This disrupts conversation continuity repeatedly. Screenshots show the older answered prompt running again with a newer prompt queued. This is a user-observed cadence, not a deterministic minimal reproduction.
Confirmed local findings:
Please investigate the complete follow-up delivery/recovery path, including persisted pending/sending state after completed responses and reload. The parse warning alone may mask additional issues. We are checking the reported rollback workaround separately; it has not yet been verified on this Mac.
No personal conversation content, account identifiers, tokens, screenshots containing private context, or raw logs are included in this public comment.
Update from further investigation:
Read-only inspection of the extension's persisted queued-follow-ups state found two messages already delivered to this discussion still retained under a parent chat: one with submission.status="sending", the other "pending". The current investigation request was visible as Sending in that parent chat while it was already being processed in its continuation. Its duplicate queue entry was backed up locally and removed through the UI; this reduced the persisted queue from two items to one. The remaining old completed item is marked sending but is not displayed as a queued item in the parent-chat UI.
The official 26.917.62051 darwin-arm64 package has now been installed and pinned as a rollback workaround, with the original installation backed up. Activation/reload and end-to-end verification are pending. Inspection confirms that the older package also has the undefined-result serialization path, further supporting caution about attributing all stalled/replayed sends to that warning alone.
tedla-brandsema commentedon Oct 1, 2026
Same bug here on 26.928.31416 (VS Code 1.140.0, Windows 11 + WSL2 Ubuntu 24.04). Another way to trigger it: open a second VS Code window. In that window the first prompt goes through, and every follow-up is queued and never sent. The first window keeps working.
Started right after the auto-update from 26.917.62051 (2026-10-01 07:51). There are no "Failed to release queued message send lock" errors in my logs before that.
Closing my issue #49982 as a duplicate of this one.
Edit: the second window was not the trigger. The window that "kept working" had been opened before the auto-update and was still running 26.917.62051 in memory. Every window running 26.928.x is affected. See my analysis further down.
Syntholx commentedon Oct 1, 2026
I can reproduce this on Windows 11 build 26300 x64, VS Code 1.140.0, using ChatGPT account authentication.
Affected extension versions tested:
26.928.31416 (stable)
26.5928.31416 (pre-release)
After approximately 1–5 successful replies, the next message remains stuck with a spinner or does not appear in the conversation. I wait for each response to finish before sending the next message. I have not established any connection with changing reasoning effort.
My logs repeatedly contain:
Failed to release queued message send lock
"undefined" is not valid JSON
They also contain unhandled query-cache-invalidate and thread-queued-followups-changed broadcasts, plus Cloudflare 403 challenge responses.
The issue persisted after signing out/in, testing a clean VS Code profile, using a separate CODEX_HOME, and finally using a separate VS Code --user-data-dir with the alternate CODEX_HOME. In the last test, five replies succeeded and the sixth message became stuck.
The separately installed CLI 0.159.3 handled multiple consecutive messages successfully during testing. CLI doctor reported healthy database integrity and successful HTTP/WebSocket checks.
My symptoms also closely match #49943 and #49949. I cannot confirm the underlying cause.
DigitaleCreaties commentedon Oct 1, 2026
I observed the same error on macOS with the Codex VS Code extension.
Environment
Observed behavior
Submitted follow-up messages remained above the composer with a loading indicator and were not processed.
The problem occurred across multiple conversations. Reloading/restarting VS Code four times did not resolve it.
Log evidence
The following error appeared repeatedly across multiple VS Code sessions on October 1, 2026, between approximately 17:10 and 17:46 Europe/Amsterdam:
Failed to release queued message send lock
errorMessage=""undefined" is not valid JSON"
errorName=SyntaxError
at JSON.parse ()
at e.onFetchResponse (.../webview/assets/app-initial-4bd9e54bcd58.js:3:1518)
The logs also repeatedly contained:
[IpcClient] Received broadcast but no handler is configured
method=thread-queued-followups-changed
Workaround and verification
After rolling back to 26.917.62051, two subsequent prompts completed successfully. Automatic updates for this extension are now disabled by version pinning.
The failing session used GPT-6.1 Sol with Medium reasoning.
The successful tests used GPT-6 Astra with Medium reasoning.
Because both the extension version and selected model changed, this is not a controlled extension-only comparison. Two successful prompts confirm initial recovery, not long-term stability.
The working session reported Codex CLI 0.155.0-alpha.16.3; I did not independently verify the runtime version used by the affected extension.
Scope of this report
This corroborates the same JSON parsing error on macOS. It does not establish that the send lock remained held or that this error alone caused the stalled messages.
I do not have a suitable screenshot to attach. The report is based on the observed UI behavior and local extension logs. Conversation identifiers and local filesystem paths have been omitted.
sonqduong commentedon Oct 1, 2026
Additional Remote SSH reproduction on Codex VS Code extension
26.928.31416.Environment
26.928.31416gpt-5.6-lunaThe same extension version works normally in a local macOS VS Code window. Rolling the remote Linux extension back to
26.917.62051resolves the stuck-follow-up behavior.Reproduction and gateway evidence
In two separate conversations, the initial requests completed normally. The gateway received
response.completed, forwarded it, and closed the downstream stream immediately:Completion took approximately 200–300 ms. The next submitted prompt then remained
sendingorpendingin the Codex UI. The gateway logged no subsequentIncoming POST, showing that the frozen prompt did not reach the gateway handler.Persisted client state showed one affected conversation with
sending, pending, pendingsubmissions and another withsending, pendingsubmissions.Extension log evidence
The remote extension log recorded the same error for both affected conversations, at approximately 13:28 and 13:32 EDT on October 1, 2026:
The remote log reports
clientPlatform=darwin, while the loaded extension path is the Linux x64 package. This may be relevant to the VS Code Remote SSH bridge behavior.There were also unrelated 401 responses from
/settings/user,/wham/usage, and/wham/tasks/list; successful turns occurred while those errors were present, so I am not asserting they caused the queue failure.This evidence confirms that the visible stuck prompt occurs before a request reaches the custom gateway. It also confirms correlation with the undefined-response parsing warning, but does not by itself establish that this warning is the sole cause of every stalled submission.
No usernames, hostnames, endpoint names, request identifiers, conversation identifiers, prompts, credentials, or private project paths are included.
Kotaro-the-Corgi commentedon Oct 2, 2026
Additional Windows/VS Code occurrence on 2026-10-02 (Asia/Tokyo, UTC+09:00), reported with the user's authorization and based on local logs inspected with Codex.
Environment:
openai.chatgpt-26.5928.31416-win32-x64/webview/assets/app-initial-48c569ae16a4.js(installed package directory and package.json version).26.928.31416.0.159.2.26.5917.62051and newer26.5928.31416installed extensions were both running. Whether this contributes is unknown.User-visible symptoms:
Confirmed duplicate in the same local rollout:
2026-10-02T01:51:57.545Z— original user request (10:51:57 JST).2026-10-02T02:01:03.662Z— original task completed, with a final answer.2026-10-02T02:02:16.396Z— identical user request recorded again (11:02:16 JST), under a different turn ID.2026-10-02T02:02:25.921Z— duplicate turn completed; the assistant recognized the request as already handled.The two user-message occurrences are approximately 10 minutes 18.851 seconds apart. These are separate
event_msg/user_messageoccurrences with separatetask_startedevents and distinct turn IDs, not the normal pair of representations of a single message. The original request text and identifiers are omitted for privacy.Sanitized extension log from the affected conversation (local time):
The second warning coincided with the user's message pointing out the unsolicited duplicate. That message did reach Codex and completed at 11:02:52 JST. The later spinner symptom is user-reported; a specific failed later submission has not been isolated from the available logs.
Separate concurrent observation, concerning a different older conversation:
26.917.62051in the log) repeatedly attemptedthread/resume.thread-store conflict: thread <other-thread> already has an active writer.Failed to execute queued messageandFailed to release queued message send lockfor that other thread.No deterministic minimal UI reproduction is established yet, and restarting all VS Code windows was recommended but has not been verified as a fix. We have not applied a local bundle patch.
As noted in the original issue, the JSON parsing warning alone does not establish that the release side effect failed. The causal connection between this warning, duplicate submission, and the subsequent spinner remains unconfirmed.
Local paths, conversation/turn IDs, account identifiers, repository details, and full transcripts have been excluded from this report.
tedla-brandsema commentedon Oct 2, 2026
Root cause found: a queue refresh overwrites the not-yet-saved follow-up with an empty copy from storage
TL;DR: The stuck follow-up is never sent and never shown because a refresh of the queued-follow-ups replaces the in-memory queue with the stored copy, which doesn't have the follow-up yet. The "Failed to release queued message send lock" /
JSON.stringify(undefined)warning is a separate, harmless bug.I confirmed this by adding logging to the webview bundle of 26.930.21537 (also reproduced on 26.928.31416 and 26.928.40906; 26.917.62051 works). Setup: VS Code 1.140.0, Windows 11 + WSL2, stable channel. It reproduces within 2–3 quick prompts in a new chat.
Trace of one lost follow-up
After this point nothing triggers the drain again:
#a()loops over the keys in the loaded state, and the empty stored state has none for this conversation.Code (26.930.21537,
webview/assets/app-initial-3a8f7fe2e714.js)Names are minified; the quoted strings can be searched for.
The queue refresh (
#i()) does this:refreshingin place (for(let[,t]of e)t.refreshing=!0), and callsthis.options.storage.load().The
===rcheck only detects entries that were replaced during the load. Here the follow-up was already in the entry when the refresh took its snapshot, but saving it to storage hadn't finished. The check passes, andn[t]??PQ(empty) erases the message.While an entry is marked
refreshing, the drain (#o) returns early (if(this.messages.get(e)?.refreshing===!0){…return}). So nothing tries to send it before it's erased, and the erase also removes it from the UI. That matches the symptom: the prompt never appears in the panel.It's a race between saving the follow-up and reloading the queue, which explains the intermittent "works for 1–3 prompts, then stuck" pattern.
Ruled out by the same logging
deferAutomaticTurnstakes and releases are balanced (count returns to 0).acquireSendLock. The"undefined" is not valid JSONwarning only appears on sends that succeed: thequeued-follow-up-send-lock-releasehandler returnsundefined, but the host has already released the lock and the webview catches the error. Worth fixing (JSON.stringify(o ?? null)), but it isn't this bug.Not verified
requested=storage-change). The timing suggests it was our own queue write.Suggested fix
submission.statusispending/queuedand that are missing fromn[t]; orstorage.load(), or give each entry a version number that a save increments, so the===rcheck fails for entries whose saved state is behind memory.I can share the logging patch I used (it adds
logger.warningcalls to#o,#u,#i,deferAutomaticTurnsand the composer's accepted callback) if that would help.Overbord commentedon Oct 2, 2026
Also reproducing on 26.928.40906 (linux-arm64) over Remote-SSH, so this isn't limited to the 26.928.31416 build or to Windows.
Environment
openai.chatgpt-26.928.40906-linux-arm64Symptom: submitted messages intermittently disappear from the conversation.
Logs (2 Oct 2026, local time UTC+2): the lock-release failure appeared 9 times in ~15 minutes across two conversations, each time just after a message was sent. Same frame offset as the original report (
:3:1518), different bundle hash:Two other things that may be relevant:
turn-start config resolvedevents fired on the same conversation ~400 ms apart, each followed by the lock-release failure. I haven't confirmed whether that was a duplicate submission, but it may relate to the double-processing described in the original report.dropping turn-scoped item for unknown turn idwarnings appear a few minutes after the failures (07:46, 07:50, 07:51).Haven't tested 26.930 on the remote host yet; will update after trying it or rolling back to 26.917.62051.
liulizhiren11 commentedon Oct 2, 2026
Additional Windows reproduction on the latest extension version after a clean reinstall.
Environment
1.136.1(a44adf7f53e00964ab890f9f8758a334f1fc15bc)openai.chatgpt 26.930.21537openai.codex-audio 26.930.21537User-visible behavior
A submitted follow-up is processed by the agent, but the user message remains in a pending card at the bottom of the Codex panel with a Retry action instead of moving into the normal transcript. This makes the transcript appear to be missing the user's messages. Reloading the VS Code window does not prevent the problem from recurring.
Clean reinstall did not resolve it
I uninstalled
openai.chatgpt(which also removed the companion audio extension), reinstalled it from the official VS Code extension source, verified that both packages were26.930.21537, and ran Developer: Reload Window. The problem reproduced again on the freshly installed extension.The same symptom and error had also occurred while
26.928.40906was loaded, so this remains present in26.930.21537.Sanitized log evidence
On October 2, 2026 (UTC+8), the loaded
26.930.21537bundle logged the same error repeatedly at15:00:43,15:00:59, and15:01:07:The nearby log stream also repeatedly contains:
Inspection of the installed official bundle still shows the response-contract mismatch described in this issue:
At the time of this reproduction, the extension files were restored to the official unmodified versions. No conversation identifiers, prompt contents, credentials, local project paths, or relay configuration are included here.
4 remaining items
debuggerone commentedon Oct 2, 2026
Additional native Linux investigation and end-to-end verification, performed locally with Codex at my request. This corroborates this issue and the receipt-reconciliation findings in #49975 (comment). Related replay report: #50404.
Environment: Ubuntu/Linux x64, VS Code 1.140.0; the locally installed package identifies itself as
openai.chatgpt 26.5928.31416. Live verification used GPT-6.1 Sol High. That is the tested model, not evidence of a model-specific cause.Response contract and cleanup
The actual installed release handler, bridge
fetch, and webviewonFetchResponsewere exercised together in an isolated VM. The successful void handler returns JavaScriptundefined, not the literal string"undefined"; the latter appears throughJSON.parse's coercion. Both the host lock removal and its sent-message receipt happen before the parse failure. The coordinator catches that failure and still releases its local start-turn lock. Successful-message queue removal also precedes the release await.The producer-only change used locally was:
The release caller ignores the response payload. Its result now resolves as JSON null. The consumer was left unchanged: malformed JSON still rejects. No retry was added; a successful void return is deterministic.
Separate replay gap
The original extracted coordinator attempted a second start when a confirmed-delivered message was restored as
submission.status="pending"with a fresh host lock cache. Its receipt-reconciliation helper skips pending/queued entries. Checking the existing positive acceptance predicate in the owner before lock acquisition, then removing only the matching entry, prevented that reproduction. A stale follower snapshot re-adding accepted A while unaccepted B followed it also recovered: A was removed and B was retained/executed. The initial event that produced a stale pending record was not established by this synthetic reproduction.Verification already completed
response_item/event_msgrepresentations were not counted as separate submissions.These are short local checks with both changes installed, not an upstream release, a long soak test, or proof that all composer/stream-state failures are resolved.
Additional live persistence evidence, still unresolved
A separate diagnostic attempt recorded the following for one test thread. Times below are relative milliseconds; TEST_B replaces its real ID.
[]means this thread's entry was missing, not that the entire global queue was empty.There were two VS Code windows; the other window still had its earlier loaded runtime. This is not a complete cross-process write audit. It confirms that the observed read stopped containing the just-written thread entry, but does not establish which writer/event caused it. The host storage read had already lost the entry before the later empty write; attributing this solely to the coordinator refresh overwriting an unfinished save would be premature. This may help narrow the storage/Memento investigation in #49834 (comment).
No raw transcripts, repository contents, screenshots, personal filesystem paths, real conversation/message IDs, credentials, or full bundles are attached.
stivenson commentedon Oct 3, 2026
Additional evidence from Linux x64 / VS Code extension
openai.chatgpt 26.930.31428: the serialization defect is still present in this installed version.The user reports an intermittent symptom: submitted text disappears from the composer, but Codex does not respond. We found 36 occurrences of the following warning in extension logs for October 2, 2026, all associated with the same affected thread:
Installed-bundle inspection confirms the same chain described in this issue:
queued-follow-up-send-lock-releasecallsthis.queuedFollowUpSendLocks.release(...)without returning a value.bodyJsonString: JSON.stringify(o).JSON.parse(e.bodyJsonString)when there is nobodyproperty.Important causal limitation: the lock-release side effect occurs before the serialization/parsing failure, and the queue consumer catches the release error in
finally. This warning does not establish that a lock remains held or that it causes the missing-message symptom.Correlating the affected thread's local rollout with extension logs gives 16
task_startedand 16task_completeevents. One illustrative sequence, normalized to UTC:This shows that the warning also occurs during turns that complete successfully. The rollout cannot establish what happened to submission attempts that never reached the backend. A deterministic UI reproduction of the disappearing-message symptom remains pending.
A standalone reproduction of the bridge contract confirms that
JSON.parse(JSON.stringify(undefined))throws. The proposed normalizationJSON.stringify(o ?? null)passes round-trip checks for 8 cases: undefined, null, an object, false, 0, an empty string, an empty array, and{ acquired: false }. These are serialization checks, not end-to-end VS Code tests.No installed extension files were modified. Conversation identifiers, session titles, message contents, and local filesystem paths have been omitted. Diagnosis performed with Codex assistance.
stivenson commentedon Oct 3, 2026
Follow-up observation in the same environment (
26.930.31428, Linux x64): the user supplied a screenshot showing two submitted prompts still displayed below the response as pending queue entries, with spinners and delete buttons, even though both prompts had already been processed and answered in this conversation. One of the completed actions was posting the preceding issue comment.This adds a distinct symptom: already-processed prompts remain visible as pending, in addition to the earlier report of submitted text disappearing without a response. The screenshot proves stale-looking queue entries; it does not establish whether the underlying queue still contains these messages or only the rendered UI is stale.
The extension logs also contain the same
Failed to release queued message send lock/ undefined JSON SyntaxError for this second thread. Around these events they repeatedly log:The unhandled broadcast is an investigation lead, not a confirmed cause. We have not established whether another subscription is responsible for refreshing the queue state.
No conversation identifiers, prompt contents, session titles, or screenshot were posted here, and no extension files were modified.
IveSan83 commentedon Oct 3, 2026
I investigated the message-submission regression in the Codex VS Code extension, reproduced message loss in the unmodified extension, implemented a local repair, and published the source, installer, and regression tests.
Patch author: IveSan83.
Repository:
https://github.com/IveSan83/codex-vscode-queue-repair
Release package and verification results:
https://github.com/IveSan83/codex-vscode-queue-repair/releases/tag/v2.1.0
Testing was performed on Windows 11 x64 with VS Code 1.140.0. I examined the shipped extension JavaScript, persistence layer, submission coordinator, internal response bridge, and the contents of the completed VSIX.
Several distinct symptoms appeared after the update:
In my isolated VS Code profile, both a plain-text message and a message with an image succeeded. During a rapid-follow-up test, two subsequent submitted prompts were absent from the conversation rollout. In a separate sequential test, three requests completed, but the fourth disappeared after submission: the composer cleared and no new assistant response appeared.
My initial investigation and trace:
#49834 (comment)
Comparing the working and affected versions revealed a concrete change in the submission path.
In 26.917.62051, the queue and VS Code
globalState/Memento storage already existed. An ordinary message in an idle conversation could proceed directly through preparation and submission. Queueing was used when required by the selected mode, an active turn, or deferred submission.In 26.930.21537 and 26.930.31428, an
acceptLocallybranch was introduced. For an ordinary message in an existing local conversation, it first persists a queue entry with statuspending, then starts processing it. This also applies to thesend-nowsubmission intent: that branch does not check for an active turn before persisting the entry.The first message used to create a conversation can take the direct path. Subsequent messages become dependent on queue persistence and refresh, even after the previous turn has completed.
The new design therefore makes ordinary conversation traffic more dependent on the consistency of this storage layer. This is consistent with the observed difference between initial and subsequent submissions and explains why simply waiting for completion does not guarantee that the affected path will be bypassed.
I am not claiming that the earlier version never used Memento, or that this one branch explains every failure on every platform.
I also compared 26.930.31428 with 26.930.21537. The native runtime changed from
0.159.0-alpha.12.1to0.160.0; GitHub connection handling, authentication recovery, and other features also changed. I found no repair for the investigated defects in the queue and response-bridge sections inspected.The terminal-client queue fix in PR 49105 affects
codex-rs/tui. It does not modify the VS Code extension's queue persistence layer.Detailed comparison:
https://github.com/IveSan83/codex-vscode-queue-repair/blob/main/reports/release-diff.md
I captured message loss before transport submission, directly inside queue refresh.
The diagnostic record was:
The sequence was:
pendingWrite=false.storedCount=0.sameEntry=true.Waiting for the persistence promise to resolve is insufficient here. The critical question is which state revision the subsequent read returns.
In a controlled harness, I executed the coordinator extracted from the unmodified shipped bundle. Before injecting the stale empty storage snapshot, there was one pending message and zero transport calls. After refresh, the queue was empty and the transport-call count was still zero.
Under the same scenario, the patched coordinator with the new persistence layer retains the message and submits it exactly once in the test transport when execution becomes ready.
Below the extension's storage adapter, Memento receives updates containing the entire extension-state object. A delayed notification carrying an older value can roll that object back; a later write to another field can persist the regressed state.
My initial trace captured the storage read and queue overwrite, but did not establish the source of that particular delayed notification. An independent Linux investigation additionally captured an older incoming snapshot while a newer local write was pending, and traced its propagation into the extension host:
#50403 (comment)
Separate VS Code storage-ordering report:
microsoft/vscode#339391
The reverse race restores messages that have already been accepted.
After message A is accepted, the extension removes it from the queue. A stale snapshot can restore A as
pendingorsending.If the coordinator attempts to acquire the queued-message send lock before reconciling the acceptance receipt, the restored A can block pending message B. If receipt reconciliation excludes a restored
pendingentry, A can be submitted again.In the control test, the unmodified coordinator does invoke the transport again for a restored
pending A, despite an existing positive acceptance receipt for A.The repaired implementation:
pendingtosendingdoes not prevent removal of an already accepted request.I investigated
Failed to release queued message send lockseparately.The release handler returns JavaScript
undefined. The bridge usesJSON.stringify(result), and the response consumer attempts to parse the result as JSON. Serializingundefinedproduces no JSON value, resulting in:The lock-release side effect can complete before response parsing fails. The warning alone therefore does not prove that the lock remained held, and it is not established as the sole cause of disappearing messages.
I normalized successful void responses using:
The checks also cover
null, objects,false,0, the empty string, and other valid values. Malformed JSON is still rejected.The repair combines persistence corrections, acceptance reconciliation, and concurrent-submission control.
pending → sendingtransition must actually update the expected entry. If another writer has already persistedsending, a CAS retry cannot let a second sender claim that transition.Queue, Steer, and Interrupt remain available. The official codex-cli 0.160.0 runtime is preserved unchanged.
Testing the initial repair showed that preventing an empty refresh alone was insufficient. I added cases for restoring a retired entry despite a fresh revision, conflicts with Undo, another writer's persisted
sendingstate, loss of every notification to another window, owner termination before and after commit, and delayed lock cleanup by a previous owner.Those checks drove additional changes to the persistence protocol and locking implementation.
The final suite contains 76 distinct mandatory tests.
Every test was executed in two runtimes:
The final run produced 152 passing test executions, with zero failures, skips, or cancellations.
The reproduced scenarios include:
sendingentry without confirmation is retained after rehydration with an unknown outcome; it is not automatically resubmitted. A later positive receipt removes it without another send.In the stress scenario, two independent clients share one journal. One adds, reads, and removes messages while the other concurrently writes state for a different conversation. Each runtime executes three sets of 60 cycles.
Each addition was checked through the originating client, the persisted journal, and the second client. After removal, the test verified that the entry remained absent during competing writes.
The checks also cover final state, durable retirement records, and legacy-message migration paused for review. Concurrent-write counts depend on timing; the table contains the counts from the published final run.
I separately verified packaging and corrected an error in my first package.
The module required
queue-store.cjs, but the installer packaged it ascodex-queue-store.cjs. This prevented extension startup.The earlier tests substituted
requireand did not exercise the actual packaged dependency chain. Matching the checksum of an incorrectly named file did not detect the problem either.Repair 2.1 corrects the filename in the builder. A negative control now recreates the previous mismatch and requires module loading to fail.
The positive check uses the real CommonJS loader rooted at the packaged extension-host module, resolves both helper modules, and performs add/read/remove operations in an isolated temporary profile. The completed VSIX is freshly extracted and checked in both runtimes.
I also identified a timing-dependent test: it required three read attempts within a fixed 80 ms delay and could fail spuriously under load. It now waits for the actual repeated reads with a bounded timeout. Cache preservation and single-report error handling remain mandatory assertions.
The entire VSIX inventory was audited:
The package was rebuilt from the extracted public ZIP without Git metadata, using the installer in verification-only mode. The release assets were then downloaded back from GitHub, and their checksums matched.
Fresh logs from the installed local repair contain no queue-module loading errors, queued-message send-lock release errors, or journal writer-lock errors. This is a log observation, not a substitute for verifying every user interaction in the editor.
The suite captures defects through control reproductions and binds passing results to the source, dependencies, official-extension fixtures, and test-log hashes. Changed inputs, skipped mandatory tests, or failing mandatory tests block packaging and installation.
Test source and published results:
https://github.com/IveSan83/codex-vscode-queue-repair/blob/main/REGRESSIONS.json
https://github.com/IveSan83/codex-vscode-queue-repair/blob/main/reports/verification.md
https://github.com/IveSan83/codex-vscode-queue-repair/releases/download/v2.1.0/VERIFICATION.json
The verification boundaries are explicit.
These checks exercise the extracted coordinator, filesystem persistence, real processes, and packaging with a controlled transport. 360 stress cycles do not mean 360 live conversations with a production model.
They do not establish that every UI, network, or server issue is resolved. Separate reports involving draft restoration and composer focus require their own investigation. I am not claiming faster model generation or an exactly-once guarantee for arbitrary external actions.
The public package contains the repair source, tests, and installer.
START.cmddownloads official version 26.930.31428, verifies SHA-256, runs the mandatory tests, builds the repaired package, and installs it. Requirements are stable VS Code, Node.js 22+ x64 with npm, and Python 3.11+. User settings, personal paths, conversation contents, and credentials are excluded from publication.By my estimate, isolating the main race and producing the first working fix took about an hour. Reproducible testing, edge-case hardening, porting to the latest build, packaging, and preparing the release took longer.
While this regression was still being discussed on GitHub two days later, I put together a fix and a regression suite. Looks like I briefly filled in for your QA team 🙂
Folks, hire me. I'd like to catch these regressions before your users do.
junsh-lookback commentedon Oct 3, 2026
Reproduced on macOS arm64 with VS Code extension 26.930.31730, also previously on 26.930.21537 and 26.928.31416.
User-visible impact: follow-up messages remain in the composer queue after the prior response appears complete. Reload Window temporarily restores delivery. This affected multiple conversations, including the conversation used to diagnose the issue. The user observed a recurring pattern of the first message after reload succeeding and a subsequent message stalling, although two consecutive test messages also succeeded, so it is not universally deterministic.
Sanitized logs from 2026-10-03 (JST):
Installed-bundle inspection confirms the release handler has no return value, the internal bridge serializes the result with JSON.stringify, and the webview parses the missing bodyJsonString. A minimal local workaround adds
return {}after the existing release call. Syntax checking and a test using the extracted patched handler verify preserved release arguments and a valid JSON response. We are maintaining this workaround across local extension updates, with backups and strict structural matching.End-to-end resolution of queue stalls is NOT yet established. The release side effect occurs before the parse failure, and the warning can occur on a successfully delivered message. Please investigate the queue/stream state lifecycle as well as correcting the undefined response contract, and ship an official fix with a follow-up-after-completion regression test. Repeated reloads make normal use very difficult.
No conversation content, account IDs, credentials, or raw logs are included here. Report prepared with Codex assistance.
pcarret commentedon Oct 3, 2026
Going back to 26.917.62051 solve my issue.
But
Switching extension versions did not resolve the issue
I tried switching to the pre-release version of the official Codex VS Code extension, but the queue problem persists.
openai.chatgpt-26.930.21537-win32-x64sa_server_request_failed, HTTP404, endpoint/tbo/primary. I cannot confirm whether this warning is related.The installed Codex desktop app works normally with the same account, while the VS Code extension experiences these delays.
I have not installed the unofficial community repair.
Please let me know which logs or diagnostic information would help investigate.
IveSan83 commentedon Oct 3, 2026
26.930.31730: the fifth affected build in this regression sequence
I downloaded the official 26.930.31730 win32-x64 VSIX, verified its SHA-256 against the Marketplace, compared it with the clean official 26.930.31428 package, and ran the extracted queue code through deterministic regressions. The same tested defects remain.
My previous detailed investigation and repair were posted here:
#49834 (comment)
The affected sequence is 26.928.31416 ? 26.928.40906 ? 26.930.21537 ? 26.930.31428 ? 26.930.31730. Evidence scope matters: the first two builds are supported by matching user reports; my own reproductions and packaged-code inspection cover the later builds. I am not claiming five identical full test runs.
What is still reproducible in 31730
queued-follow-up-send-lock-releasehandler callsrelease(...)and returnsundefined; the host serializesJSON.stringify(o), and the actual webview parser rejectsJSON.parse(e.bodyJsonString). The release side effect happens before the parser error, so this warning alone does not establish a stuck lock. Serializingo ?? nullrepairs this separate response-contract error.The host storage class, queue adapter, queue coordinator and submission preparation function retain the same structure after consistent minifier-identifier normalization. This is a comparison of those specific components, not a formal equivalence proof for the entire application. The Windows native
codex.exeis byte-identical to 31428 and still reports 0.160.0.Updated open-source repair and reproducible evidence
Queue repair 2.2 targets exactly 26.930.31730 on Windows x64.
The required suite passed 88/88 in Node and 88/88 in VS Code's Electron/Node runtime: 176 executions, zero failures, skips or cancellations. Original-bug controls pass when the expected bug reproduces; repair scenarios exercise patched code. This is not a claim that the unmodified official package passed the repaired-storage tests.
Coverage includes the actual shipped coordinator and JSON response parser, queue/steer behavior, Stop and new IDs, positive/partial receipts, owner/follower canonical state, generation-aware deletion and Undo, four concurrent writer processes, process-death lock recovery, and 180 seeded two-client add/read/remove cycles per runtime. The earlier wrong helper basename is also a required negative packaging control.
I also verified the exact source/installer ZIP after fresh extraction, reran both 88-test gates, and installed the checked package locally. All 19,382 installed extension files match the built VSIX (ignoring only VS Code-added
__metadata); none are missing. It is pinned, and a full editor restart is still required for activation. This is an on-disk and headless startup check, not a live UI/model-delivery claim.The completed VSIX preserves every original archive entry and verifies the actual packaged module dependency chain in both runtimes. The source/installer release downloads the official extension and verifies pinned archive and bundle hashes; it does not redistribute OpenAI's compiled bundles, user queues, authentication or personal settings. Headless checks do not replace live UI/model-delivery validation or guarantee exactly-once external actions.
As an additional official-package audit, 14,538 JS/CJS files parsed without syntax errors and 46,027 static local module references resolved. Real changes to hosted Git metadata caching, bounded cloud-history readiness and incremental used-plugin history are described in the report. They do not remove the tested queue defects. These results do not establish that every unrelated backend/UI failure shares this cause.
Please fix the queue persistence design
A stale whole-extension snapshot must not overwrite a newer authoritative queue mutation. Accepted or retired message IDs must not silently return to pending state. Concurrent extension hosts need revision-aware writes and canonical reconciliation; unknown send outcomes need an explicit recovery state; successful void handlers need valid response bodies.
Please ship an upstream correction with deterministic regressions for these invariants and real IDE follow-up-after-completion coverage. The same failure pattern has now reached a fifth build in this report sequence, and a hash-pinned repair with reproducible tests is already available above.
draybu commentedon Oct 3, 2026
Additional reproduction on macOS: delivered prompts disappear from the transcript and reappear as failed queued messages when a second VS Code window is opened.
Environment:
Controlled reproduction:
Expected: independent repository windows can run Codex conversations; delivered messages remain in their transcript and leave the queue.
Observed recovery attempts:
Representative local log excerpts (paths and conversation IDs omitted):
The queue-lock error recurred at 09:43:50, 09:52:41, 09:54:04, and 09:55:02 local time before the later controlled single-/two-window test. These logs support an association, not proof that the JSON parse error alone causes the multi-window failure.
Impact: I use a separate VS Code window per repository to multitask across projects. Restricting use to one window defeats that workflow. The false Retry state also makes it difficult to know whether an action ran and risks accidental duplicate submissions.
Related multi-window report: #42589, although that report concerns Windows active-writer/hydration conflicts; those specific conflicts have not been established in this reproduction.
Report prepared with Codex assistance. Screenshots were inspected locally; unrelated project content, account details, and full logs are intentionally omitted.
IveSan83 commentedon Oct 4, 2026
Investigation update: I have published the third release of my independent queue repair, now targeting Codex VS Code 26.930.51102 (Windows x64). The queue state synchronization defects are still reproducible in the latest official build.
Patch, reproducible tests and sanitized results:
https://github.com/IveSan83/codex-vscode-queue-repair/releases/tag/v2.3.0
Comparison of the official builds
I compared 26.930.31730 → 26.930.41038 → 26.930.51102. The turn coordinator, submission preparation function, queue storage adapter and extension-host storage class match after normalization of minified identifiers. All 68 coordinator members match in both adjacent comparisons. This applies to the reviewed components; it is not a claim that the entire extension or every external dependency is unchanged. The bundled Windows native runtime remains Codex CLI 0.160.0.
Failures reproduced in the actual shipped 51102 code
submission.status = "pending"while the controlled acceptance lookup returns a positive receipt for its client message ID. The official coordinator submits it again. The repaired coordinator retires only the accepted entry before acquiring the send lock and still dispatches the next waiting message.release()and returnsundefined. The bridge serializes that result without a null fallback, and the actual frontend response parser rejects it. Normalizingundefinedtonullrepairs the response contract while preservingfalse,0and valid nonempty responses. This parsing defect alone does not establish that the underlying lock remained held or explain every delivery symptom.The queue still uses VS Code's shared extension state. A stale snapshot can replace newer queue state, losing a new entry or restoring an already submitted one. Separately, the restored-pending dispatch path does not check a positive acceptance receipt before resubmission. The coordinator's mutation path also discards the canonical return value of the storage update.
Repair approach
The repair moves queue persistence out of the shared Memento snapshots into a separate revisioned journal with compare-and-set updates. It confirms the actual committed state, preserves canonical owner/follower results, prevents stale windows from rewinding
sendingentries or deleting unseen messages, and uses retired message generations to prevent stale resurrection after delete/restore.It also checks acceptance by message ID, verifies that a sender actually claimed the entry before dispatch, and recovers writer locks after verified process death. Live or unverifiable lock owners remain protected. Upstream app-server queue functionality is retained.
Additional defect found in my repair during repeated testing
An initial 91/91 run passed in both runtimes, but a repeated run caught a transient Windows
EPERMwhile inspecting a competing writer's UUID owner file. The two-window stress case failed in both runtimes with a conservative write-outcome-unknown response.Repair 2.3 now applies bounded retries to owner metadata inspection. Three deterministic fault-injection tests cover transient inspection failures,
EPERMfollowed by file disappearance, and persistent access denial. Persistent denial does not alter the journal or remove an unverified owner; committed writes are not replayed to retry metadata inspection.Final verification
queueandsteer, interruption/reload, identical text with distinct IDs, deletion/restoration, owner/follower synchronization, actual writer process death and competing lock recovery.The release includes TAP logs, input SHA-256 checksums, component comparisons, the package inventory audit and a detailed report. These are headless code/filesystem checks with controlled transport, not a claim of exhaustive live UI or production-model delivery testing. Cloudflare HTTP 403, MCP timeouts, unrelated
fs/getMetadatafailures and ResizeObserver errors are outside this repair.Please fix the queue persistence and state reconciliation approach, and add these scenarios to the regression suite. The reviewed queue components still retain the affected behavior across these builds.
Third repair release shipped. If you need another QA engineer who reproduces these races before release, I am open to opportunities :)
debuggerone commentedon Oct 5, 2026
https://openai.com/careers/
I think you are looking for this.
IveSan83 commentedon Oct 5, 2026
@debuggerone Oh man, thanks! 😄
Subscribe to my ongoing series, “Patching Codex” — I’ll keep the episodes coming and do my best to keep your Codex running:
#50980
As for a career at OpenAI, probably not 😂 First, they might want to hire someone to read bug reports and respond to feedback on their updates.
But I guess they have bigger fish to fry — their Chinese competitors are breathing down their necks. Maybe that’s why they’re rushing releases and letting bugs slip through. Meanwhile, the series continues 🍿
IveSan83 commentedon Oct 6, 2026
Update for Codex VS Code 26.930.61225, Windows x64: community repair 2.4 is published.
out/extension.jsis byte-identical to 51102; all 68 reviewed coordinator members still match after identifier normalization. Controlled original-code tests still reproduce message loss, restored-pending replay, and the undefined-JSON response-contract error.The canonical regression suite passed 94/94 in Node and 94/94 in Electron, including negative controls reproducing the original defects. The real CLI 0.160.1 passed 16/16 local protocol checks. The completed package has no missing original files and passed isolated startup checks. These are headless checks, not comprehensive UI certification.
Download, sanitized evidence and report: https://github.com/IveSan83/codex-vscode-queue-repair/releases/tag/v2.4.0
Full update: #50980 (comment)