Skip to content

Voice dictation fails with 403 Forbidden in Codex VS Code extension #49351

Closed

Description

@Nical75

Summary

Voice dictation in the Codex VS Code extension no longer works. Starting dictation briefly shows “Dictation stopped” and no text is inserted.

The same ChatGPT account can use voice dictation normally in the ChatGPT macOS desktop app.

Environment

  • macOS, Apple Silicon
  • VS Code
  • Codex extension: openai.chatgpt version 26.917.62051
  • Codex Audio: version 26.917.62051
  • Authentication: Sign in with ChatGPT

Error

Codex logs show:

HTTP 403 Forbidden on /transcribe

followed by:

[Composer] dictation failed

Request ID:

a42b18f25937a105-CDG

The logs also showed HTTP 403 responses for /subscriptions and /accounts/optimized/check.

Troubleshooting already performed

  • Logged out and back into Codex
  • Fully restarted VS Code
  • Reloaded the VS Code window
  • Confirmed Codex and Codex Audio are up to date
  • Ran codex logout
  • Reset the local Codex authentication cache (~/.codex/auth.json)
  • Signed back in with ChatGPT
  • No VPN is being used
  • Internet connection otherwise works normally

The issue persists after all of these steps.

Voice dictation works normally in the ChatGPT macOS desktop application with the same account, suggesting the problem is specific to the Codex VS Code extension / transcription endpoint authentication.

Expected behavior

Starting voice dictation in the Codex composer should transcribe speech and insert the resulting text.

Actual behavior

Dictation stops and /transcribe returns HTTP 403 Forbidden.

Possibly related to #21985, #13132, #12833 and #47667.

Pinned by alexr-oai

Activity

  1. added
    bug
    extension
    auth
    on Sep 29, 2026
  2. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. NewOzzie commented on Sep 30, 2026

    @NewOzzie

    Same for me

  4. AK25789 commented on Sep 30, 2026

    @AK25789

    Absolutely the same issue across several PCs: Ubuntu 24.04, Windows 10 and Windows 11. Tried the same steps, nothing helps. At the same time, dictation at Claude Code extension on all the same PCs works normally.

  5. dimagenarious commented on Sep 30, 2026

    @dimagenarious

    Also suffering from this for a while on VS Code on Arch

  6. gotlisch commented on Oct 3, 2026

    @gotlisch

    Same for me.

  7. interconnectedMe commented on Oct 3, 2026

    @interconnectedMe

    Additional reproduction on Ubuntu, with the explicit Cloudflare error from the real Codex VS Code UI (2026-10-03).

    Environment:

    • Ubuntu 26.04.1 LTS, x64
    • VS Code 1.140.0 (commit 07f806f999227108933c2e30515b26eecc1fda74)
    • Running Codex extension: openai.chatgpt-26.930.31730-linux-x64, identified from the failing webview's stack trace
    • Codex Audio: 26.930.31730; extension-host log confirms activation via onCommand:_codex.microphone.available
    • Default input: Blue Yeti USB microphone; PipeWire reports it unmuted at 100% volume

    The composer shows Dictation stopped with a Retry button. Two attempts produced the following logs (timestamps as recorded by VS Code):

    2026-10-03 14:29:54.766 [error] Error fetching httpStatus=403 requestId=a44c4c64ebde94ae-LHR statusText=Forbidden url=/transcribe
    2026-10-03 14:29:54.792 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    2026-10-03 14:29:58.765 [error] Error fetching httpStatus=403 requestId=a44c4c7df828ae03-LHR statusText=Forbidden url=/transcribe
    2026-10-03 14:29:58.787 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    

    This establishes a transcription HTTP failure in the actual extension, rather than only a synthetic curl request. It points toward the transcription request being challenged by Cloudflare; microphone permissions or audio-device configuration alone would not explain these responses. Local capture quality has not been independently verified.

    Related Cloudflare transcription report: #21985. That ticket later includes an account/organisation-state recovery, but we have not established that cause for this reproduction. No alternate-network test was performed. We have not tested a logout/login, reinstall, or account/organisation repair as part of this investigation, so none is being claimed as a failed or successful fix.

    Could the Codex extension/transcription backend owner investigate these request IDs and whether this client version's transcription requests are being challenged?

  8. interconnectedMe commented on Oct 5, 2026

    @interconnectedMe

    Follow-up reproduction on 5 October 2026: dictation is still broken in the newer VS Code Codex extension 26.930.51102 on the same Ubuntu installation described in my earlier comment.

    The failing webview's stack trace explicitly references openai.chatgpt-26.930.51102-linux-x64, confirming that this newer extension was actually running, rather than merely installed. Codex Audio 26.930.51102 is also present on disk; its loaded version was not independently verified for this attempt.

    The composer again shows “Dictation stopped” with Retry. The VS Code extension log records:

    2026-10-05 03:23:01.474 [error] Error fetching httpStatus=403 requestId=a458f6419e7c2aca-LHR statusText=Forbidden url=/transcribe
    2026-10-05 03:23:01.529 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    

    Timestamps are reproduced as recorded by VS Code. This confirms that the /transcribe HTTP 403 / cloudflare_challenge failure previously reported with 26.930.31730 persists with the running 26.930.51102 extension.

    Please investigate request ID a458f6419e7c2aca-LHR. This update concerns dictation in the VS Code extension, not the separate Linux desktop-app keyboard shortcut issue. No additional troubleshooting or root-cause confirmation is claimed.

    Image
  9. jeffery-prod commented on Oct 5, 2026

    @jeffery-prod

    Just tried this, issue still present on Windows 11, Ubuntu and Arch that I've checked. I've been using Claude's transcript tool and then copying over the prompt to Codex in the meantime. Are there any other extensions anybody would recommend for voice transcripting?

  10. interconnectedMe commented on Oct 5, 2026

    @interconnectedMe

    Just tried this, issue still present on Windows 11, Ubuntu and Arch that I've checked. I've been using Claude's transcript tool and then copying over the prompt to Codex in the meantime. Are there any other extensions anybody would recommend for voice transcripting?

    I've been using chatgpt linux desktop app...but back a few versions - dictation still works in that one :

    Powered by Codex & OWL
    Version 26.928.40906
    Released 1 Oct 2026

    iirc there are 3, maybe 4 versions after that for the desktop app, and none of them up until anything released this morning, resolve the dictation problem. So I've pinned this version, disabled updates for chatgpt desktop. Although I might be confusing this with the codex vscode ide extension - I have the same, no, similar issue - dictation not working. So I've been juggling versions.

    Now I'm back to typing like some medieval foot-peasant, because having chatgpt desktop open at the same time as codex in vscode....idk, session permission conflicts, problems with git being read-only....and the accumulated problems with 'model is at capacity' etc over the last few days, means I've cut my losses with dictation for now.

  11. r-spring commented on Oct 6, 2026

    @r-spring

    Additional reproduction on 6 October 2026: Codex IDE dictation fails with HTTP 403 / cloudflare_challenge while ChatGPT desktop dictation works on the same machine and account.

    Environment:

    • Debian 13, Linux x64
    • VSCodium 1.135.06055
    • Running Codex extension: openai.chatgpt 26.5930.61225 (publisher pre-release)
    • Registered Codex Audio: openai.codex-audio 26.930.61225
    • ChatGPT desktop: 26.930.61225
    • Authentication: Sign in with ChatGPT

    The extension host activated Codex Audio through onCommand:_codex.microphone.available immediately after the main editor window reloaded. The failing webview stack explicitly references Codex 26.5930.61225. A separate local test of the installed audio helper and worker successfully captured 16 kHz PCM and stopped cleanly. The user confirmed desktop dictation works.

    Actual IDE logs (America/Vancouver, UTC-07:00):

    2026-10-06 14:27:53.809 [error] Error fetching httpStatus=403 requestId=a467c0b13ead8e05-YVR statusText=Forbidden url=/transcribe
    2026-10-06 14:27:53.842 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    2026-10-06 14:28:13.695 [error] Error fetching httpStatus=403 requestId=a467c12d7aaf5fbe-YVR statusText=Forbidden url=/transcribe
    2026-10-06 14:28:13.712 [error] [Composer] dictation failed errorMessage=cloudflare_challenge errorName=Error
    

    The original missing microphone support was addressed by installing the publisher update and its audio companion. These errors occurred after that update was loaded. Local microphone routing is working. Authentication lookup succeeds. No custom proxy was found in the extension host environment or relevant explicit editor settings. An alternate network has not been tested.

    Independent synthetic requests are not treated as UI acceptance tests. Their varying results did not establish a User-Agent, multipart-format or account-state cause. No source modification or authentication reset was applied.

    Please investigate the request IDs above and the IDE transcription request path. This appears to match issue #49351. A confirmed workaround or an extension/service fix would be helpful.

    This draft contains no credentials, account identifiers, audio, transcripts or complete logs.

  12. huikku commented on Oct 7, 2026

    @huikku

    Same on Linux, and it still fails after updating to the latest extension.

    • Ubuntu 24.04.5, kernel 6.8, x64
    • VS Code 1.140.0
    • openai.chatgpt 26.1002.51308 and openai.codex-audio 26.1002.51308 (it also failed on 26.930.51102 before the update)
    • Signed in with a ChatGPT account

    The microphone records and typed chat works. Every dictation ends with Error fetching httpStatus=403 ... url=/transcribe followed by [Composer] dictation failed errorMessage=cloudflare_challenge. Request IDs from after the update: a46a86593c8c8fb8-BOS and a46a859ff8d7fc44-BOS (2026-10-07, 01:31 to 01:32 EDT). Earlier ones: a46a72d8291451cb-BOS, a462241e0e884cc3-BOS.

    It doesn't depend on the network: no VPN or proxy, and the result is the same over IPv4 and IPv6. From the same machine, an unauthenticated POST to chatgpt.com/backend-api/transcribe also gets cf-mitigated: challenge, while the same request to /backend-api/codex/responses gets a plain 401. So the challenge seems to be specific to /transcribe.

    Dictation in other apps works on this machine. Next I'm trying the http.electronFetch workaround from #50430.

  13. ClemLanoe commented on Oct 8, 2026

    @ClemLanoe

    Same issue on VS Code Remote WSL with Codex extension 26.1002.51308. Browser dictation works, but Codex dictation repeatedly gets 403 cloudflare_challenge on /transcribe. Example request ID: a47122a34d59658a-LHR.

  14. rafaim-bsp commented on Oct 8, 2026

    @rafaim-bsp

    Same issue

  15. ClemLanoe commented on Oct 8, 2026

    @ClemLanoe

    I've resorted to using Windows dictation (press Windows+H), okay workaround for now. It's been issue after issue with Codex in VS Code. Whereas never had an issue with Claude in VS Code.

  16. 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.

  17. NMolina2025 commented on Oct 9, 2026

    @NMolina2025

    Confirmed workaround on Windows: enabling "http.electronFetch": true in VS Code user settings and reloading the window fixed native Codex dictation for me.

    Credit to @kjun1, who shared this workaround in #50430—thank you!

    Environment:

    • VS Code on Windows x64
    • Codex and Codex Audio: 26.930.61225

    Before the change, the microphone recorded but inserted no text. Logs showed HTTP 403 on /transcribe with cloudflare_challenge. Reloading, fully restarting VS Code, and signing out/in did not resolve it. ChatGPT web dictation, Claude dictation, and Win+H worked.

    After enabling the setting and reloading, I successfully dictated a prompt through Codex’s microphone. This confirms an actual microphone-to-text test on my Windows installation.

    ~written w/ Codex

  18. 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.

  19. interconnectedMe commented on Oct 9, 2026

    @interconnectedMe

    Follow-up: working keyboard workaround for Codex dictation on my Ubuntu/Wayland setup (9 October 2026).

    After "http.electronFetch": true in Default user settings restored transcription, we added a separate keyboard workaround because this installed Codex extension exposes no bindable start-dictation command.

    • A small shell script uses the already-installed/running ydotool to send five Tabs, then Enter, matching the manually verified navigation from the focused Codex composer to its microphone button.
    • A VS Code user task launches the script without intentionally revealing/focusing its terminal. A Ctrl+Shift+D binding in my Planning profile invokes that task in Codex sidebar/conversation/chat-session contexts.
    • Ctrl+Enter, already configured for Send, was verified to stop recording and send the transcript.
    • Repeated presses initially moved focus; we added a four-second debounce, a single-task-instance limit, and removed the conflicting Ctrl+Shift+D Show Run and Debug binding in Planning. The shorter debounce improved behavior; the final four-second value has just been configured and is not separately stress-tested.

    Actual microphone dictation and the shortcut sequence worked in repeated user tests. This is a local focus-dependent workaround, not a native Codex shortcut: the composer must be focused, and a changed tab order may require updating the five-Tab sequence. It relies on ydotoold already being available; no Codex source patch or restart was used. It affects the selected profile's Ctrl+Shift+D Debug shortcut.

    Community report: https://community.openai.com/t/codex-in-vs-code-dictation-fails-with-http-403-cloudflare-challenge/1404658

  20. RickKukiela commented on Oct 12, 2026

    @RickKukiela

    Confirmed workaround on Windows: enabling "http.electronFetch": true in VS Code user settings and reloading the window fixed native Codex dictation for me.

    Credit to @kjun1, who shared this workaround in #50430—thank you!

    Environment:

    • VS Code on Windows x64
    • Codex and Codex Audio: 26.930.61225

    Before the change, the microphone recorded but inserted no text. Logs showed HTTP 403 on /transcribe with cloudflare_challenge. Reloading, fully restarting VS Code, and signing out/in did not resolve it. ChatGPT web dictation, Claude dictation, and Win+H worked.

    After enabling the setting and reloading, I successfully dictated a prompt through Codex’s microphone. This confirms an actual microphone-to-text test on my Windows installation.

    ~written w/ Codex

    Unfortunately this fix did not work for me. I'm using "remote" IDE for WSL2 (Ubuntu) projects so it appears this fix may only work for the normal windows version....

  21. alexr-oai commented on Oct 14, 2026

    @alexr-oai
    Contributor

    Hi everyone, we've just deployed a server-side fix for the 403 cloudflare_challenge errors affecting dictation in the Codex VS Code extension. No extension update is required. Thanks for the reports and diagnostic info, and sorry for the disruption.

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

    authbugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions