Windows global dictation transcribes but fails to insert into VS Code editor and extension chat (Telegram works)
What version of the Codex App are you using (From “About Codex” dialog)?
26.924.2738.0 (Microsoft Store WindowsApps package)
What subscription do you have?
ChatGPT Pro Lite
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Global hold-to-dictate records and transcribes speech successfully, and the transcript remains available in Codex, but automatic insertion into VS Code frequently fails silently. This happens in both a normal VS Code file editor and an extension chat input. The caret remains in the intended field. Insertion has occasionally succeeded, but is unreliable.
The same global dictation shortcut inserts text into Telegram Desktop. Manually copying the transcript from Codex and pasting it into VS Code works. Immediately after a failed automatic insertion, Ctrl+V in VS Code pastes the previous clipboard contents. There is no visible insertion error. Speech recognition itself is working.
What steps can reproduce the bug?
- On Windows, configure Codex global hold-to-dictate to Ctrl+Win.
- Place the caret in a regular file editor in VS Code 1.139.0. Hold Ctrl+Win, dictate a short phrase, and release the keys.
- Observe that Codex transcribes the phrase but frequently does not insert it into the editor. Focus remains in VS Code.
- Repeat in an extension chat input inside VS Code; the same failure occurs.
- Repeat in Telegram Desktop; insertion works. Manual copy/paste from Codex into VS Code also works.
The failure is intermittent, so a single successful attempt does not rule it out.
What is the expected behavior?
Recognized text should be inserted reliably into the editable field focused when dictation begins, including standard Windows application editors and VS Code extension webviews. If insertion is unsupported or fails, Codex should preserve the transcript and show a clear error instead of silently appearing to succeed. Please document any intentional limitations for external applications.
Additional information
The Ctrl+Win shortcut uses only modifier keys; a hotkey conflict is possible but has not been verified. The Windows user-profile directory contains Cyrillic characters; this is also only a hypothesis, especially because Telegram insertion succeeds. A different dictation tool (Wispr Flow) previously inserted into VS Code on this computer.
Related: #37593 reports a broader Windows external insertion failure. This report adds a VS Code editor and extension-chat reproduction on a newer app build, plus a working Telegram comparison. No raw logs, transcript content, or exact user-profile path are included.
Root cause (likely the same here: note the Cyrillic profile path, i.e. a Russian/Ukrainian keyboard layout)
Codex 26.928.3736.0 pastes the transcript on Windows with:
powershell.exe -STA -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('^v')"
SendKeys maps v with VkKeyScan in the spawned PowerShell's keyboard layout, which is the currently active one. In a layout without a Latin v (Russian, Ukrainian, Hebrew, Greek…) VkKeyScan('v') returns -1, and SendKeys falls back to WM_CHAR → SendInput with KEYEVENTF_UNICODE. So the target app receives Ctrl down → VK_PACKET (vk 0xE7, scan 0, char v) → Ctrl up instead of Ctrl+V (vk 0x56).
A low-level keyboard hook shows exactly this sequence in every app:
Ctrl down
vkE7 sc000 down/up (Ctrl logically down)
Ctrl up
How apps react:
- Telegram Desktop (Qt) builds the shortcut from the character plus modifiers, sees Ctrl+V and pastes. That's why Telegram works.
- Notepad gets
WM_CHAR 'v'and inserts a literalv. - Chrome drops the character while Ctrl is down, so nothing happens. VS Code is Chromium-based, so presumably the same.
Checked on the same machine: VkKeyScanEx('v', 04090409) = 0x56, VkKeyScanEx('v', 04190419) = 0xFFFF. In the logged failing runs the Russian layout was active. With the English layout active, the paste should go through as a real Ctrl+V.
Suggested fix: don't rely on SendKeys' character mapping. Send VK_CONTROL + VK_V (0x56) via SendInput, since virtual-key codes don't depend on the layout.
Workaround: switch to the English layout before dictating, or let a helper (e.g. AutoHotkey) catch the clipboard change and send its own Ctrl+V.
Windows 11, Codex 26.928.3736.0 (Microsoft Store), layouts ru-RU + en-US. Related: #37593 describes the SendKeys paste path.
Confirmed the layout-dependent paste failure on Microsoft Store build 26.1111.2228.0, Windows 11 x64 build 26340, in the same VS Code editor and with the same hold-to-dictate shortcut (Ctrl+Win+Z).
- US English layout: Russian speech was transcribed and inserted into the editor.
- Russian layout: recognition completed and saved the transcript, VS Code stayed foreground, and the editor remained empty.
I reproduced the difference independently using the exact WinForms shortcut string (^v). The key parser produces a V key-down/key-up pair (VK_V = 0x56) on US English and a character event (U+0076) on Russian. Windows maps the physical V key to 0x56 on both layouts, which supports the fix suggested above. I also filed #61584 for the separate shortcut capture problem.
I can reproduce what looks like the same global dictation insertion bug on Windows 11, with additional affected targets.
- Works: Telegram Desktop. The recognized text is inserted correctly.
- Fails: Google Chrome's address/search bar (omnibox).
- Fails: Text input in the OpenClaw web UI.
- Fails: Text input in the Hermes app.
In the failing cases, dictation runs and the transcript is successfully generated and visible in the app's dictation history, but nothing is inserted into the focused input field. There is no visible insertion error.
I have not yet independently tested whether switching the active keyboard layout to US English avoids these failures, so I cannot confirm that workaround on my machine yet. The behavior seems consistent with the layout-dependent synthetic Ctrl+V issue described above.
Thanks for investigating. These additional cases may help confirm that the issue extends beyond VS Code to Chrome's omnibox and other app/web inputs.