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

  1. Run claude on a remote Ubuntu machine (via SSH)
  2. Run /login
  3. Open the OAuth URL in a browser and copy the authorization code
  4. 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

View original on GitHub ↗

10 Comments

ixunuo · 4 months ago

I encountered the same problem.

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/47669
  2. https://github.com/anthropics/claude-code/issues/47648
  3. https://github.com/anthropics/claude-code/issues/47670

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

yusupsupriyadi · 4 months ago

I experienced the same thing.

hnts03-moreh · 4 months ago

I encountered same issue.

waterimp · 4 months ago

I get this problem when running claude in an ubuntu 24.04 docker image.

MonsterDKing · 4 months ago

same

jalalkun · 4 months ago

same here!

mhegazy contributor · 4 months ago
ashwin-ant collaborator · 4 months ago

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.

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.