Difficult time with Copy and Paste within Codex via CLI

Open 💬 8 comments Opened Nov 13, 2025 by cadleta
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.57.0

What subscription do you have?

Plus

Which model were you using?

gpt-5-codex-medium

What platform is your computer?

Windows

What issue are you seeing?

Difficult time copying and pasting, submits prompt early and doesn't provide pasted content.

What steps can reproduce the bug?

Uploaded thread: 019a7e1d-5c98-7522-a55b-3c6697326a86

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

8 Comments

github-actions[bot] contributor · 8 months ago

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

  • #5194
  • #5716
  • #5922
  • #6385

Powered by Codex Action

etraut-openai contributor · 8 months ago

Thanks for the bug report.

Could you provide a more detailed set of repro steps? Also, what keyboard layout are you using? We have had other reports of issues with certain non-English keyboard layouts.

If one of the above issues "potential duplicates" already capture the problem you're experiencing, please upvote that issue and close this one. It will help us prioritize.

waldoalvarez00 · 8 months ago
Thanks for the bug report. Could you provide a more detailed set of repro steps? Also, what keyboard layout are you using? We have had other reports of issues with certain non-English keyboard layouts. If one of the above issues "potential duplicates" already capture the problem you're experiencing, please upvote that issue and close this one. It will help us prioritize.

I consistently have issues with multiline pastes in Windows 11 terminal. Single line working fine. WSL working fine too. Seems have to do with difference of windows/linux line ending (CR/LF). But is a theory on my side. Standard English keyboard btw.

waldoalvarez00 · 8 months ago

If I paste multiline content, and later press space the pasted text appears. Is a workaround for the bug.

doggy8088 · 7 months ago

@waldoalvarez00 I just tested for v0.76.0. The issue seems gone. Can you test again?

doggy8088 · 7 months ago

@etraut-openai I still facing this issue. I'm using Windows Terminal. I hit right click using my mouse to paste. The issue still there.

doggy8088 · 7 months ago

@etraut-openai If I paste large amount of "text/html" data in the terminal. The Codex CLI will get hang for a while. more than 10 seconds. It just looks like get hang. But no, it's just slow to response.

<img width="486" height="150" alt="Image" src="https://github.com/user-attachments/assets/1c4e6c28-3921-40f2-8633-e1f6bdbbc617" />

If I paste the following "Chinese" text, it will break down a lot of steps in the queue. I think that's a bug.

窗邊書桌微縮場景

展示一個在窗邊書桌上的場景。

核心內容:
《哈利波特》的經典鏡頭微縮場景展示,採用 Octane Render 和 Cinema 4D 風格,充分體現微縮攝影的藝術表達。

環境背景:
背景是真實的書桌,有一些製作工具、散亂的書本,營造剛加工完這個場景的凌亂感。書桌上還有編製的圖紙與原型手稿。

窗外互動:
窗外,真實的 龍貓 正好奇地向內觀看桌上的作品。

畫面規格:
3:4 直式構圖&tool=image

<img width="1536" height="655" alt="Image" src="https://github.com/user-attachments/assets/2c9ef0a7-62a7-4042-85de-6a90aecd6986" />

fcoury contributor · 5 months ago

@cadleta @doggy8088 I suspect this may have been fixed with the merge of https://github.com/openai/codex/pull/9348. This fix was included with v0.100.0.

Can you please check if you can still replicate the issue on the latest Codex version (v0.104.0 as of the writing of this)?