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

Status Closed — duplicate
Reported on v2.1.107
Maintainer reply ✓ Yes — mhegazy
Activity 12 comments · opened Apr 14, 2026 · closed Apr 16, 2026
💡 Likely answer: A maintainer (mhegazy, contributor) responded on this thread — see the highlighted reply below.

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 ↗

12 Comments

Mikzas · 4 months ago

Same problem, thanks

IsaacJW26 · 4 months ago

I have the same issue on Windows 11 when I SSH via either cmd or WSL. The URL copies to the clipboard fine when 'c' is pressed but paste doesn't work Ctrl+V Ctrl+shift+V or "right click menu>paste" (keyboard button, right mouse menu seems to be disabled).

mickaeldanslenowhere · 4 months ago

Trick is to connect on a device that have the access to a browser and then copy credentials.json into the one that can't connect

You can even ask Claude to do it for you if you have access through ssh

gtapps · 4 months ago

Same problem.

L-earner · 4 months ago

Just install a previous version and it works

curl -fsSL https://claude.ai/install.sh | bash -s 2.1.89

bernhardsmith · 4 months ago

Same problem here. Thanks L-earner, that tip about the previous version really helped me out!

JKSNS · 4 months ago

@timfulker

Just ran this fix:

sudo curl -fsSL https://claude.ai/install.sh | bash -s -- 2.1.101

claude (to auth, paste worked for me on this version)

then sudo claude update

jantb · 4 months ago

same here, its not possible to paste in the auth code any more. It used to work, now I cant paste anything into the prompt any more

mhegazy contributor · 4 months ago
lienedaughter · 4 months ago

2.1.104 works but 2.1.105+ breaks OAuth paste input in Replit's shell

ashwin-ant collaborator · 4 months ago

This is a duplicate of #47699, which was fixed as of version 2.1.108.

---
_Generated by Claude Code_

github-actions[bot] · 4 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.