codex icon indicating copy to clipboard operation
codex copied to clipboard

copy&paste disabled tui?

Open Nonabz opened this issue 1 year ago • 8 comments

What version of Codex is running?

0.3

Which model were you using?

codex-mimi-latest

What platform is your computer?

linux ubuntu KDE-Neon

What steps can reproduce the bug?

in older versions I write my prompts in a editor and copy & paste it into codex message box. also I can copy text from codex, like patches or questions and paste it in my editor or documentantion. all of them is disable. no mouse working in terminal, no keyboard shortcuts STRG-v nothing.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Nonabz avatar Jul 09 '25 05:07 Nonabz

Just figured it out, run the follow to toggle between allowing mouse capture (copy/paste) or not.

/toggle-mouse-mode

To keep it persistent, you can add to ~/.codex/config.toml the following:

[tui]
disable_mouse_capture = true

uzyn avatar Jul 09 '25 11:07 uzyn

I experienced artifacts with Codex v0.3.0 in a Ruby Docker container because, although it runs in app/, it actually uses the container user’s home directory. Mount that home ~/.codex folder from the host and set proper read/write permissions before starting the container. Once done, all artifacts disappeared and Codex has run smoothly.

otrub avatar Jul 09 '25 14:07 otrub

I think copy-paste also has a problem, where all terminal ascii decoration (border around window) are copied too:

│Add Procfile.dev and bin/dev for easy dev startup                                                                                                      ││
│                                                                                                                                                       ││
│- Whitelist Procfile.dev in .gitignore                                                                                                                 ││
│- Procfile.dev defines web (Rails) and sidekiq processes                                                                                               ││
│- bin/dev installer script ensures foreman, sets PORT & debug ENV, then runs Procfile.dev                                                              █│
│- Document ./bin/dev usage in README.md  

Is there any workaround or can it be fixed?

kelso avatar Jul 09 '25 14:07 kelso

I fully agree with the previous speaker: the window decoration clashes with Codex’s command-line nature. For users who rely on a pure CLI workflow, this overlay is more hindrance than help and would be far better offered as an optional, disabled-by-default feature.

otrub avatar Jul 09 '25 14:07 otrub

Just found out, the workaround for the multi-line copy-paste without ascii "window" decorations - I installed older version (the latest that still has the "old" look) and prompt outputs are rendered without ascii borders:

npm install -g @openai/[email protected]

# and then run
codex

kelso avatar Jul 09 '25 15:07 kelso

Yeah guys, this new approach to having codex run in a window-managed console environment is, sorry to say, garbage.

Please embrace Claude Code's style - pure CLI goodness.

paulbettner avatar Jul 10 '25 05:07 paulbettner

See https://github.com/openai/codex/issues/1247

bolinfest avatar Jul 10 '25 19:07 bolinfest

I found another workaround for copying large text - just run another prompt like:

"Write your last output to the textfile ./output.txt"

And grab text from the textfile :-)

kelso avatar Jul 31 '25 14:07 kelso