claude-code - 💡(How to fix) Fix [BUG] Cannot paste OAuth auth code in v2.1.107 (regression from v2.1.104) [4 comments, 5 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#47887Fetched 2026-04-15 06:39:27
View on GitHub
Comments
4
Participants
5
Timeline
15
Reactions
13
Author
Timeline (top)
labeled ×6commented ×4subscribed ×2cross-referenced ×1

Error Message

Error Messages/Logs

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?

Pasting text into Claude Code's masked input (OAuth auth code prompt) does not work in v2.1.107. The paste is silently dropped — nothing appears in the input field. Regular bash paste (Cmd+V) works fine before and after launching Claude Code. Downgrading to v2.1.104 immediately resolves the issue.

What Should Happen?

Pasting the OAuth auth code should insert the text into the masked input field.

Suspected cause: The v2.1.107 changelog mentions "Fixed masked input (e.g., OAuth code paste) leaking the start of the token when wrapping across multiple lines on narrow terminals" — this change likely broke paste in Docker TTY environments. Claude Code Version: 2.1.107 (broken), 2.1.104 (works) Platform: Linux (Ubuntu 24.04 in Docker on macOS) Operating System: Ubuntu 24.04 Terminal/Shell: Bash / iTerm2

Error Messages/Logs

Steps to Reproduce

Run an Ubuntu 24.04 Docker container with Claude Code v2.1.107 (native installer) Launch claude — it prompts for OAuth login Open the auth URL in a browser, copy the auth code Attempt to paste (Cmd+V) into the auth code prompt Nothing is pasted. Input stays empty. npm install -g @anthropic-ai/[email protected] → paste works again.

Environment:

Host: macOS (Apple Silicon), iTerm2 Container: Ubuntu 24.04 (Docker Desktop) Docker run flags: docker run -it Also reproduced with docker exec -it Terminal: iTerm2, TERM=xterm

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.107

Platform

Other

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

No response

extent analysis

TL;DR

Downgrade to Claude Code version 2.1.104 to fix the issue with pasting text into the masked input field.

Guidance

  • The problem is likely caused by a change in version 2.1.107 that fixed an issue with masked input leaking the start of the token when wrapping across multiple lines on narrow terminals.
  • To verify the issue, try pasting text into the masked input field in version 2.1.107 and check if the text is silently dropped.
  • Downgrading to version 2.1.104 has been confirmed to resolve the issue.
  • If downgrading is not feasible, try using a different terminal or shell to see if the issue is specific to iTerm2 or Bash.

Notes

The issue seems to be specific to the combination of Claude Code version 2.1.107, Ubuntu 24.04 in Docker, and iTerm2 on macOS. The root cause is likely related to the change mentioned in the v2.1.107 changelog.

Recommendation

Apply workaround: Downgrade to version 2.1.104, as it has been confirmed to resolve the issue and no other workarounds are currently available.

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