[BUG] `/login` and `claude auth login` URL is not clickable as URL line breaks
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?
Running /login inside Claude Code or running claude auth login causes the URL to break so it's impossible to click the hyperlink directly.
<img width="3147" height="154" alt="Image" src="https://github.com/user-attachments/assets/29fbe28e-390b-4f63-9b96-cc61a51abe4c" />
<img width="3149" height="142" alt="Image" src="https://github.com/user-attachments/assets/fb7203d0-a1cf-430e-a78c-debd0280ee9c" />
What Should Happen?
The URL should be easily copyable in a headless environment and also clickable easily in a headless environment.
An example of a headless environment would be in Jupyter or WSL. For context, any URLs rendered in Codex regardless of length are fully clickable without line breaking.
Error Messages/Logs
Steps to Reproduce
- Run this in a headless environment like a WSL terminal or JupyterLab
- Open Claude Code and then
/loginorclaude auth login. - Try to click the URL, it ends up line breaking.
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.217 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
This happens in any headless environment, but in general it seems URL rendering is broken due to the line breaks.