Login prompt does not accept paste input on Linux/Ubuntu terminals

Resolved 💬 10 comments Opened Apr 14, 2026 by zizhong Closed Apr 15, 2026

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 ↗

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