/login URL breaks across lines in macOS Terminal.app, cannot be copied as one piece

Resolved 💬 3 comments Opened May 14, 2026 by BeckJam Closed May 18, 2026

Summary

When running /login in Claude Code, the authentication URL is printed wrapped across multiple terminal lines. In macOS Terminal.app this can't be copied as a single contiguous URL — selecting across the wrap picks up line breaks, and the URL has to be copied one line at a time and manually reassembled to work.

Environment

  • Claude Code CLI
  • macOS Terminal.app
  • macOS Darwin 25.2.0

Steps to reproduce

  1. Open Claude Code in macOS Terminal.app
  2. Run /login
  3. Try to copy the displayed authentication URL with click-and-drag

Expected

URL can be selected and copied as a single string, or is automatically placed on the clipboard.

Actual

URL wraps across multiple lines with hard line breaks. Copying the selection produces a broken URL that fails when pasted into a browser. The URL has to be copied one line at a time and stitched together manually before it will work.

Suggested fixes (any one would help)

  • Copy the auth URL to the clipboard automatically (e.g. via pbcopy on macOS) and tell the user it's been copied
  • Print the URL on a single logical line without hard wrapping (let the terminal soft-wrap it, which preserves it as one string on copy)
  • Offer a --copy flag or interactive "press c to copy URL" prompt

View original on GitHub ↗

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