Windows App - Double pasting commands in terminal on `Ctrl+Shift+V`

Resolved 💬 7 comments Opened Mar 18, 2026 by dhruv-wappnet Closed Jun 23, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

26.311.21342

What subscription do you have?

ChatGPT Business

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Whenever I am pasting anything using Ctrl + Shift + V in the integrated terminal, its pasting the commands twice in same line.

I have enabled WSL inside Powershell terminal in Windows. and default codex runs its sandbox in wsl.

What steps can reproduce the bug?

  1. Open Codex
  2. Setup Config in settings :
  • Agent Env : WSL
  • Integrated Terminal Shell : PWSH
  1. Go back to the chat window
  2. Open integrated terminal from the top right
  3. Copy some command from the chat window and paste using Ctrl+Shift+V.
  4. You'll see the command has been double pasted.

What is the expected behavior?

The command must be pasted once. Not twice.

Bug :
<img width="1588" height="696" alt="Image" src="https://github.com/user-attachments/assets/d073e706-a184-4506-b187-3cf93a8ded9b" />

Expected :

<img width="1652" height="547" alt="Image" src="https://github.com/user-attachments/assets/10c3d3bd-c8b3-4313-83af-20878f0350a8" />

Additional information

_No response_

View original on GitHub ↗

7 Comments

github-actions[bot] contributor · 4 months ago

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

  • #13729

Powered by Codex Action

dhruv-wappnet · 4 months ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. * Windows: Ctrl+V multiline paste executes immediately in Codex CLI while Shift+Insert pastes normally #13729 _Powered by Codex Action_

No. The above issue is linked to instant execution as pasting the code. Nothing to do with double pasting.

nidhogg1024 · 3 months ago

I can reproduce this as well in the Codex desktop app on Windows.

Additional data point:

  • Platform: Microsoft Windows NT 10.0.26200.0 x64
  • Symptom: pressing Ctrl+Shift+V once in the integrated terminal pastes the clipboard contents twice
  • Scope: this happens in the integrated terminal, not in the chat composer
  • Comparison: I do not see the same behavior on the macOS version of the Codex app

This looks like a Windows-app-specific duplicate paste event rather than a generic terminal shortcut misunderstanding.

Temporary workarounds on my side are right-click paste or Shift+Insert.

irgordon · 2 months ago

For Windows:

Because Codex’s React editor is doing something like:

  • Listening to both onPaste and onInput
  • Reading clipboard text via navigator.clipboard.readText()
  • Updating controlled state twice due to async reconciliation
  • Possibly applying a Monaco/CodeMirror-like patch layer
  • Running inside an iframe or shadow root that duplicates events

In other words:

_Codex’s React editor can double‑apply paste events even when the browser engine is not at fault._

This is a framework-level duplication, not a browser bug.

For macOS:

This is happening on iOS and on macOS in the Microsoft Edge browser. Tracking there is an existing WebKit bug that fires multiple paste‑related events, causing text to be inserted twice—especially inside <input> fields or React‑based editors. The behavior is confirmed in developer reports and is reproducible across Safari, WKWebView, and Mac Catalyst apps.

labochax · 2 months ago

I'm having the same issue

irgordon · 1 month ago

This issue continues to persist. Not sure if the Dev team is address this workflow issue. @timon-oai @tibo-openai

xyx0527 · 1 month ago

I can reproduce the same issue on Windows 11 with the Codex Windows app.

26.601.21317 • Released 2026-6-3