v0.75 breaks terminal mouse copy/paste and introduces issues with wrapped/Unicode text copying

Resolved 💬 2 comments Opened Dec 19, 2025 by sd68515 Closed Dec 19, 2025

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:

  1. 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 codex session does nothing (paste function is lost). The only way to paste is using Ctrl+V.
  1. New Ctrl+Y Copy 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.
  1. 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)
  • codex version 0.75

Reproduction Steps:

  1. Test Mouse Copy/Paste:
  • Open Windows Terminal, start WSL2 (Ubuntu).
  • Run codex in 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 codex via right-click → Fails (only Ctrl+V works).
  1. 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+Y to 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")

  1. Test Unicode Copy:
  • Ask codex to process Chinese text (e.g., codex ask "Please randomly generate a Chinese word").
  • Copy the Chinese output text (using Ctrl+Y since mouse copy is broken).
  • Paste into a text editor → Extra spaces appear between characters.
  • Example: 你好,用户 becomes 你 好 , 用 户.

What is the expected behavior?

  1. Mouse selection should automatically copy to clipboard, and right-clicking should paste clipboard content into codex input line (restore native terminal integration as in v0.74 and earlier).
  2. The Ctrl+Y copy function should merge visually wrapped lines into their original, logical single line without inserted line breaks.
  3. 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+Y copy 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.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗