codex - 💡(How to fix) Fix PLEASEEEE fix copy pasting from the CLI output

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

CLI

What feature would you like to see?

It's so annoying trying to copy paste from the CLI, which is something that everyone does quite frequently. It's especially annoying when the thing you're copying spans multiple lines, and you're copying linux commands.

Firstly, it copies line breaks when the text wraps, when it shouldn't. Secondly, it copies extra spaces at the beginning of every line. All of these need to be removed quite frequently, manually.

Yes, I know there is a /copy, but if you're copying linux commands or only a partial section of the text, you want to be able to just copy and paste straight away, not have to remove things.

Perhaps the best way to handle this would be to have a more advanced /copy feature that actually lets you interactively choose the paragraph or the terminal command that you're copying. It could intelligently parse the last response and break it down into sections that can be selected using arrow keys or quick-action numbers.

That's a fallback if there's no way to fix the actual TUI highlighting problems. Although I swear I've seen other CLIs solve this issue (maybe it was OpenCode that solves it?)

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix PLEASEEEE fix copy pasting from the CLI output