claude-code - 💡(How to fix) Fix [BUG] All paste methods fail silently during OAuth prompt only [1 comments, 2 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#48062Fetched 2026-04-15 06:34:21
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
3
Author
Participants
Timeline (top)
labeled ×5commented ×1unlabeled ×1

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

Attempts & Workarounds Tried

  1. Install Fedora 43, patch it fully, and ensure npm is installed
  2. Open Windows Terminal with default settings
  3. Install claude: npm install -g @anthropic-ai/claude-code
  4. Open claude: claude
  5. Select your theme
  6. Select option #2 for API
  7. Copy the auth code in the browser from the URL redirect
  8. Attempt to paste the code into the terminal from any method (context menu, hotkey, or mouse) and verify it fails
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?

The Problem

  • Symptom: Pasting (both Ctrl+V, Right-Click, Shift+Insert, and Ctrl+Shift+V altered keybindings) fails exclusively during the claude CLI authentication prompt.
  • Context: Windows Terminal running Fedora 43 in WSL.
  • Observation: Pasting works perfectly in the standard shell and other applications within the same terminal session; it only "dies" when the claude auth prompt is active.

Theories Explored

  1. Terminal Mapping Conflict: Investigated if Windows Terminal was failing to intercept Ctrl+V or if Paste was double-bound to another action.
  2. Input "Raw Mode" Interference: Suspected the claude tool enters a "Raw" or "Masked" input state for security, which can cause some CLI tools to ignore "burst" inputs (like a paste) in favor of individual keypresses.
  3. Bracketed Paste Protocol: Considered that the "Bracketed Paste" mode (which wraps pasted text in escape codes like \e[200~) was confusing the auth prompt, causing it to reject the input.
  4. Clipboard Sync Lag: Looked into WSLg/Wayland clipboard desynchronization between the Windows host and the Linux guest.
  5. Tool-Specific Regression: Identified a likely bug/regression in specific versions of claude-code (specifically around v2.1.105) that breaks terminal input handling during OAuth flows. When I downgraded to v2.1.104, the paste functionality worked flawlessly.

Attempts & Workarounds Tried

  • Settings Toggles: Adjusted Allow OSC 52 and Legacy Input Encoding in Windows Terminal.
  • Shortcut Alternatives: Tested Ctrl+Shift+V, Shift+Insert, and Right-Click (all failed in the auth prompt).
  • Protocol Reset: Executed printf "\e[?2004l" to manually disable Bracketed Paste Mode.
  • Command Palette: Attempted to force a paste from the Terminal's internal command menu (Ctrl+Shift+P -> Paste).

Conclusion / Areas for Further Investigation

The fact this works in the previous stable release, it tells me there was some form of a regression introduced in .105.

What Should Happen?

The paste functionality should work.

Error Messages/Logs

Steps to Reproduce

Assumptions: Windows 11 and WSL is already installed

  1. Install Fedora 43, patch it fully, and ensure npm is installed
  2. Open Windows Terminal with default settings
  3. Install claude: npm install -g @anthropic-ai/claude-code
  4. Open claude: claude
  5. Select your theme
  6. Select option #2 for API
  7. Copy the auth code in the browser from the URL redirect
  8. Attempt to paste the code into the terminal from any method (context menu, hotkey, or mouse) and verify it fails

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.104

Claude Code Version

2.1.105

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

Downgrade to claude-code version 2.1.104 to restore paste functionality during the authentication prompt.

Guidance

  • The issue is likely caused by a regression introduced in version 2.1.105 of claude-code, as the paste functionality works in version 2.1.104.
  • To verify the issue, follow the steps to reproduce provided in the issue description.
  • As a temporary workaround, consider using the previous version of claude-code (2.1.104) until the regression is fixed in a future version.
  • If downgrading is not feasible, try alternative methods to input the authentication code, such as typing it manually.

Notes

The issue appears to be specific to the claude-code version and the Windows Terminal environment, and may not affect other platforms or terminals.

Recommendation

Apply workaround: Downgrade to version 2.1.104, as it is confirmed to work and allows for uninterrupted use of the claude-code tool until a fixed version is released.

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] All paste methods fail silently during OAuth prompt only [1 comments, 2 participants]