Skip to content

Can't paste text in windows WSL2 #48066

Closed

Description

@jamosdev

What version of Codex CLI is running?

0.157.0

What subscription do you have?

Pro

Which model were you using?

gpt-6-sol

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What terminal emulator and version are you using (if applicable)?

windows terminal WSL

Codex doctor report

What issue are you seeing?

Can't paste text after updating to 0.157

ctrl-v doesnt work (prints a red message cant paste image??)
ctrl-shift-v doesnt work
ctrl-alt-v doesnt work
right click doesnt work (whereas it does in vim with visual mode disabled in the exact same terminal windows 11 wsl2 ubuntu2404 flavor)
shift-insert doesn't work

ctrl-g to bring up vscode, paste into vscode, save then close doesn't work (it just ignores the vscode buffer)

It is literally impossible for me to enter my saved prompt into codex cli unless I use autohotkey to type each letter or kill codex after each turn then launch it from command line with the needed text as an argument

What steps can reproduce the bug?

upgrade to 0.157 and use it in wsl2 and try and paste text

What is the expected behavior?

text pastes when I paste it

Additional information

only way to fix it is:
npm uninstall -g @openai/codex
npm install -g @openai/[email protected]
and then ignore all upgrade prompts

Activity

  1. added
    bug
    on Sep 25, 2026
  2. added
    CLI
    windows-os
    TUI
    on Sep 25, 2026
  3. bc-openai commented on Oct 2, 2026

    @bc-openai
    Contributor

    Thanks for the report! Right-click paste should be fixed in 0.158.0. We'll take a look at what we can do for the others.

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