[BUG] /login URL hyperlink truncated when URL spans multiple lines
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?
Description:
When running /login, the authentication URL is displayed in the terminal. If the URL is long enough to wrap across multiple lines, the clickable hyperlink only covers the first line.
Clicking it opens a browser with an incomplete URL, resulting in OAuth errors (missing parameters).
Steps to reproduce:
- Run /login in Claude Code
- Observe the authentication URL — if it wraps to 2+ lines, only the first line is a clickable link
- Click the link → browser opens with a truncated URL → OAuth error about missing values
Expected: The entire URL is hyperlinked (or the URL is displayed in a way that makes it easy to copy/open correctly — e.g. on a single line, or with a copy button)
Workaround: Manually copy the full multi-line URL into the browser
What Should Happen?
the entire url is included in the link
Error Messages/Logs
Steps to Reproduce
try to use /login
if your url doesn't go over one line, make you window smaller and try to use /login again
then try to click the link
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.185 (Claude code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_