Login prompt does not accept paste input on Linux/Ubuntu terminals
Status Closed — not planned
Maintainer reply ✓ Yes — mhegazy
Activity 10 comments · opened Apr 14, 2026 · closed Apr 15, 2026
💡 Likely answer: A maintainer (mhegazy, contributor)
responded on this thread — see the highlighted reply below.
Description
The /login (or claude login) interactive prompt that asks users to paste their authorization code does not accept paste input on Linux/Ubuntu terminals. Typed input works fine — only paste is broken.
Steps to Reproduce
- Run
claudeon a remote Ubuntu machine (via SSH) - Run
/login - Open the OAuth URL in a browser and copy the authorization code
- Attempt to paste the code into the "Paste code here if prompted >" prompt
Expected Behavior
The pasted text should appear in the input field, same as typed text.
Actual Behavior
Paste does nothing. The following paste methods were all tried and none worked:
- Right-click paste
- Shift+Insert
- Ctrl+Shift+V
- Terminal paste via SSH client (Cmd+V from macOS SSH client)
All of these paste methods work correctly:
- In the same terminal outside of Claude Code
- Inside Claude Code in the normal chat prompt
- Just not in the login/auth code prompt specifically
Environment
- OS: Ubuntu (remote, accessed via SSH)
- Claude Code CLI
10 Comments
I encountered the same problem.
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
I experienced the same thing.
I encountered same issue.
I get this problem when running
claudein an ubuntu 24.04 docker image.same
same here!
duplicate of https://github.com/anthropics/claude-code/issues/47699
Duplicate of #47669 — same bug: paste into the
/login"Paste code here" prompt is silently rejected (likely bracketed-paste handling). Closing in favor of that issue; please subscribe there for updates.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.