"[BUG] OAuth code input prompt silently drops paste - code not accepted in Replit shell"
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
- Type claude to start Claude Code
- Follow the login flow and select the OAuth/browser option
- Copy the URL shown in the terminal, paste into local browser
- Authenticate in browser and copy the resulting OAuth code
- Return to Replit shell where Claude Code is waiting for the code
- Attempt to paste the code into the input prompt
- Nothing appears — paste is silently swallowed by Claude Code's input prompt
- 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_
This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗