Skip to content

VS Code Codex queues prompts after completed turn; thread remains markedStreaming=true #50118

Open

Description

@stansult

Starting around September 30, 2026, the Codex VS Code extension intermittently starts queueing normal prompts even though the previous turn has already completed and no other request is running.

The problem usually does not happen immediately in a new thread. A new thread works normally for several messages, then eventually a normal completed response is followed by the next prompt being placed into the queue as if Codex still thinks another turn is active.

Sometimes the queued prompt disappears from the UI completely. Pressing the Up Arrow key restores the text in the input box, so the prompt appears to still exist in input/history state even though it is no longer visible as queued.

The problem has reproduced:

  • after fully restarting VS Code
  • in brand-new Codex threads
  • after stopping use of multiple VS Code windows
  • with only one VS Code window running
  • after confirming there were no remaining VS Code/Codex processes

The immediately preceding Codex response can be a completely normal completed answer. No cancellation, interruption, compaction, approval dialog, or failed tool call is required.

Relevant log output shows the latest turn as completed while the thread is still marked as streaming:

latestTurnStatus=completed markedStreaming=true

The log also shows the queued-message send lock failing:

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

A similar send-lock failure also occurs during extension startup.

Expected behavior:
After a turn completes, the next submitted prompt should start normally.

Actual behavior:
After several successful turns, Codex sometimes still treats the completed thread as streaming and queues the next prompt. The queued prompt may remain stuck, disappear, or later send successfully once the state recovers.

Environment:

  • macOS, Intel
  • VS Code
  • Codex extension: openai.chatgpt-26.928.40906-darwin-x64

log1.txt

Activity

  1. added
    bug
    extension
    session
    on Oct 1, 2026
  2. stansult commented on Oct 1, 2026

    @stansult
    Author

    One additional observation: this is intermittent rather than permanently stuck. I have seen a prompt get incorrectly queued after a completed turn, then a subsequent prompt send normally without restarting VS Code or changing threads.

    Also, the attached log contains repeated HTTP 403 responses from endpoints including /settings/user, /tbo/primary, and /subscriptions. I do not know whether those are related to the queue-state issue, but mentioning them in case they help correlate the failure.

  3. GuilhermeP96 commented on Oct 2, 2026

    @GuilhermeP96

    Adding a Windows / VS Code observation matching the Up Arrow / retry behavior described here.

    User-visible symptom

    Since the update on 2026-10-01, while using GPT 6.1 (model name as reported by the user), sending a message requires typing it and retrying Up Arrow + Enter approximately 2–3 times before it is sent.

    This is a direct user report, not a controlled reproduction. The timing coincides with the update; it does not establish that the model caused the failure. No reasoning-effort change was reported as a trigger.

    Environment

    • Windows 11 x64 (10.0.22631)
    • VS Code 1.140.0
    • The VS Code extension registry currently selects openai.chatgpt-26.928.40906-win32-x64.
    • The earlier 26.928.31416 package is also still installed.
    • Local workspace; PowerShell.

    Local diagnostic evidence

    The existing Codex.log snapshot contains 20 occurrences of:

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

    A recent example was logged at local time 22:08:15.327 on 2026-10-01, alongside:

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

    The same log also contains two resume entries with:

    latestTurnStatus=completed markedStreaming=true
    

    These counts are from one snapshot, not error rates. The log spans the session/update, so I am not attributing every historical entry to extension version 26.928.40906, nor claiming each entry corresponds to a particular failed send.

    Expected behavior and limits

    One normal submission should send the message; repeatedly recalling it with Up Arrow and retrying Enter should not be necessary.

    A clean-profile reproduction, an A/B model comparison, and the exact initiating UI action have not been tested. Shared log signatures suggest a connection to the queue/send-lock state, but do not establish the root cause.

    Related: #49975 also reports the same send-lock/JSON error on Windows. This report supplements the existing issue rather than opening another duplicate. No prompts, conversation IDs, account details, credentials, or full logs are attached.

  4. stansult commented on Oct 2, 2026

    @stansult
    Author

    I reviewed the suggested duplicates.

    #50084 appears to describe essentially the same failure and includes the same key diagnostics: latestTurnStatus=completed while markedStreaming=true, plus Failed to release queued message send lock with "undefined" is not valid JSON.

    #50047 also reports the same queued-message lock / JSON parse failure.

    My report may therefore be the macOS/Intel reproduction of the same regression. I’ll leave this open for now in case the cross-platform reproduction and attached logs are useful, but it can be closed/merged if maintainers confirm it is the same underlying issue.

  5. stansult commented on Oct 2, 2026

    @stansult
    Author

    Additional impact detail: this can become severe enough that I sometimes cannot get a prompt through at all. When it gets into that state, repeated attempts still leave the request queued or dropped, and I have to quit and reopen VS Code before I can send the request successfully again.

    So this is not just a cosmetic queue-state issue; it can completely block normal Codex use until the extension/VS Code state is reset.

  6. tolbier commented on Oct 2, 2026

    @tolbier

    I can reproduce this on Linux in the Codex VS Code extension. The installed extension is openai.chatgpt-26.5928.31416-linux-x64; trying the pre-release channel did not prevent the issue.

    On October 2, 2026, while a prompt was visibly stuck in the queue, Codex.log recorded the following at 11:10:32 local time (Europe/Madrid):

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

    The same warning recurred in that thread between 10:59 and 11:10. Around those times, the log also repeatedly reported Received broadcast but no handler is configured method=thread-queued-followups-changed. The queued prompt did not start despite the prior response appearing complete.

    I have omitted the conversation ID and full logs because they contain local paths and session details. I can provide a redacted excerpt if useful.

  7. drodriques commented on Oct 2, 2026

    @drodriques

    I’m seeing the same behavior in the Codex VS Code extension.

    I’m seeing this on the pre-release version of the Codex VS Code extension: 26.5928.31416.

    Occasionally, when I submit a new message after the previous turn appears to have completed, the message gets placed into the steering/follow-up area instead of being sent as a new turn. It shows a progress indicator and only a delete option, and I’m then unable to submit additional messages.

    Reopening VS Code clears the stuck state.

    Screenshot attached.

    Image

    Environment:
    Apple M1 Pro
    VS Code
    Codex extension version: 26.5928.31416

  8. GeoRouv commented on Oct 2, 2026

    @GeoRouv

    Same issue here

  9. stereoreader commented on Oct 2, 2026

    @stereoreader

    can't work because of this, the vscode extension is broken for me, the whole product is broken then, that's really a failure

  10. babatuosi936 commented on Oct 2, 2026

    @babatuosi936

    Additional Windows reproduction on the current stable extension, openai.chatgpt 26.930.21537.

    The problem frequently occurs after just one successful response in a conversation:

    1. Send a message and receive the assistant's completed answer.
    2. After that answer has finished, send a second message in the same conversation.
    3. Instead of starting a normal new turn, the message appears in the follow-up/queue area with a continuously spinning indicator and does not proceed.

    This severely disrupts ordinary back-and-forth use of the extension.

    Environment and local evidence:

    • Windows native VS Code; signed in with a ChatGPT account.
    • Stable extension: 26.930.21537.
    • GPT-6.1 Sol is available in the extension; model availability is no longer the problem.
    • chatgpt.followUpQueueMode is set to queue. The affected submission is made AFTER the previous response has finished, not intentionally queued during active work.
    • Multiple VS Code startups on October 3, 2026 (UTC+08:00) contain the same diagnostics for the affected conversation:
    Failed to release queued message send lock
    SyntaxError: "undefined" is not valid JSON
    latestTurnStatus=completed markedStreaming=true
    Received broadcast but no handler is configured method=thread-queued-followups-changed
    

    Restarting/reloading has not prevented recurrence in this conversation. These signatures match the existing reports, but I have not established that the lock-release parsing error is the sole cause, nor that the model itself triggers the issue. A controlled clean-profile reproduction has not been performed.

    Expected: once a turn completes, the next normal submission should start a new turn promptly. If submission fails, please surface a clear error and a retry action instead of leaving the message spinning indefinitely.

    Please investigate the completed-turn/queue-state reconciliation and advise which extension release fixes it. Related: #49975.

    Only sanitized diagnostics are included; no raw conversation, account identifiers, credentials, or personal filesystem paths are attached.

  11. akospaska commented on Oct 2, 2026

    @akospaska

    Same issue here

  12. aphyllo commented on Oct 3, 2026

    @aphyllo

    I can reproduce the same issue on Windows in VS Code with the Codex extension openai.chatgpt-26.930.31428-win32-x64.

    In one captured occurrence, the previous turn had already emitted task_complete, but the next follow-up remained queued for about 4 minutes 30 seconds. The extension log showed:

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

    It also logged an unhandled thread-queued-followups-changed broadcast. When the queue eventually released, my repeated send attempts appeared as duplicate user messages. Restarting VS Code did not resolve the problem. I initially noticed it after using GPT-6.1 Sol, and it also reproduced in a thread showing GPT-5.6 Sol High, so it does not appear to be limited to one model.

  13. simonVR commented on Oct 3, 2026

    @simonVR

    I see the exact same issue too. Latest codex on Ubuntu

  14. BearBearings commented on Oct 3, 2026

    @BearBearings

    Additional Windows reproduction on October 3, 2026 (Europe/Berlin).

    Environment:

    • Native Windows / VS Code, local workspace, PowerShell.
    • Codex extension: openai.chatgpt-26.930.31730-win32-x64.
    • Git updated from 2.33.0.windows.2 to 2.56.0.windows.1 during diagnosis.

    Reproduction:

    1. Submit a prompt and receive a finished answer.
    2. The UI continues showing running/inference state.
    3. Submit another prompt in the same chat; it is treated as an active-turn follow-up/queued message and can hang.
    4. This also occurs with the minimal prompt type ok and persists after restarting VS Code.

    Evidence from the affected chat:

    • The local session transcript contains task_complete events for both short ok replies.
    • At 07:40:02 local time, after a VS Code restart, Codex.log contains a resume entry with:
    latestTurnStatus=completed markedStreaming=true
    
    • The extension also repeatedly logs:
    [IpcClient] Received broadcast but no handler is configured method=thread-queued-followups-changed
    

    The original Git installation did not support the git add --sparse option used by turn-diff capture. Updating Git fixed that confirmed incompatibility, but the user-visible completion/queue problem persisted. The Git error therefore was not a sufficient explanation or fix.

    Expected: after a completed response, clear the running indicator and accept the next prompt as a new turn.
    Actual: the UI retains running/inference state and subsequent submissions may hang in follow-up/queue handling.

    A temporary clean-profile test has not been performed. These observations do not establish the root cause or prove that markedStreaming=true is itself erroneous in every resume context. No raw transcripts, account IDs, conversation IDs, credentials, or personal filesystem paths are included.

  15. petterip commented on Oct 3, 2026

    @petterip

    Same here. A completed turn can still leave the thread in a streaming state, so the next message gets stuck instead of being sent. Rolling back helps, but 26.917.62051 lacks GPT-6.1 Sol support. Waiting for a fix.

  16. Arctic-Xiangjian commented on Oct 3, 2026

    @Arctic-Xiangjian

    same for me

  17. zanewnch commented on Oct 3, 2026

    @zanewnch

    Additional native Windows evidence on 2026-10-03, verified against the current extension 26.930.31730. This regression is seriously disrupting normal conversational use and persists across extension updates and a full PC reboot.

    Observed: accepted user messages remain in persisted local queues. Independently reproduced in extracted installed code: a JSON serialization/equality mismatch can stop the queue coordinator before the backend boundary; separately, void lock-release responses cause the webview promise to reject after the lock has already been released. The complete causal chain of every UI stall is not established.

    Environment

    • Native Windows x64, OS 10.0.26200.0; local workspace and PowerShell, not Remote WSL.
    • VS Code 1.140.0; VS Code Insiders 1.141.0-insider is also running.
    • Both editors select openai.chatgpt-26.930.31730-win32-x64, with bundled codex-cli 0.160.0.
    • Process inspection confirms each editor launches its own bundled codex.exe app-server --analytics-default-enabled, rather than the separately managed daemon.
    • Separately installed CLI and managed daemon both report 0.160.0; no version mismatch was observed.
    • Stable VS Code's main user settings explicitly set chatgpt.followUpQueueMode = steer; the historical residual queue entries below carry queueModeOverride = queue. No custom CLI executable is configured in that main settings file. Effective settings across every scope have not been independently queried.

    Post-reboot errors

    A newly started stable VS Code log records this at 16:20:22.348 and 16:20:50.642, UTC+08:00:

    [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-7d34126aa1b5.js:3:1518)
    

    Pre-reboot logs show the same warning in both 26.930.31428 and 26.930.31730. Unhandled thread-queued-followups-changed broadcasts also appear. HTTP 403/Cloudflare challenges were observed separately; no causal connection to the queue failure has been established.

    Persisted queue versus accepted history: exact ID checks

    Read-only inspection of stable VS Code's User/globalStorage/state.vscdb, key openai.chatgpt → queued-follow-ups, found nine entries across six conversations:

    • Six entries, one at the head of each conversation's local queue, have submission.status = outcome-unknown and pausedReason = submission-outcome-unknown.
    • For each of those six entries, its queue id exactly equals payload.item.client_id in a session JSONL event with type = event_msg, payload.type = item_completed, and payload.item.type = UserMessage. Each inspected transcript contains one such matching event. This is an ID match, not an inference from repeated text.
    • Acceptance timestamps span October 1–2; the queue entries still persist after the October 3 reboot.
    • Three additional entries remain pending behind affected heads. No matching accepted client IDs were found in their inspected transcripts. This does not prove they were never accepted elsewhere.
    • Stored submission objects omit editPosition.
    • Insiders' corresponding persisted queue is empty. These queue/history observations are specifically from stable VS Code.

    This confirms divergence between persisted queue state and accepted session history. It does not establish which runtime guard prevented each historical entry from being reconciled.

    Isolated reproduction using the actual installed coordinator

    Related analysis: #50365.

    The installed queue code creates submissions with optional fields such as editPosition, and uses whole-object equality in execution guards, status updates, and sent-item removal. The actual bundled equality function returns false after an optional undefined property is removed by JSON serialization.

    We then extracted the installed coordinator class and ran its unchanged private execution/storage methods, using synthetic data, a JSON-roundtripping storage mock, and a mocked backend boundary. A test-only public accessor invokes the private execution method; automatic scheduling is suppressed to execute one controlled attempt. Framework/runtime dependencies are stubbed. No installed file or user state is modified.

    Controlled case Mock backend boundary calls Queue entries left Result
    Cached message includes editPosition: undefined; storage returns its JSON-normalized copy 0 1 Remains pending; execution exits during the before-send status transition
    Same message, storage preserves the in-memory object 1 0 Send and removal complete
    Same JSON storage, cached message normalized first 1 0 Send and removal complete
    Already normalized outcome-unknown message; accepted-history predicate returns true 0 0 Reconciliation removes it without resending

    The last control matters: accepted residual entries are not intrinsically unrecoverable. History/readiness/ownership and timing still need investigation in the real UI. These tests show a concrete failure mechanism under controlled inputs, not a clean-profile UI reproduction.

    Independently reproduced void-response bridge defect

    The actual installed queued-follow-up-send-lock-release handler, lock-manager release method, and webview onFetchResponse parser were extracted and invoked with synthetic identifiers.

    Verified sequence:

    1. The active lock is removed.
    2. A sent-message receipt is recorded when sent = true.
    3. The async handler returns JavaScript undefined.
    4. JSON.stringify(result) returns undefined; transport serialization omits that response field.
    5. The parser rejects the pending request with SyntaxError: "undefined" is not valid JSON.

    Controls: a JSON null response and a normal {"acquired":true} response resolve; malformed JSON still rejects.

    The warning is a response-parsing failure after successful lock release, not evidence by itself of an unreleased lock. Fixing this parser/producer contract alone is not demonstrated to fix all queue stalls.

    Package fingerprints

    These SHA-256 hashes match between the installed stable and Insiders copies:

    out/extension.js
    5eb050f6c72ffdd60114e1e5f5800b8368353b6922e49abe19adde4782a03e9f
    
    webview/assets/app-initial-ef6113854c2e.js
    68274a169d7cf58b09222494545353519818783239a769b7b7987e670415dbf7
    
    webview/assets/app-initial-7d34126aa1b5.js
    e3c95feeed53805e5a7fbbac95c9d51747d74c270f407c1edb9b689f756bc7f2
    

    Standalone diagnostic

    The script below requires Node.js and the installed 26.930.31730 Windows x64 package. It reads installed files and uses synthetic messages/mocks; it makes no network/model requests and writes no extension or user-state files. It fails if the expected version/source markers are absent.

    node codex-queue-repro.cjs "<installed extension directory>"
    
    Reproducer with assertions for coordinator and bridge controls
    // Reproduction for openai.chatgpt 26.930.31730 (Windows x64).
    // No network calls, model requests, or writes to extension/user state.
    // Usage: node codex-queue-repro.cjs "<installed extension directory>"
    const fs = require('node:fs');
    const path = require('node:path');
    const vm = require('node:vm');
    const assert = require('node:assert/strict');
    const base = process.argv[2];
    assert(base, 'Pass the installed extension directory');
    const read = rel => fs.readFileSync(path.join(base, rel), 'utf8');
    assert.equal(JSON.parse(read('package.json')).version, '26.930.31730');
    function extract(s, from, to) {
      const a = s.indexOf(from);
      assert(a >= 0, `Missing start: ${from}`);
      const b = s.indexOf(to, a);
      assert(b > a, `Missing end: ${to}`);
      return s.slice(a, b);
    }
    const bundle = read('webview/assets/app-initial-ef6113854c2e.js');
    const definitions = extract(bundle, 'var In=i(', ',fa=i(') + ';';
    // The final brace here closes the lazy module initializer, not the class.
    let coordinator = extract(bundle, 'EAn=class', '})))()}function OAn');
    coordinator = coordinator.replace('EAn=class', 'class');
    assert(coordinator.endsWith('}}'));
    // Test-only accessor. All private method bodies remain unchanged.
    coordinator = coordinator.slice(0, -1) + ' debugExecute(e,t,n){return this.#u(e,t,n)} }';
    const ctx = { Gh: class extends Error {} };
    vm.createContext(ctx);
    vm.runInContext(
      'var i=(fn,res)=>()=>{if(!res){res={exports:{}};fn(res.exports,res)}return res.exports};' +
      definitions + ';globalThis.equal=da();', ctx
    );
    Object.assign(ctx, {
      Vq: class {}, SAn: () => ({}), MQ: { default: ctx.equal }, NQ: [],
      TAn: 'submission-outcome-unknown', m: x => x, ne: () => false,
      jQ: class extends Error {}, it: class extends Error {}, Xt: class extends Error {}
    });
    const Coordinator = vm.runInContext('(' + coordinator + ')', ctx);
    async function queueCase(name, roundtrip, normalizeMemory, accepted) {
      const clone = x => roundtrip ? JSON.parse(JSON.stringify(x)) : x;
      const message = { id: 'synthetic-message', context: {}, submission: {
        hostId: 'local', status: accepted ? 'outcome-unknown' : 'pending',
        queueModeOverride: 'queue', editPosition: undefined
      }};
      let state = { synthetic: [clone(message)] }, backendCalls = 0;
      const storage = {
        read: () => ({ isLoading: false, value: state }), load: async () => state,
        update: async fn => { state = clone(fn(state)); }
      };
      const options = {
        storage, hostId: 'local', getStreamRole: () => ({ role: 'owner' }),
        isDurableThread: () => true, getMessageQueueMode: () => 'queue',
        wasMessageAccepted: () => accepted, canSend: () => true,
        submissionHost: { needsResume: () => false },
        logger: { warning() {}, error() {} }
      };
      const c = new Coordinator(options);
      await c.executionReady;
      c.messages.set('synthetic', { refreshing: false, messages: [
        normalizeMemory ? JSON.parse(JSON.stringify(message)) : message
      ]});
      // Suppress automatic scheduling; explicitly run one execution below.
      c.automaticTurnDeferrals.set('synthetic', 1);
      const execution = {
        isClientReady: () => true, tryAcquireStartTurn: () => true,
        releaseStartTurn() {}, acquireSendLock: async () => ({ release: async () => {} })
      };
      c.execution = execution;
      c.submission = { sendMessage: async (...args) => {
        await args[5](); // Actual coordinator's before-send status transition.
        backendCalls++; // Mock backend boundary, not a real request.
        return { status: 'sent', turnId: 'synthetic-turn' };
      }};
      await c.debugExecute('synthetic', execution, {
        messageId: message.id, assertAdmission() {}, operation: {}
      });
      const result = { name, backendCalls, remaining: state.synthetic?.length ?? 0,
        status: state.synthetic?.[0]?.submission?.status ?? null };
      c.dispose();
      return result;
    }
    async function bridgeCase() {
      const host = read('out/extension.js');
      const release = extract(host,
        'release({conversationId:e,messageId:r,lockId:n,sent:o}){',
        'getSentMessageKey(e,r){');
      const handler = extract(host, '"queued-follow-up-send-lock-release":',
        ',"set-vs-context"').slice('"queued-follow-up-send-lock-release":'.length);
      const parser = extract(read('webview/assets/app-initial-7d34126aa1b5.js'),
        'onFetchResponse(e){', 'async get(');
      const releaseFn = vm.runInContext('({' + release + '}).release', ctx);
      const factory = vm.runInContext('(function(){return ' + handler + '})', ctx);
      const parse = vm.runInContext('({' + parser + '}).onFetchResponse', ctx);
      const activeLocks = new Map([['t', { lockId: 'l', expiresAtMs: 123456 }]]);
      const sentMessages = new Map();
      const lockManager = { activeLocks, sentMessages, now: () => 1000,
        getSentMessageKey: (t, m) => t + '\n' + m, release: releaseFn };
      const fn = factory.call({ queuedFollowUpSendLocks: lockManager });
      const result = await fn({ conversationId: 't', messageId: 'm', lockId: 'l', sent: true });
      function deliver(bodyJsonString) {
        let resolved = false, rejection;
        const response = JSON.parse(JSON.stringify({ requestId: 'test',
          responseType: 'success', status: 200, headers: {}, bodyJsonString }));
        const pendingRequests = new Map([['test', {
          resolve() { resolved = true; }, reject(e) { rejection = e; }
        }]]);
        parse.call({ pendingRequests }, response);
        return { resolved, error: rejection?.name ?? null };
      }
      const broken = deliver(JSON.stringify(result));
      assert.equal(activeLocks.size, 0);
      assert.equal(sentMessages.size, 1);
      assert.equal(broken.error, 'SyntaxError');
      assert.equal(deliver('null').resolved, true);
      assert.equal(deliver('{"acquired":true}').resolved, true);
      assert.equal(deliver('{').error, 'SyntaxError');
      return { lockRemoved: true, sentReceiptRecorded: true, voidReply: broken,
        nullReplyAccepted: true, normalReplyAccepted: true, malformedReplyRejected: true };
    }
    (async () => {
      const cases = [
        await queueCase('JSON_optional_undefined', true, false, false),
        await queueCase('no_JSON_control', false, false, false),
        await queueCase('normalized_memory_control', true, true, false),
        await queueCase('accepted_history_control', true, true, true)
      ];
      assert.deepEqual(cases.map(x => [x.backendCalls, x.remaining]),
        [[0, 1], [1, 0], [1, 0], [0, 0]]);
      assert.equal(cases[0].status, 'pending');
      console.log(JSON.stringify({ queue: cases, bridge: await bridgeCase() }, null, 2));
    })().catch(e => { console.error(e.name, e.message); process.exitCode = 1; });

    Requested investigation and remaining limits

    Please investigate the serialization/equality boundary in queue status transitions and sent-message removal, reconciliation against accepted client IDs, and the void-response bridge contract. Please identify the extension release that fixes this regression.

    • The installed extension bundles and state database were not modified during diagnosis.
    • A CLI downgrade was briefly installed during an earlier interrupted troubleshooting attempt, then the CLI was updated back to 0.160.0. Neither editor's extension was successfully downgraded.
    • No clean-profile or single-editor UI A/B reproduction has been performed. Both stable VS Code and Insiders are running.
    • We have not observed markedStreaming=true in the inspected post-reboot log and are not asserting that condition for this machine.
    • Duplicate delivery of the same client ID has not been established in this local evidence. The confirmed finding is accepted-message queue residue.
    • The extracted-code tests do not cover real app-server transport, live ownership transitions, or every UI timing condition.

    Prepared with Codex assistance from local evidence. Private prompts, conversation/message IDs, personal paths, account identifiers, credentials, raw databases, complete transcripts, and extension bundles are omitted.

  18. XIronMan0220 commented on Oct 3, 2026

    @XIronMan0220

    Additional reproduction on the latest VS Code extension available to me, openai.chatgpt 26.930.31730 on Windows 11.

    The same user-visible failure still occurs:

    1. A normal Codex turn finishes and the assistant response is visible.
    2. I send the next message in the same thread.
    3. The message can get stuck in the follow-up/queue area with a spinning indicator instead of starting a new turn.
    4. Reloading the VS Code window may then cause a message that had already been delivered and answered to be submitted again.
    5. In those cases, the previously visible assistant response can disappear/rebuild, making the thread history look inconsistent and creating a risk of duplicate execution.

    This is still reproducible after updating from the earlier 26.930 builds to 26.930.31730. I am using GPT-6.1 Sol, but I am not claiming the model itself is the trigger; the behavior appears to be in the extension/thread queue state.

    I do not have a fresh sanitized log excerpt from this exact 26.930.31730 occurrence yet, so I am only reporting the observed UI behavior here. The symptoms still match the queue/state-reconciliation problem described in this issue and in #50107.

    Expected behavior: once a turn is complete, the next normal message should start exactly once, and reloading VS Code must not replay an already accepted/completed user message.

  19. zymnsy commented on Oct 3, 2026

    @zymnsy

    Additional Windows / VS Code report on 2026-10-03, posted with the affected user's explicit authorization.

    Impact: This is repeatedly blocking ordinary paid work. Follow-up requests remain pending or disappear without appearing in the conversation or starting execution. The user has spent substantial time repeatedly retrying and recovering the UI, and cannot rely on requests to save or finish work being delivered. Increasing/resetting the usage allowance does not address this delivery failure. Please prioritize a durable fix and identify a fixed extension version or a supported reliable workaround.

    Environment verified locally: VS Code 1.140.0; Codex extension openai.chatgpt 26.930.31730; Windows, local workspace. User configuration already has chatgpt.followUpQueueMode: "steer"; an independent settings check in the active workspace found no workspace override. Merely recommending changing from queue to steer therefore does not resolve this case.

    Observed/reported behavior: The issue is intermittent, rather than every submission. The user reports it after a conversation grows longer or is left idle for minutes/tens of minutes. Screenshots show a completed assistant response followed by a pending follow-up row; the user reports that the row sometimes disappears and the request does not execute. After trying the extension-host restart workflow the user reported temporary ability to type/send, followed by recurrence. This is not a controlled proof that restart fixed the cause. Voice input plus a mouse macro is used sometimes, but is not established as the cause.

    Sanitized diagnostic findings: Local logs contain repeated Conversation state not found, Received broadcast but no handler is configured method=thread-queued-followups-changed, and ipc-connection-reset notifications. One inspected conversation changed from owner to follower immediately after resume, but that conversation has not been conclusively matched to the reported UI failure. These are diagnostic clues, not a proven root cause. No claim is made that every failure is explained by multi-client ownership.

    Expected: Each submitted request should execute exactly once, or visibly fail while preserving the draft. A disappearing composer/queue row must not imply successful delivery. Please also preserve completed files and conversation history during recovery.

    No private prompts, screenshots, conversation IDs, personal paths, credentials, full logs, or project files are included in this report. Related reports: #50265 and #31128.

  20. interconnectedMe commented on Oct 3, 2026

    @interconnectedMe

    Adding an Ubuntu observation and a successful workaround involving VS Code settings scope.

    Environment

    • Ubuntu 24.04
    • Codex VS Code extension: openai.chatgpt version 26.5901.22334
    • chatgpt.composerEnterBehavior: cmdAlways
    • No custom Ctrl+Enter binding was found in the inspected default or profile keybindings.

    Observed behavior

    During the recurring failure, pressing Ctrl+Enter removed the text from the composer and placed it into the follow-up queue instead of visibly posting it. Clicking the Send arrow worked. In a fresh chat after reloading VS Code, multiline Ctrl+Enter worked normally.

    An initial screenshot captured during troubleshooting showed a “Dictation stopped” banner with a Retry button and an empty “Ask for follow-up changes” composer. It does not show the queued message or settings mismatch, and I have not established whether the dictation state was related.

    Settings-scope observation and workaround

    1. User-level chatgpt.followUpQueueMode was already set to steer.
    2. On the Workspace settings tab, the control nevertheless displayed queue with the label “Modified in User.”
    3. Explicitly setting the Workspace-level value to steer changed the label to “Also modified in User.”
    4. Immediately afterward, Ctrl+Enter successfully steered a running Codex lane. No VS Code reload was required.

    This observed sequence provides a reproduction path to investigate and a successful workaround for this occurrence. It suggests a possible settings-scope/inheritance problem: the User-level steer value appeared not to become effective inside the workspace until steer was explicitly written at Workspace scope. It does not establish the root cause, prove that the settings UI reflected the extension’s effective runtime value, or demonstrate that the workaround resolves every queueing failure.

    I routinely have about five long-running Codex lanes open, so repeatedly using “Developer: Reload Window” is not an acceptable workaround.

    No Codex logs were collected, so I cannot confirm the markedStreaming=true or queued-message-lock errors reported by others. This report supplements the overlapping UI symptoms without claiming an identical underlying defect.

  21. interconnectedMe commented on Oct 3, 2026

    @interconnectedMe

    The problem is still reproducible on Ubuntu 24.04 with the VS Code extension openai.chatgpt version 26.5901.22334.

    Current settings:

    • chatgpt.followUpQueueMode: explicitly set to steer at both User and Workspace scopes.
    • chatgpt.composerEnterBehavior: cmdAlways.

    During an active run, pressing Ctrl+Enter removes the follow-up text from the composer and places it in a pending row showing a spinner and only a delete control. The original run continues displaying “Thinking,” and the follow-up does not appear as a posted message in the conversation.

    Explicitly setting followUpQueueMode to steer at Workspace scope coincided with one successful test, but the failure subsequently recurred. This is not a verified fix.

    Reloading or starting a fresh chat can temporarily restore sending, but recurrence makes those workarounds unsuitable for a workflow involving several long-running lanes.

    We have not collected logs, so we cannot independently confirm markedStreaming=true or the queued-message send-lock error. This report describes the observed UI behaviour; the underlying cause remains unconfirmed.

  22. CryptoBaldezh commented on Oct 3, 2026

    @CryptoBaldezh

    Same here, please fix this, very uncomfortable to work when reboot extensions after every message

  23. Caellum-Kennedy commented on Oct 3, 2026

    @Caellum-Kennedy

    Same here, spamming up arrow has let me send messages. On all models currently. Feels random when it happens.

  24. Akash-bu commented on Oct 3, 2026

    @Akash-bu

    Its kinda very irritating and making work less productive. I Kindly request you to address the issue asap.

  25. stansult commented on Oct 3, 2026

    @stansult
    Author

    Workaround that has helped me: downgrade the VS Code Codex extension from 26.928 to 26.917.62051 and disable auto-update temporarily. Since downgrading, the stuck/queued prompt issue has not reproduced for me so far. This may help others who are currently blocked by the regression.

  26. mergi72 commented on Nov 18, 2026

    @mergi72

    Additional reproduction on Windows with VS Code Codex extension openai.chatgpt-26.1111.21308-win32-x64 (2026-11-18).

    With follow-up behavior set to Queue, messages added while a turn is running sometimes remain visibly queued after the turn is completed. A newly submitted message during that interval is also queued. The backlog eventually advances, often about one minute later. Reloading the VS Code window did not remove the behavior.

    I instrumented the installed extension locally and restored its original files afterward. The diagnostic recorded no failed send-lock acquisition or release in the captured attempts. The extension's log repeatedly showed thread-queued-followups-changed broadcasts with no configured handler, although this alone does not establish causation.

    One measured interval:

    • task_complete: 20:48:21 local time
    • Queue wake immediately afterward: accountReady=true, clientReady=true, deferred=false, role=owner, localCount=4, serverCount=0, pending=false, queueRefresh=false
    • Next task_started: 20:49:21, approximately 60 seconds later

    Other queued turns started within 1–2 seconds after task_complete, so the delay is intermittent within the same conversation. This case appears distinct from reports involving Failed to release queued message send lock / "undefined" is not valid JSON: neither error appeared in this reproduction.

    Expected: the first queued follow-up starts promptly after task_complete. Actual: the UI continues to queue new input and starts the follow-up roughly a minute later.

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

    bugextensionsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions