claude-code - 💡(How to fix) Fix [BUG] Cannot paste authentication code in WSL Ubuntu - keyboard input intercepted [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48016Fetched 2026-04-15 06:35:46
View on GitHub
Comments
2
Participants
3
Timeline
9
Reactions
1
Timeline (top)
labeled ×4commented ×2subscribed ×2cross-referenced ×1

Error Message

Error Messages/Logs

Root Cause

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
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Run /login
  2. Select option 2 (Anthropic Console account)
  3. Copy URL, open in browser
  4. Browser returns a long authentication code
  5. 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

  1. Run /login
  2. Select option 2 (Anthropic Console account)
  3. Copy URL, open in browser
  4. Browser returns a long authentication code
  5. 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

extent analysis

TL;DR

The issue can likely be resolved by running the Claude Code login process in a terminal that supports raw mode or disabling menu shortcuts.

Guidance

  • Try running the /login command in a different terminal emulator that supports raw mode, such as Git Bash or Cygwin, to see if the issue persists.
  • Check if there are any settings in the Windows Terminal or WSL configuration that can disable menu shortcuts or enable raw mode.
  • Verify that the issue is specific to the WSL Ubuntu environment and not a general problem with the Claude Code authentication process.
  • Consider using an external tool or script to handle the authentication code input, bypassing the terminal's input limitations.

Example

No specific code example is provided, as the issue seems to be related to the terminal environment rather than the Claude Code implementation.

Notes

The issue appears to be a regression, as it worked in a previous version of Claude Code. However, without more information on the previous working version, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Try using a different terminal emulator or disabling menu shortcuts to resolve the issue, as the root cause seems to be related to the terminal environment rather than the Claude Code itself.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Cannot paste authentication code in WSL Ubuntu - keyboard input intercepted [2 comments, 3 participants]