"[BUG] OAuth code input prompt silently drops paste - code not accepted in Replit shell"

Resolved 💬 12 comments Opened Apr 14, 2026 by timfulker 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?

OAuth code input prompt is not accepting paste in Replit shell — paste works fine in the shell itself but nothing appears when pasting into Claude Code's auth prompt. Worked fine previously, broke today.

What Should Happen?

Pasting the OAuth code into the input prompt should work the same way it does in the shell itself — the code should appear (even if partially masked) and be accepted when Enter is pressed. Previously this worked correctly every day for over a year. As of today it has stopped working entirely — nothing appears when pasting, and the code is rejected.

Error Messages/Logs

OAuth error: Invalid code. Please make sure the full code was 
 copied

Steps to Reproduce

**1. Open Replit shell

  1. Type claude to start Claude Code
  2. Follow the login flow and select the OAuth/browser option
  3. Copy the URL shown in the terminal, paste into local browser
  4. Authenticate in browser and copy the resulting OAuth code
  5. Return to Replit shell where Claude Code is waiting for the code
  6. Attempt to paste the code into the input prompt
  7. Nothing appears — paste is silently swallowed by Claude Code's input prompt
  8. Pressing Enter returns "OAuth error: Invalid code"

Note: pasting works fine in the Replit shell itself (confirmed with echo test). The issue is specific to Claude Code's auth input prompt.**

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.107 (Claude Code)

Platform

Other

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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