[BUG] WSL2 text paste regression: Ctrl+V / right-click / Shift+Insert all fail in TUI input, worked in earlier version
Description
All text paste methods fail in the Claude Code TUI input field on WSL2. This is a regression — the user reports it worked correctly in an earlier version of Claude Code. Other CLIs in the exact same WSL2 environment (Codex CLI, AGY CLI) paste normally.
Steps to Reproduce
- Open a WSL2 session (Ubuntu 24.04) in the default Windows console (not Windows Terminal)
- Launch
claude(Claude Code CLI) - Copy any text to clipboard (Windows clipboard)
- At the input prompt, attempt to paste using any of:
Ctrl+V- Right-click
Shift+Insert
Expected Behaviour
Text from the clipboard should be inserted into the Claude Code input field, as it does in other CLIs using the same terminal.
Actual Behaviour
All three paste methods are silently swallowed — nothing is inserted. No error message.
Key Observations
- Not a terminal issue: Codex CLI and AGY CLI paste correctly in the same WSL2 terminal session
- Regression: User confirms paste worked in an older Claude Code version
- All methods fail: Ctrl+V, right-click (QuickEdit mode is on), and Shift+Insert all produce no input
- Root cause hypothesis: Claude Code's custom TUI input box intercepts/consumes keyboard and mouse events before they can insert clipboard content; other CLIs use standard readline which does not intercept these events
Environment
- OS: Windows + WSL2 (Ubuntu-24.04), kernel
6.6.87.2-microsoft-standard-WSL2 - Claude Code version:
2.1.165(also reproduced on2.1.163) - Installation: Native binary at
~/.local/share/claude/versions/2.1.165 - Terminal: Default Windows console (legacy conhost),
WT_SESSIONis empty,TERM_PROGRAMis empty - TERM:
xterm-256color - Shell: bash
- Node.js: v24.14.1
- Display: WSLg active (
DISPLAY=:0,WAYLAND_DISPLAY=wayland-0)
Comparison with Working CLIs
| CLI | Paste method | Result |
|-----|-------------|--------|
| Claude Code 2.1.165 | Ctrl+V | ❌ no input |
| Claude Code 2.1.165 | Right-click | ❌ no input |
| Claude Code 2.1.165 | Shift+Insert | ❌ no input |
| Codex CLI | Ctrl+V | ✅ works |
| AGY CLI | Ctrl+V | ✅ works |
Workaround
None available. powershell.exe Get-Clipboard > /tmp/paste.txt can retrieve clipboard content but requires leaving the input field.
Additional Notes
Because this is a confirmed regression, bisecting to the exact version that introduced the break would help narrow down the commit. The user is willing to test specific versions if needed.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗