Copy Paste is broken on ubuntu

Resolved 💬 13 comments Opened Oct 10, 2025 by noeldvictor Closed Jan 13, 2026
💡 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.46.0

Which model were you using?

codex

What platform is your computer?

ubuntu 22

What steps can reproduce the bug?

trying to copy and paste text into codex running on terminal

What is the expected behavior?

Copy Paste is broken on ubuntu

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

13 Comments

github-actions[bot] contributor · 9 months ago

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

  • #4818

Powered by Codex Action

PaulFidika · 9 months ago

Same; paste no longer works (I'm on Ubuntu). The bug was introduced in 0.45; I reverted to v0.44 which does not have this issue.

dellis23 · 9 months ago

Same here. I'm on 0.46. Can't paste anything. Paste works fine in the default text editor. I think it's open source so you could see how they handle it for examples.

Ekaitzsegurola · 9 months ago

Same problem here. Reversed to 0.44 and worked.

kkerhh · 9 months ago

Same here. I'm on 0.46. Can't paste anything. Paste works fine in the default text editor. I think it's open source so you could see how they handle it for examples.

kkerhh · 9 months ago

Same; paste no longer works (I'm on Ubuntu). The bug was introduced in 0.45; I reverted to v0.44 which does not have this issue.

kkerhh · 9 months ago

please fix quickily!!!!!!

potato-system · 9 months ago

It seems that the shortcut for pasting text has changed from Ctrl+V to Ctrl+Shift+V.

ppsz3 · 9 months ago

Me too. Version 0.44.x didn't have this issue on Ubuntu. Versions 0.47 and 0.46 don't allow to paste on Ubuntu

dlukt · 8 months ago

0.50 still present on arch

CarloWood · 8 months ago
0.50 still present on arch

I'm on Arch. Can you elaborate on how exactly you are trying to copy something, and from where, and how exactly you are trying to paste, and to where?

Copied by selecting, and pasted here with middle click:

Model: gpt-5-codex (reasoning medium, summaries auto)

Going back the same way works too.

On host (outside CLI) piping something into xclip and then pasting in the CLI with middle click: works.

Inside my codex container (this isn't even related to the codex CLI anymore):

daniel-codex:~/workspace/ai-math-testsuite>cat README.md | xclip
Error: Can't open display: :0.0

as expected (my container runs in a network namespace that doesn't have X11).

dlukt · 8 months ago

Maybe they fixed it, because I did mention it to Tobi on X. On 0.57 now.
I can right click Paste on gnome-terminal. I can middle mouse. I can shift+ins

etraut-openai contributor · 6 months ago

Closing old bug. If you're still seeing similar behavior, please open a new bug report with details.