[BUG] Cannot paste OAuth auth code in v2.1.107 (regression from v2.1.104)

Resolved 💬 6 comments Opened Apr 14, 2026 by pd-alex 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?

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/claude-code@2.1.104 → 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_

View original on GitHub ↗

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