Skip to content

[VS Code] Undefined internal fetch response causes JSON parse error on queued message send-lock release #49834

Open

Description

@extross

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-release calls this.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 --check passed 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

  1. added
    bug
    extension
    on Oct 1, 2026
  2. ywlywl6 commented on Oct 1, 2026

    @ywlywl6

    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:

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

    Read-only inspection confirms the same code path described in this issue:

    queued-follow-up-send-lock-release
    → release() returns undefined
    → internal fetch bridge JSON.stringify(undefined)
    → webview JSON.parse(bodyJsonString)
    → SyntaxError
    

    I also observed two additional behaviors.

    1. Completed message remains persisted as sending

    A message reached core, was written to the rollout, and completed successfully.

    However, several minutes later, the VS Code persisted queued-follow-ups state still contained the same client ID with status sending.

    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/add and 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:

    • different client IDs;
    • different message IDs;
    • different turn IDs.

    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:

    • the JSON parsing defect described in this issue;
    • persistent send-state desynchronization;
    • messages remaining queued before turn creation;
    • duplicate independent submissions.

    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:

    Sometimes I send a message and it does not appear to go through. Retrying a few times eventually succeeds.

    All investigation was read-only. No plugin files, configuration, databases, or logs were modified.

  3. juytj21 commented on Oct 1, 2026

    @juytj21

    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.

  4. Kaisersom commented on Oct 1, 2026

    @Kaisersom

    Additional reproduction on macOS / Antigravity IDE (VS Code fork), investigated with Codex at the user's request.

    Environment:

    • macOS 26.5.2, arm64
    • Antigravity IDE 1.107.0; build commit ecfbad74d93962fc8ca485d93ab9b4f3d4cb6cf8
    • Installed openai.chatgpt package.json reports 26.5928.31416 (different version string from the 26.928.31416 reports here)
    • Bundled codex-cli 0.159.2
    • No chatgpt.cliExecutable override or followUpQueueMode override found in the inspected user/workspace settings.

    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:

    1. Repeated "Failed to release queued message send lock" / ""undefined" is not valid JSON" errors across multiple chats and IDE restarts. Examples on October 1, 2026, UTC+3: 13:19:58, 13:24:02, 14:12:45, 14:20:54, 14:27:04 and 14:27:54.
    2. Installed handler queued-follow-up-send-lock-release calls release(...) and returns undefined.
    3. Internal fetch bridge emits bodyJsonString: JSON.stringify(o).
    4. Webview success path calls JSON.parse(e.bodyJsonString) when there is no body property.
    5. The lock release side effect occurs before the response parse failure. This is a confirmed serialization defect, but it is not established as the cause of the replay or every stalled prompt.
    6. Startup logs also show Cloudflare 403 challenge HTML for /accounts/optimized/check and /subscriptions, and unhandled thread-queued-followups-changed broadcasts. These are correlated observations, not proven causes.
    7. Thread resume logs include "dropping turn-scoped item for unknown turn id" warnings. Whether related to the replay is unknown.

    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.

  5. tedla-brandsema commented on Oct 1, 2026

    @tedla-brandsema

    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.

  6. Syntholx commented on Oct 1, 2026

    @Syntholx

    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.

  7. DigitaleCreaties commented on Oct 1, 2026

    @DigitaleCreaties

    I observed the same error on macOS with the Codex VS Code extension.

    Environment

    • Platform: macOS, darwin-x64, macOS Tahoe 26.5.2 (25F84)
    • VS Code: 1.140.0
    • Affected extension: openai.chatgpt 26.928.31416
    • Rolled back to: openai.chatgpt 26.917.62051
    • Authentication: ChatGPT account

    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.

  8. sonqduong commented on Oct 1, 2026

    @sonqduong

    Additional Remote SSH reproduction on Codex VS Code extension 26.928.31416.

    Environment

    • Local VS Code client: macOS arm64
    • Remote extension host: Linux x64 on an HPC system through VS Code Remote SSH
    • Codex extension: 26.928.31416
    • Custom Responses-compatible gateway backed by Azure OpenAI
    • Model used during reproduction: gpt-5.6-luna

    The same extension version works normally in a local macOS VS Code window. Rolling the remote Linux extension back to 26.917.62051 resolves 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:

    Stream event response.completed
    Closing stream after terminal SSE event response.completed
    Stream completed cleanly
    

    Completion took approximately 200–300 ms. The next submitted prompt then remained sending or pending in the Codex UI. The gateway logged no subsequent Incoming POST, showing that the frozen prompt did not reach the gateway handler.

    Persisted client state showed one affected conversation with sending, pending, pending submissions and another with sending, pending submissions.

    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:

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

    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.

  9. Kotaro-the-Corgi commented on Oct 2, 2026

    @Kotaro-the-Corgi

    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:

    • Windows x64, VS Code.
    • Affected webview bundle: openai.chatgpt-26.5928.31416-win32-x64/webview/assets/app-initial-48c569ae16a4.js (installed package directory and package.json version).
    • App-server client version logged for the newer extension: 26.928.31416.
    • Bundled Codex version recorded in the affected rollout: 0.159.2.
    • Multiple VS Code windows were open; backend processes from the older 26.5917.62051 and newer 26.5928.31416 installed extensions were both running. Whether this contributes is unknown.
    • Subscription tier was not collected.

    User-visible symptoms:

    • The user reports requests being resubmitted without intentionally sending them again.
    • Subsequent messages can remain at a loading spinner and appear not to reach Codex.
    • This also recurred in a new conversation, after an older conversation had become stuck.

    Confirmed duplicate in the same local rollout:

    1. 2026-10-02T01:51:57.545Z — original user request (10:51:57 JST).
    2. 2026-10-02T02:01:03.662Z — original task completed, with a final answer.
    3. 2026-10-02T02:02:16.396Z — identical user request recorded again (11:02:16 JST), under a different turn ID.
    4. 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_message occurrences with separate task_started events 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):

    2026-10-02 11:02:16.298 [warning] [IpcClient] Received broadcast but no handler is configured method=query-cache-invalidate
    2026-10-02 11:02:16.298 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-queued-followups-changed
    
    2026-10-02 11:02:16.423 [warning] Failed to release queued message send lock
    conversationId=<affected-thread>
    errorMessage="\"undefined\" is not valid JSON"
    errorName=SyntaxError
        at JSON.parse (<anonymous>)
        at e.onFetchResponse (.../webview/assets/app-initial-48c569ae16a4.js:3:1518)
        at e.deliverMessage (...)
        at e.deliverOrBufferMessage (...)
    
    2026-10-02 11:02:41.642 [warning] Failed to release queued message send lock
    conversationId=<same-affected-thread>
    errorMessage="\"undefined\" is not valid JSON"
    errorName=SyntaxError
    

    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:

    • Between 11:02:11 and 11:02:16 JST, 44 session-creation failures were recorded while an older VS Code client (26.917.62051 in the log) repeatedly attempted thread/resume.
    • Error: thread-store conflict: thread <other-thread> already has an active writer.
    • The corresponding extension log also records Failed to execute queued message and Failed to release queued message send lock for that other thread.
    • This is additional context only; it does not prove that the writer conflict caused the duplicate or the spinner in the affected newer conversation.

    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.

  10. tedla-brandsema commented on Oct 2, 2026

    @tedla-brandsema

    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

    07:46:24.888 QDBG defer+ count=1 id=1                       # composer submits follow-up, defers automatic turns
    07:46:25.253 QDBG defer- count=0 id=1                       # all deferrals released correctly
    07:46:25.253 QDBG o-refreshing len=1 ready=true refreshInFlight=true requested=storage-change
                                                                # follow-up IS in memory (len=1); drain waits for refresh
    07:46:25.260 QDBG refresh-loaded storageChange=true         # in-flight load discarded, refresh re-runs
    07:46:25.282 QDBG refresh-loaded storedKeys=0               # stored queue is empty: follow-up not saved yet
    07:46:25.282 QDBG refresh-apply memLen=1 same=true storedLen=null
                                                                # in-memory queue (1 msg) replaced with stored copy (empty)
    07:46:31.222 QDBG refresh-apply memLen=0 same=true          # follow-up gone; nothing ever drains it
    

    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:

    1. Takes a snapshot of the in-memory entries, marks each one refreshing in place (for(let[,t]of e)t.refreshing=!0), and calls this.options.storage.load().
    2. When the load finishes, it overwrites each entry if it's still the same object:
      for(let[t,r]of e)this.messages.get(t)===r&&!this.pending.has(t)&&...&&this.messages.set(t,{messages:n[t]??PQ,refreshing:!1})

    The ===r check 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, and n[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

    • Deferral leak: deferAutomaticTurns takes and releases are balanced (count returns to 0).
    • Send lock: stuck follow-ups never reach acquireSendLock. The "undefined" is not valid JSON warning only appears on sends that succeed: the queued-follow-up-send-lock-release handler returns undefined, 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

    • Whether saving the follow-up was still in progress or had failed: storage simply returned 0 keys at 07:46:25.282.
    • Which change event requested the second refresh (requested=storage-change). The timing suggests it was our own queue write.

    Suggested fix

    • When applying a refresh, merge in local messages that aren't in storage yet instead of replacing the entry, for example by keeping entries whose submission.status is pending/queued and that are missing from n[t]; or
    • have the refresh wait for pending queue saves before calling storage.load(), or give each entry a version number that a save increments, so the ===r check fails for entries whose saved state is behind memory.

    I can share the logging patch I used (it adds logger.warning calls to #o, #u, #i, deferAutomaticTurns and the composer's accepted callback) if that would help.

  11. Overbord commented on Oct 2, 2026

    @Overbord

    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

    • Client: VS Code on Windows, connected via Remote-SSH
    • Remote host: Linux arm64
    • Extension (remote): openai.chatgpt-26.928.40906-linux-arm64
    • VS Code version:

    Symptom: 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:

    07:43:36.587 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-queued-followups-changed
    07:43:37.004 [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 (.../openai.chatgpt-26.928.40906-linux-arm64/webview/assets/app-initial-28419e5a8181.js:3:1518)
        at e.deliverMessage (.../app-initial-28419e5a8181.js:2:41644)
        at e.deliverOrBufferMessage (.../app-initial-28419e5a8181.js:2:42153)
        at e.handleMessage (.../app-initial-28419e5a8181.js:2:42222)
        at windowMessageListener (.../app-initial-28419e5a8181.js:2:41304)
    

    Two other things that may be relevant:

    • At 07:45:44, two turn-start config resolved events 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 id warnings 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.

  12. liulizhiren11 commented on Oct 2, 2026

    @liulizhiren11

    Additional Windows reproduction on the latest extension version after a clean reinstall.

    Environment

    • Windows x64
    • VS Code 1.136.1 (a44adf7f53e00964ab890f9f8758a334f1fc15bc)
    • Codex VS Code extension openai.chatgpt 26.930.21537
    • Companion extension openai.codex-audio 26.930.21537

    User-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 were 26.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.40906 was loaded, so this remains present in 26.930.21537.

    Sanitized log evidence

    On October 2, 2026 (UTC+8), the loaded 26.930.21537 bundle logged the same error repeatedly at 15:00:43, 15:00:59, and 15:01:07:

    [warning] Failed to release queued message send lock
    errorMessage="\"undefined\" is not valid JSON"
    errorName=SyntaxError
        at JSON.parse (<anonymous>)
        at e.onFetchResponse (.../openai.chatgpt-26.930.21537-win32-x64/webview/assets/app-initial-4a6aff8486cb.js:3:1518)
    

    The nearby log stream also repeatedly contains:

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

    Inspection of the installed official bundle still shows the response-contract mismatch described in this issue:

    handler returns undefined
    -> bodyJsonString: JSON.stringify(handlerResult)
    -> JSON.parse(response.bodyJsonString)
    -> SyntaxError
    

    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.

  13. 4 remaining items

  14. debuggerone commented on Oct 2, 2026

    @debuggerone

    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 webview onFetchResponse were exercised together in an isolated VM. The successful void handler returns JavaScript undefined, not the literal string "undefined"; the latter appears through JSON.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:

    - bodyJsonString: JSON.stringify(result)
    + bodyJsonString: JSON.stringify(result ?? null)

    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

    • Syntax checks and exact comparisons with original bundle backups.
    • Five isolated repetitions per mode using the actual extracted coordinator: A running, two follow-ups, completion, persistence, disposal and rehydration.
    • Two controlled live queue rounds: both follow-ups submitted while A was active; A/B/C executed sequentially, once each.
    • Two controlled live steer rounds: both follow-ups acknowledged against A's original turn ID; one task start per conversation.
    • Window reload and reopening completed test conversations: no additional task starts; each test input still present exactly once in canonical user response items. Duplicate response_item/event_msg representations were not counted as separate submissions.
    • No send-lock-release parse warnings in the instrumented test window.

    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.

      +0 host STORAGE_WRITE: thread entry [TEST_B]
      +2 host STORAGE_READ:  thread entry [TEST_B]
     +74 coordinator LOCK_ACQUIRE / SUBMIT_BEGIN
     +84 local queue status: sending
    +133 host STORAGE_READ:  thread entry []
    +166 host STORAGE_WRITE: thread entry []
    +195 coordinator queue commit/state: []
    +247 LOCK_RELEASE_OK: sent=false
    

    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.

  15. stivenson commented on Oct 3, 2026

    @stivenson

    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:

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

    Installed-bundle inspection confirms the same chain described in this issue:

    1. queued-follow-up-send-lock-release calls this.queuedFollowUpSendLocks.release(...) without returning a value.
    2. The internal fetch bridge returns bodyJsonString: JSON.stringify(o).
    3. The webview success handler calls JSON.parse(e.bodyJsonString) when there is no body property.

    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_started and 16 task_complete events. One illustrative sequence, normalized to UTC:

    2026-10-03T02:17:12.708Z  task_started
    2026-10-03T02:17:12.889Z  Failed to release queued message send lock / SyntaxError
    2026-10-03T02:17:18.875Z  task_complete
    

    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 normalization JSON.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.

  16. stivenson commented on Oct 3, 2026

    @stivenson

    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:

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

    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.

  17. IveSan83 commented on Oct 3, 2026

    @IveSan83

    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.

    Extension version Evidence and verification scope
    26.917.62051 A baseline rollback restored reliable sequential submissions in my tests. I also inspected the earlier submission path in the saved package.
    26.928.31416 Other users report matching symptoms and the response-serialization error. I did not personally perform a complete test run on this version.
    26.928.40906 Other users report matching symptoms and have published queue investigations. I did not personally perform a complete test run on this version.
    26.930.21537 I personally reproduced the loss of a submitted message and captured a trace at the point where the queue was overwritten.
    26.930.31428 I inspected the shipped files and submission path. The affected queue and serialization code remains present, and recent reports describe matching symptoms. The published repair targets this version specifically, win32-x64.

    Several distinct symptoms appeared after the update:

    • Submitted text disappeared from the composer without a new response.
    • A message remained pending and blocked subsequent submissions.
    • A previously processed request reappeared in the queue and could be submitted again.
    • The first message in a new conversation succeeded, while later messages could stall.
    • Waiting for the previous turn to finish did not consistently prevent the failure.

    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 acceptLocally branch was introduced. For an ordinary message in an existing local conversation, it first persists a queue entry with status pending, then starts processing it. This also applies to the send-now submission 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.1 to 0.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:

    QUEUE_REPRO_REFRESH memoryCount=1 pendingWrite=false sameEntry=true storedCount=0
    

    The sequence was:

    1. The coordinator already held one message in memory.
    2. No write was marked as pending: pendingWrite=false.
    3. The storage refresh returned an empty list: storedCount=0.
    4. The queue-entry identity check passed: sameEntry=true.
    5. The coordinator replaced its in-memory message list with the empty snapshot.
    6. The message disappeared before transport submission.

    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 pending or sending.

    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 pending entry, 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:

    • Removes receipt-confirmed A before acquiring the send lock.
    • Preserves pending B.
    • Submits only B.
    • Matches cleanup by message ID. A status change from pending to sending does not prevent removal of an already accepted request.

    I investigated Failed to release queued message send lock separately.

    The release handler returns JavaScript undefined. The bridge uses JSON.stringify(result), and the response consumer attempts to parse the result as JSON. Serializing undefined produces no JSON value, resulting in:

    SyntaxError: "undefined" is not valid JSON
    

    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:

    JSON.stringify(result ?? null)

    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.

    • The queue uses a separate persistent journal instead of the whole-extension Memento snapshot. Writes use a temporary file, synchronization of its contents, and atomic replacement.
    • Persistence uses revision-checked compare-and-set (CAS). A revision conflict causes the storage mutation to be recomputed; it does not repeat the model request.
    • Durable retirement records retain deleted message IDs. A stale snapshot cannot restore a removed entry after reading a newer revision or restarting.
    • Explicit Undo advances the message generation. Stale edits or removals targeting the previous generation cannot damage the restored entry.
    • Positive acceptance receipts are checked by ID before and after send-lock acquisition. Absence from partially loaded history is not treated as proof of non-delivery.
    • Submissions with an unknown outcome are retained for review.
    • The pending → sending transition must actually update the expected entry. If another writer has already persisted sending, a CAS retry cannot let a second sender claim that transition.
    • Other windows receive canonical local queue state even when a notification is lost. A stale window cannot remove messages it has not yet observed or rewind submission state.
    • Writer-lock ownership is identified by PID and a unique owner token. Recovery is allowed after the owner process is confirmed dead. Live, reused, or unverifiable PIDs are not evicted based on lock age.
    • Concurrent reads are coalesced. Slow background polling cannot build a backlog ahead of foreground writes.
    • A cleanup failure after a successful commit does not turn that commit into an apparent failure. A lost write response does not trigger an automatic retry.

    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 sending state, 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:

    • Node 22.18.0.
    • Electron 43.7.3 / Node 24.21.0, using the installed VS Code executable.

    The final run produced 152 passing test executions, with zero failures, skips, or cancellations.

    Test group Test count
    Read scheduling, writes, timeouts, and notifications 13
    Coordinator extracted from the shipped bundle and control reproductions 13
    Coordinator interaction, Stop, Undo, and cross-window updates 5
    CAS conflicts, acceptance reconciliation, and canonical results 7
    Locks, process termination, and filesystem failures 15
    Four concurrent writer processes 1
    Retirement records, generations, and stale-snapshot protection 11
    Persistent storage, migration, and corrupt data 8
    Loading the packaged module dependency chain 2
    Two-client stress scenario 1
    Total 76

    The reproduced scenarios include:

    • 20 sequential submissions, with a state refresh after each: 20 unique test-transport calls, with an empty queue after completion.
    • Queue: A is running while B/C are added; A/B/C then execute sequentially.
    • Steer: A starts once, B/C are submitted through steer, and rehydration with acceptance receipts causes no repeat submissions.
    • Stop followed by identical text: a new request with the same text but a fresh ID remains a separate submission.
    • Unknown delivery outcome: a sending entry without confirmation is retained after rehydration with an unknown outcome; it is not automatically resubmitted. A later positive receipt removes it without another send.
    • Delete/Undo and another window: stale mutations cannot delete the restored generation or resurrect a retired ID.
    • Eight clients appending to one conversation: all eight added IDs are retained.
    • Four real writer processes: all 48 messages are retained, with 48 unique IDs.
    • Writer termination before and after commit: previously committed state is preserved, and the terminated process's writer lock is recoverable.
    • Corrupt data and read errors: an error is returned; the queue is not replaced with an empty state.
    • Lost write response: neither the write with an unknown outcome nor its updater function is automatically repeated.

    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.

    Final stress-run metric Node Electron/Node Total
    Add/read/remove cycles 180 180 360
    Concurrent writes by the second client 807 724 1,531
    Lost messages 0 0 0
    Resurrected messages 0 0 0
    Incorrect reads 0 0 0

    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 as codex-queue-store.cjs. This prevented extension startup.

    The earlier tests substituted require and 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:

    • 19,378 original archive entries accounted for.
    • 19,372 preserved byte-for-byte.
    • Six intentionally modified.
    • Six added.
    • No missing or unexpected entries.
    • The native codex-cli 0.160.0 SHA-256 matches the original.

    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.cmd downloads 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.

  18. junsh-lookback commented on Oct 3, 2026

    @junsh-lookback

    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):

    15:17:04.696 [warning] Failed to release queued message send lock
    errorMessage="\"undefined\" is not valid JSON" errorName=SyntaxError
    15:20:12.822 [warning] Failed to release queued message send lock
    errorMessage="\"undefined\" is not valid JSON" errorName=SyntaxError
    

    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.

  19. pcarret commented on Oct 3, 2026

    @pcarret

    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.

    • OS: Windows x64
    • Originally affected extension: openai.chatgpt-26.930.21537-win32-x64
    • Model: Sol 6.1, Light reasoning
    • Subscription: ChatGPT Pro
    • Symptom: Even a trivial prompt such as “Say hello” remained queued for approximately 15 minutes before being processed.
    • Log warning: sa_server_request_failed, HTTP 404, 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.

  20. IveSan83 commented on Oct 3, 2026

    @IveSan83

    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

    1. A queued message is erased before submission. The actual unmodified coordinator accepts one message with execution disabled. After its writes settle, an empty storage snapshot is delivered through its refresh path. Queue length changes from 1 to 0, with 0 transport sends. This is a controlled stale-snapshot reproduction, not an automated live IDE conversation.
    2. A restored pending message is submitted again despite a positive loaded receipt. With A already confirmed by the receipt callback, the original coordinator sends restored pending A again. The repair reconciles that receipt before send-lock acquisition and continues with B, if present.
    3. The void-response JSON contract is still broken. The shipped queued-follow-up-send-lock-release handler calls release(...) and returns undefined; the host serializes JSON.stringify(o), and the actual webview parser rejects JSON.parse(e.bodyJsonString). The release side effect happens before the parser error, so this warning alone does not establish a stuck lock. Serializing o ?? null repairs 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.exe is 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.

  21. draybu commented on Oct 3, 2026

    @draybu

    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:

    • Codex IDE extension: openai.chatgpt 26.930.31730 (darwin-arm64)
    • VS Code: 1.140.0
    • Platform: Darwin 27.0.0 arm64 arm
    • Observed October 3, 2026, America/Denver

    Controlled reproduction:

    1. Close other VS Code windows, leaving one repository window with a Codex conversation open.
    2. Send simple prompts and wait for replies. We tested “single-window test.” and “single-window test. two”; the user confirmed both stayed in the transcript. A third test also remained visible in the subsequent screenshot.
    3. Open a second VS Code window for another repository. No new prompt needs to be sent from that second window.
    4. Send a prompt in the original window. Our test was: “Other window is open, but I haven't sent any prompts over there yet.”
    5. Codex receives and answers it, but the user message disappears from above the answer and reappears in the queue above the composer with a warning icon and Retry. In the captured screenshot the same text was also restored to the composer.

    Expected: independent repository windows can run Codex conversations; delivered messages remain in their transcript and leave the queue.

    Observed recovery attempts:

    • Reload Window did not resolve it.
    • Fully quitting/reopening VS Code did not prevent recurrence with multiple windows.
    • The single-window control worked in the test above; reopening the second window reproduced the failure without sending a prompt there.

    Representative local log excerpts (paths and conversation IDs omitted):

    [warning] Failed to release queued message send lock
    errorMessage="\"undefined\" is not valid JSON"
    errorName=SyntaxError
        at JSON.parse (<anonymous>)
        at e.onFetchResponse (.../webview/assets/app-initial-7d34126aa1b5.js:3:1518)
    
    [warning] [IpcClient] Received broadcast but no handler is configured method=thread-queued-followups-changed
    [warning] [IpcClient] Received broadcast but no handler is configured method=query-cache-invalidate
    

    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.

  22. IveSan83 commented on Oct 4, 2026

    @IveSan83

    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

    1. Queued message loss after stale snapshot delivery. With execution disabled, enqueue one message and wait for storage writes to settle. Inject an empty storage snapshot and invoke the coordinator's refresh path. Its local queue changes from one entry to zero, with zero transport submissions. This is a controlled reproduction of stale snapshot delivery; this particular harness does not execute VS Code's Memento implementation.
    2. Replay despite a positive acceptance receipt. Restore a message with 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.
    3. Invalid internal response JSON during send-lock release. The actual release handler performs release() and returns undefined. The bridge serializes that result without a null fallback, and the actual frontend response parser rejects it. Normalizing undefined to null repairs the response contract while preserving false, 0 and 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 sending entries 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 EPERM while 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, EPERM followed 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

    • 94/94 tests in Node and 94/94 in VS Code's Electron: 188 passes, zero failures, skips or cancellations.
    • 180 two-window add/read/remove cycles per runtime, with a second client writing concurrently: zero lost messages, zero resurrected messages and zero incorrect reads.
    • Coverage includes stale snapshots, accepted-message replay, sequential submissions, queue and steer, interruption/reload, identical text with distinct IDs, deletion/restoration, owner/follower synchronization, actual writer process death and competing lock recovery.
    • Three compatibility checks cover upstream server receipt removal, owner/follower boundaries and replacement/disposal of server queue subscriptions.
    • Cloud-history completion and plugin pagination checks execute current shipped functions.
    • Finished VSIX inventory: 19,378 original entries and 19,384 packaged entries, including six declared added entries; 19,372 entries remain byte-identical. No missing or unexpected files.
    • Host storage startup and isolated journal read/write pass from both the completed VSIX and the installed directory in Node and Electron. Helper filenames and installed bundle hashes are verified.
    • After a manual VS Code restart, the running native process points to the repaired 51102 installation, the installed hashes match, and the observed fresh log contains no undefined-JSON, send-lock-release, missing-module or unknown-queue-write errors.

    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/getMetadata failures 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 :)

  23. debuggerone commented on Oct 5, 2026

    @debuggerone

    Third repair release shipped. If you need another QA engineer who reproduces these races before release, I am open to opportunities :)

    https://openai.com/careers/

    I think you are looking for this.

  24. IveSan83 commented on Oct 5, 2026

    @IveSan83

    @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 🍿

  25. IveSan83 commented on Oct 6, 2026

    @IveSan83

    Update for Codex VS Code 26.930.61225, Windows x64: community repair 2.4 is published.

    out/extension.js is 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)

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

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions