TUI /login is uncompletable: auth URL won't auto-open and 'c' won't copy it (mouse-capture blocks manual selection)
Open 💬 0 comments Opened Jun 28, 2026 by brks-rssll
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
Environment
- Claude Code: 2.1.195 (npm-global,
@anthropic-ai/claude-code) - OS: macOS (Darwin 25.5.0), Apple Silicon
- Auth: claude.ai subscription (OAuth)
- Running in a normal local terminal (not SSH/tmux).
What's Wrong?
When the TUI drops you into the /login screen, there is no working way to follow the login URL, so login cannot be completed from inside the TUI:
- The login URL does not auto-open a browser — even though
$BROWSERis empty (so it should fall back toopen) andopen https://anthropic.comopens the default browser fine from the same shell. - The "press
cto copy" shortcut does not put the URL on the clipboard — nothing is copied, so it can't be pasted into a browser either. - Manual selection is blocked too — the full-screen TUI has mouse reporting enabled, so normal click-drag selection of the URL is swallowed by the app; can't select + ⌘C.
Net effect: the URL is visible on screen but unfollowable. The TUI /login is a dead end.
What Should Happen?
- The login URL should auto-open via
open/$BROWSER(it works when invoked manually). - Failing that,
cshould reliably copy the URL to the system clipboard. - With mouse reporting on, there should be a dependable copy affordance so the URL can be retrieved.
Steps to Reproduce
- Trigger the
/loginscreen in the TUI on macOS (e.g. after an auth/token issue). - Observe the URL does not auto-open a browser.
- Press
c— nothing lands on the clipboard. - Try to click-drag-select the URL — the TUI's mouse capture prevents selection.
- Login cannot be completed without leaving the TUI.
Workaround
Authenticate from a plain shell instead of the TUI — there the URL prints as ordinary selectable text and auto-opens via open:
claude auth logout
claude auth login --claudeai
claude auth status
Note
Filed as a focused follow-up split out from #72006 (which was closed as a duplicate of #71757 for the separate token-refresh/auth-wipe bug). This report is specifically about the unusable /login URL UX in the TUI.