Skip to content

**Codex VS Code extension (openai.chatgpt) on Windows: Chat stalls after first reply + dictation fails (403 cloudflare_challenge) #50430

Open

Description

@VitalOverdose

What version of the IDE extension are you using?

26.930.21537.

What subscription do you have?

pro

Which IDE are you using?

VS Code

What platform is your computer?

Microsoft Windows NT 10.0.26300.0 x64

What issue are you seeing?

Environment

  • VS Code: 1.140.0
  • Extension: openai.chatgpt 26.930.21537 (win32-x64)
  • Windows: (version not recorded)
  • No VPN; Windows mic access enabled; Windows shows VS Code accessed mic

1) Messages Stall after the first response

Symptoms

  • First message often gets a response; subsequent messages intermittently remain pending/spinner (“Thinking” indefinitely).
  • Some completed turns remain markedStreaming=true, and message IDs may be replayed later.

Logs

  • Failed to release queued message send lock
  • errorMessage="\"undefined\" is not valid JSON"
  • Cases where latestTurnStatus=completed while markedStreaming=true

Config

  • chatgpt.followUpQueueMode = "steer"

Tried (no fix)

Restart Windows/VS Code, update, sign out/in, new chats, model changes, uninstall/reinstall extension.

Notes / likely contributing factors to check

  • Codex features can stall if secure WebSockets over TCP 443 to chatgpt.com are blocked/rewritten; Cloudflare challenges may be triggered by network filtering/TLS inspection even without a VPN.
  • Domains commonly involved include chatgpt.com and challenges.cloudflare.com.

Evidence available

  • VS Code extension-host logs (.../exthost/openai.chatgpt/Codex.log)
  • Codex session transcripts (%USERPROFILE%\.codex\sessions and archived_sessions)
  • Timestamps + request IDs above

2) Dictation / transcription fails

Symptoms

  • UI: “Dictation stopped, try again.”
  • Mic test is normal; Windows dictation works.

Logs

  • 21 consecutive POST https://chatgpt.com/backend-api/transcribe failures across 3 log sessions
  • HTTP 403 with errorMessage=cloudflare_challenge (cf-mitigated detected)

Example request IDs

  • a4461c22bc7457a5-LHR — 2026-10-02 20:28:23 UK time
  • a4468473fb594a6e-LHR — ~2026-10-02 21:39 UK time

Request: Please investigate (a) why /transcribe is getting Cloudflare challenges (403) in the extension, and (b) the separate message send/streaming stall behavior.


What steps can reproduce the bug?

After 1 prompt the next prompt just sits in a queue for ever, spinner is spinning.

voice dictation not working

What is the expected behavior?

voice dictation not working , repeated chat stalls

Additional information

Image

Activity

  1. added
    extension
    on Oct 2, 2026
  2. added
    bug
    windows-os
    connectivity
    on Oct 2, 2026
  3. zappelmann-sketch commented on Oct 4, 2026

    @zappelmann-sketch

    Additional reproduction from my Windows / VS Code setup (2026-10-03 and 2026-10-04).

    The microphone button in the Codex composer can be activated and appears to record, but no transcription is inserted into the prompt field. This makes voice prompt entry unusable for me.

    Environment and version evidence:

    • Windows x64, VS Code desktop.
    • The failing stack traces reference openai.chatgpt 26.930.31730 (win32-x64).
    • Codex Audio is installed; the extension-host log records activation via onCommand:_codex.microphone.available.
    • VS Code subsequently auto-installed openai.chatgpt / openai.codex-audio 26.930.41038. A later failure still references the older loaded webview bundle. I have not verified behavior after reloading onto the newer version, so this is not a claim that the new version fixes or reproduces it.

    Sanitized Codex.log evidence (timestamps as recorded locally):

    2026-10-03 23:09:48.725 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    2026-10-03 23:11:20.389 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    2026-10-03 23:23:36.652 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    2026-10-04 15:01:43.737 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    

    Read-only inspection of the installed extension bundle shows that the dictation path posts the audio to /transcribe and that cloudflare_challenge is assigned when the response contains cf-mitigated: challenge. This supports a transcription-request failure rather than establishing a local microphone-permission failure. The actual microphone audio quality was not independently tested, and the reason Cloudflare challenges this session/network is not yet known.

    Expected: after finishing dictation, editable transcribed text appears in the Codex composer.
    Actual: dictation fails and no text is inserted.

    Please include this as another affected Windows installation when investigating the transcription endpoint / Cloudflare challenge handling. A clear user-facing error and a supported recovery path would also help. This comment reports the dictation failure specifically; it does not assert that the separate chat-stalling behavior has the same cause.

    This report was prepared from local logs with Codex and posted with my explicit authorization. User paths, credentials, and conversation contents have been omitted. No settings were changed during the diagnosis.

  4. ModestoMs commented on Oct 4, 2026

    @ModestoMs

    Please include also mine as another affected Windows installation with the same problem:

    Environment:

    Windows
    Codex extension: 26.930.41038
    Codex Audio: 26.930.41038
    Steps:

    Start dictation using the microphone in Codex in VS Code.
    Speak; the audio indicator moves.
    Stop recording.
    “Dictation stopped” appears, with Retry.
    Retry also fails; no text is produced.
    Comparison:
    ChatGPT web dictation in Microsoft Edge works immediately before
    and after the failing VS Code attempt. ChatGPT desktop app also works.

    Troubleshooting:

    Persists after restarting VS Code.
    Also fails using a mobile hotspot.
    Temporarily disabling McAfee firewall or real-time scanning did not help.
    Protections have been restored.
    No active entries in the Windows hosts file.
    chatgpt.com and challenges.cloudflare.com resolve and load in Edge.
    Session ID: 01a10803-ec98-74f3-bb39-33579c4df85f

    Logs (Europe/Madrid):
    2026-10-04 19:42:35.699 [error] Error fetching httpStatus=403 requestId=a455fbe919e80269-MAD statusText=Forbidden url=/transcribe
    2026-10-04 19:42:35.720 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error

    2026-10-04 20:31:51.168 [error] Error fetching httpStatus=403 requestId=a4564410cc54c90a-MAD statusText=Forbidden url=/transcribe
    2026-10-04 20:31:51.183 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error

  5. rraires commented on Oct 5, 2026

    @rraires

    Ubuntu 26.04, VS Code instalado via .deb
    Codex estável 26.930.51102
    Microfone captura, mas /transcribe retorna 403 cloudflare_challenge
    ChatGPT web transcreve normalmente
    Novo login e troca para versão estável não resolveram
    Request ID: a45cbe6c1d77caec-GIG

  6. VitalOverdose commented on Oct 5, 2026

    @VitalOverdose
    Author

    5 days now and i still cant use Codex for more than 1 prompt befor it stalls and has to be restarted. The microphone problem is annoying the the stalling issue means i cant use codex with my pro plan

  7. changed the title [-]**Codex VS Code extension (openai.chatgpt) on Windows: dictation fails (403 cloudflare_challenge) + chat stalls after first reply**[/-] [+]**Codex VS Code extension (openai.chatgpt) on Windows: Chat stalls after first reply + dictation fails (403 cloudflare_challenge)[/+] on Oct 5, 2026
  8. kjun1 commented on Oct 7, 2026

    @kjun1

    This comment was written with AI assistance.

    This concerns the dictation / transcription part of this issue. My observations are from Linux; I have not tested this on Windows or verified any effect on the separate chat-stalling problem.

    I found a potential temporary workaround for the /transcribe request failing with 403 cloudflare_challenge.

    The default configuration still fails in my environment. With http.electronFetch unset or false, the default Node.js transport receives the Cloudflare challenge. This workaround does not resolve the underlying problem with the default behavior.

    Enable this in VS Code’s user settings:

    {
      "http.electronFetch": true
    }

    This is a built-in VS Code setting that switches the global fetch implementation for local extensions from Node.js to Electron/Chromium. No changes to the Codex extension code are needed.

    I compared both implementations in a standalone API-level diagnostic using the Electron runtime bundled with VS Code, with the same machine, network, authentication, and a short silent audio file:

    • Node.js fetch: 403, with cf-mitigated: challenge
    • Electron/Chromium fetch: 200, with a successful JSON transcription response (empty text, as expected for silent audio)

    ChatGPT dictation in the browser already worked on the same machine and network.

    Environment:

    • Linux
    • VS Code 1.140.0
    • Codex extension 26.1002.51308

    The confirmed successful result above is from the API diagnostic, rather than an end-to-end microphone test in the Codex UI.

    This setting also affects other local extensions using global fetch; compatibility with those extensions has not been verified. Removing the setting or changing it to false restores the default behavior.

  9. VitalOverdose commented on Oct 7, 2026

    @VitalOverdose
    Author

    Thanks kjun1 for contributing. ill have a look at the info you have provided.

    I have a workaround for the chat stalling issue now , tested on windows only. Full details here

    #50404 (comment)

  10. interconnectedMe commented on Oct 9, 2026

    @interconnectedMe

    Additional reproduction on 9 October 2026 on Ubuntu. This concerns Codex dictation in VS Code, separately from the Linux desktop app's missing keyboard shortcut.

    Environment:

    • Ubuntu 26.04.1 LTS, Linux x64
    • VS Code 1.141.0
    • Running Codex extension: openai.chatgpt 26.1007.21434-linux-x64, confirmed by the failing webview stack
    • Codex Audio: openai.codex-audio 26.1007.21434; the extension-host log confirms activation
    • ChatGPT desktop app: 26.928.40906

    Reproduction:

    1. Click the microphone in the VS Code Codex composer and speak a short sentence. The waveform responds.
    2. Press Stop (Send also consistently fails in previous attempts).
    3. The UI shows Dictation stopped, with Retry, and no text is inserted.

    The user reports consistent failure across new and existing Codex chats. Dictation in the standalone desktop app works in both new and existing chats on the same machine.

    The real extension-host log confirms microphone_ready, first_audio, recording_started, then stop_requested, followed by:

    2026-10-09 08:50:16.556 [error] Error fetching httpStatus=403 requestId=a47bcb210c63b884-LHR statusText=Forbidden url=/transcribe
    2026-10-09 08:50:16.588 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    
    2026-10-09 09:25:07.135 [error] Error fetching httpStatus=403 requestId=a47bfe2ab8cb53a0-LHR statusText=Forbidden url=/transcribe
    2026-10-09 09:25:07.190 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    
    2026-10-09 10:56:28.159 [error] Error fetching httpStatus=403 requestId=a47c83fb6aadde06-LHR statusText=Forbidden url=/transcribe
    2026-10-09 10:56:28.215 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    

    Timestamps above are copied as recorded by VS Code; the workstation/user timezone is Europe/London (BST, UTC+1). Their clock basis has not been independently verified.

    These are actual UI attempts, not synthetic requests. Capture starts successfully; the observed failure is the transcription HTTP request receiving a Cloudflare challenge. The trigger for that challenge remains unknown.

    No restart, authentication reset, extension reinstall, network changes, or source patches were performed during today's diagnosis. Multiple other sessions are running. The proposed http.electronFetch workaround in #50430 has not been tested here.

    Related reports: #49351, #50579, #50430. Please investigate the request IDs and provide a supported IDE recovery path or fix. No audio, transcripts, credentials, account IDs, or complete logs are attached.

  11. mbujard commented on Oct 9, 2026

    @mbujard

    Another Windows reproduction of the dictation failure, with related follow-up stalling report (#50426).

    I reported intermittent follow-up prompts stalling, remaining queued, or disappearing in #50426. Since updating/restarting the extension on Oct. 6, I have not reproduced that problem. I cannot confirm it is resolved. My VS Code setting chatgpt.followUpQueueMode is steer. My openai.chatgpt version: 26.51007.21434.

    Current dictation failure (October 9, 2026)

    • Environment: Windows, VS Code, openai.chatgpt
    • Loaded extension bundle identified in logs: 26.51007.21434-win32-x64
    • Reproduction: Start microphone dictation, say "testing 1 2 3," then press Stop.
    • Actual: "Dictation stopped" appears with a Retry option. No transcription is inserted.
    • Windows voice typing (Win + H): Works.
    • ChatGPT browser dictation: Works.

    Sanitized Codex.log evidence:

    09:49:51.468 stage=microphone_ready

    09:49:51.527 stage=first_audio

    09:49:51.528 stage=recording_started

    09:49:54.384 stage=stop_requested

    09:49:54.732 [error] httpStatus=403 requestId=a47e31d448f261fc-ORD statusText=Forbidden url=/transcribe

    09:49:54.825 [error] [Composer] dictation failed errorMessage=cloudflare_challenge

    An earlier request to /settings/user also returned HTTP 403 with cloudflare_challenge.

    The logs confirm successful microphone initialization and audio capture, followed by a failed transcription request.

    The follow-up stalling and dictation failures were distinct symptoms in my environment: the former is no longer reproducing. The latter remains reproducible. I cannot tell whether they share an underlying cause.

  12. interconnectedMe commented on Oct 9, 2026

    @interconnectedMe

    Confirmed successful end-to-end workaround on 9 October 2026. Thank you @kjun1 for the suggestion in #50430 (comment).

    On my Ubuntu 26.04.1 x64 workstation, VS Code 1.141.0, with Codex and Codex Audio 26.1007.21434:

    1. Adding "http.electronFetch": true to the non-default Planning profile's settings did not resolve dictation; the next actual UI attempt still returned /transcribe HTTP 403 cloudflare_challenge (request ID a47f820d2fc03c8b-LHR).
    2. We removed that entry from Planning and added it to the Default profile/application user settings, ~/.config/Code/User/settings.json.
    3. Saved the setting without restarting or reloading VS Code, signing out/in, reinstalling extensions, changing the network, or modifying extension code.
    4. Tested actual microphone dictation in the Codex composer: a spoken sentence was successfully transcribed and sent. The user confirmed success.

    This confirms a functional Codex UI result here, beyond the original standalone API diagnostic. It does not establish the underlying reason for the Cloudflare challenge or long-term reliability. The setting changes networking for other local extensions using global fetch too; we have not systematically tested their compatibility.

    The earlier desktop app shortcut regression is separate. My Community report for this VS Code transcription problem is https://community.openai.com/t/codex-in-vs-code-dictation-fails-with-http-403-cloudflare-challenge/1404658.

  13. bigevy commented on Oct 10, 2026

    @bigevy

    I also reproduce the dictation failure on Windows with ChatGPT Plus.
    Codex and Codex Audio: 26.1007.21434.

    Audio capture starts, but stopping produces “Dictation stopped”
    with Retry and no text. /transcribe returns HTTP 403 Forbidden
    with cloudflare_challenge.

    Request ID: a4857783da8e1354-SJC

    Persists after restarting VS Code, signing out and back in,
    checking updates, and testing a phone hotspot. No VPN.
    ChatGPT works in Chrome; Windows dictation works.

    Selecting Feedback in the slash menu does not open a form.
    I am reporting the dictation failure; I have not confirmed the
    chat-stalling symptom described in this issue.

  14. alexr-oai commented on Oct 14, 2026

    @alexr-oai
    Contributor

    The dictation portion of this issue should be resolved now; please see #49351 (comment) for more details.

  15. VitalOverdose commented on Oct 20, 2026

    @VitalOverdose
    Author

    thats good to hear alexr-oai i spent a week and half fighting with VS extension and was unable to use codex, i had to give up in the end and use claude! Right after i bought pro for the month. I spent a chunk on my tokens trying to fix your errors and posting fixes here for the community. Any chance of some kind of refund or extra tokens?

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

    bugconnectivityextensionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions