[BUG] Cannot paste authentication code in WSL Ubuntu - keyboard input intercepted
Resolved 💬 4 comments Opened Apr 14, 2026 by isiparedes Closed Apr 16, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bug Description
When trying to login with Claude Code on WSL Ubuntu (Windows),
the authentication code received from the browser cannot be
pasted into the "Paste code here if prompted >" field.
Environment
- OS: Windows with WSL Ubuntu
- Terminal: Windows Terminal / PowerShell with WSL
- Claude Code version: latest
Steps to Reproduce
- Run /login
- Select option 2 (Anthropic Console account)
- Copy URL, open in browser
- Browser returns a long authentication code
- Try to paste the code in the terminal field
Problem
- Ctrl+V does not work
- Ctrl+Shift+V does not work
- Shift+Insert does not work
- Right click does not work
- Cannot type manually because keys like "n", "c", "Esc"
are intercepted as menu commands instead of text input
Expected Behavior
The input field should accept pasted text normally
What Should Happen?
Actual Behavior
Terminal intercepts keystrokes as menu commands,
making it impossible to complete authentication
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce
- Run /login
- Select option 2 (Anthropic Console account)
- Copy URL, open in browser
- Browser returns a long authentication code
- Try to paste the code in the terminal field
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude Code v2.1.107
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗