Skip to content

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

Closed

Description

@sd68515

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.
  2. 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.
  3. 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).
  2. 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")
  3. 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.

Activity

  1. added
    bug
    on Dec 19, 2025
  2. added
    CLI
    windows-os
    TUI
    on Dec 19, 2025
  3. etraut-openai commented on Dec 19, 2025

    @etraut-openai
    Contributor

    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.

  4. sd68515 commented on Dec 19, 2025

    @sd68515
    Author

    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.

    Thank you for your prompt. I forgot the setting that was opened before. Now everything is normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLITUIbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions