Repository navigation
Description
What version of Codex CLI is running?
0.159.0
What subscription do you have?
Pro
Which model were you using?
No response
What platform is your computer?
Darwin 25.3.0 x86_64 i386
What terminal emulator and version are you using (if applicable)?
No response
Codex doctor report
What issue are you seeing?
Setting copy_on_select = "never" stops copy-on-mouse-release after a left-drag selection, but right-clicking the transcript still copies the current selection to the clipboard. There is no config option to disable right-click copy, so I cannot prevent the mouse from writing to the clipboard.
What steps can reproduce the bug?
-
In ~/.codex/config.toml, set:
[tui]
copy_on_select = "never" -
Launch
codexand wait for a response to appear. -
Left-drag to select some transcript text, then release the mouse button.
-
Right-click anywhere inside the transcript while the selection is still active.
-
Observe: the selected text is copied to the clipboard, even though copy_on_select is set to "never".
What is the expected behavior?
Right-clicking the transcript should not copy the current selection to the clipboard. Copying should only happen when I explicitly invoke it — via /copy, the copy keybinding, or the terminal's own copy shortcut (⌘C) — and setting copy_on_select = "never" (or a new copy_on_right_click option) should disable all mouse-triggered copying.
Additional information
Disabling mouse reporting in the terminal (macOS Terminal: View → Allow Mouse Reporting) stops Codex from receiving any mouse events, which also prevents the right-click copy. However, this disables all mouse interaction in the TUI (scrolling, click-to-select, drag selection), not just the copy behavior, so it is not an acceptable substitute for a dedicated config option.
Activity
github-actions commentedon Sep 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Sep 30, 2026
Can you say more about why you want to disable this? Why not just avoid right-clicking if you don't want to copy?
bolen commentedon Sep 30, 2026
I use right-click a lot out of habit from previous versions, where it never copied anything. Now it silently overwrites my clipboard, which I only notice later when I paste the wrong thing. I already set copy_on_select = "never" to stop mouse copying — right-click copy should be covered by that too, or get its own opt-out. Not asking to change the default, just want a way to turn it off.
etraut-openai commentedon Oct 1, 2026
I'm wondering why you're right clicking. Does that map to some behavior that you want to retain?
You have the option to switch back to scrollback mode using
/tuiif you prefer.maqboolkhan commentedon Oct 1, 2026
I also agree with @bolen and it should be optional, and I have the same habit
jrfeathe commentedon Oct 2, 2026
I need to right click to change my terminal profile back and forth between Default and High DPI. Stuck on v156 until this is fixed. Right click mapping to commands should be optional. For me, I would prefer to turn it off.