/login OAuth flow: unable to paste code in WSL2 terminal

Resolved 💬 3 comments Opened Apr 14, 2026 by erisom Closed Apr 15, 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 running claude /login in WSL2, the terminal enters an interactive
mode that blocks paste operations. The code generated by the OAuth flow
in the browser cannot be pasted back into the terminal.

Environment

  • OS: Windows 11
  • Shell: WSL2 (Ubuntu)
  • Claude Code version: 2.1.107
  • Terminal: Windows Terminal / PowerShell / cmd.exe

What Should Happen?

The code should be pasteable into the terminal to complete authentication.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Run claude /login inside WSL2
  2. Open the generated URL in browser
  3. Authenticate successfully
  4. Try to paste the generated code back into the terminal
  5. Paste fails (Ctrl+V, Ctrl+Shift+V, right-click, Shift+Insert — all fail)

Additional Notes

  • Paste works normally in WSL2 terminal outside of the /login flow
  • This started after a recent Claude Code update
  • Workaround: using API Key directly (loses Claude Max subscription benefits)

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.107 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

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