Repository navigation
Closed
Labels
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Description
What version of Codex is running?
codex version 0.75
What subscription do you have?
API
Which model were you using?
NA
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64 (Windows 11 23H2) with WSL2 Ubuntu 24.04.3 LTS
What issue are you seeing?
After upgrading to codex v0.75 in WSL2 (accessed via Windows Terminal), the following regressions occur regarding text copy/paste functionality:
-
Mouse Selection Auto-Copy and Right-Click Paste Broken
- Windows Terminal's native behavior of "selecting text with the mouse (click and drag) automatically copies it to the system clipboard" no longer works within
codex. - Right-clicking within the
codexsession does nothing (paste function is lost). The only way to paste is usingCtrl+V.
- Windows Terminal's native behavior of "selecting text with the mouse (click and drag) automatically copies it to the system clipboard" no longer works within
-
New
Ctrl+YCopy Function Fails with Wrapped Lines- When copying a line that wraps due to terminal width using
Ctrl+Y, it does not correctly merge the wrapped segments. - Example: A line like
print("Hello world")displays as two lines due to width. Copying yields a broken line instead of the original single line.
- When copying a line that wraps due to terminal width using
-
Extra Spaces Inserted for Non-ASCII Characters
- Copying text containing Unicode characters (e.g., Chinese) incorrectly adds a space between each character when pasted elsewhere.
- Example: Copying
你好and pasting it results in你 好.
What steps can reproduce the bug?
Environment Setup:
- Windows Terminal with WSL2 (Ubuntu)
codexversion 0.75
Reproduction Steps:
-
Test Mouse Copy/Paste:
- Open Windows Terminal, start WSL2 (Ubuntu).
- Run
codexin WSL2. - Select any visible text with mouse (click and drag).
- Try to paste it via right-click in the terminal → Fails.
- Copy text from another Windows app, try to paste into
codexvia right-click → Fails (onlyCtrl+Vworks).
-
Test Wrapped Line Copy (
Ctrl+Y):- In
codex, execute a command that produces a long output line (e.g.,codex ask "Please randomly generate an English text for testing the copy function."). - When the output line wraps visually due to terminal width, press
Ctrl+Yto copy. - Paste into a text editor (like Notepad) → Line breaks are incorrectly preserved.
- Example: A line that should be
print("Hello world from codex")becomes to contain ' \n':
print("Hello world
from codex")
- In
-
Test Unicode Copy:
- Ask
codexto process Chinese text (e.g.,codex ask "Please randomly generate a Chinese word"). - Copy the Chinese output text (using
Ctrl+Ysince mouse copy is broken). - Paste into a text editor → Extra spaces appear between characters.
- Example:
你好,用户becomes你 好 , 用 户.
- Ask
What is the expected behavior?
- Mouse selection should automatically copy to clipboard, and right-clicking should paste clipboard content into
codexinput line (restore native terminal integration as in v0.74 and earlier). - The
Ctrl+Ycopy function should merge visually wrapped lines into their original, logical single line without inserted line breaks. - Unicode characters should be copied and pasted without extra spaces between characters.
Additional information
Additional information
- In v0.73, Windows Terminal's native mouse selection auto-copy and right-click paste functions worked correctly within
codex. However, even in that version, when selecting text that wrapped due to display width, the copied content would not be merged into a single line (the wrapped line break issue existed). - In v0.75, the mouse copy/paste functionality is completely broken, and the new
Ctrl+Ycopy function still suffers from the same wrapped line issue. - The Unicode spacing issue is new in v0.75 and was not present in previous versions.
- The problem appears to be specific to WSL2 environment via Windows Terminal.
Metadata
Metadata
Assignees
Labels
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Activity
etraut-openai commentedon Dec 19, 2025
Have you enabled the tui2 feature in your config.toml configuration? This feature is still under development, and it has many known problems still. Please avoid using it until it is complete.
sd68515 commentedon Dec 19, 2025
Thank you for your prompt. I forgot the setting that was opened before. Now everything is normal.