claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Title: Auth URL line-wraps in JetBrains IDE terminal, making clickable link invalid

Open ZackHirshhorn opened this issue 6 months ago • 1 comments

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?

During the authorization flow (claude first run), the authentication URL is printed to the terminal without any line-wrap protection. In the JetBrains IDE embedded terminal (IntelliJ IDEA on Windows), the URL gets split across two lines, and clicking it opens only the first fragment — resulting in an invalid URL and a failed auth attempt.

Actual behavior: Only the first line of the split URL is followed. The browser opens an invalid/incomplete URL.

Workaround: Manually copy the full URL (both line fragments) and paste it into the browser address bar.

Environment:

Claude Code version: 2.1.158 OS: Windows 11 Terminal: JetBrains IntelliJ IDEA embedded terminal (via JetBrains Toolbox)

What Should Happen?

The full URL opens in the browser and authentication succeeds.

Error Messages/Logs

browser shows an invalid action message.

Steps to Reproduce

  1. Open the embedded terminal inside IntelliJ IDEA (Windows)
  2. Run claude for the first time to trigger the auth flow
  3. Observe the authentication URL printed to the terminal
  4. Click the link

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.158 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

No response

ZackHirshhorn avatar May 31 '26 11:05 ZackHirshhorn

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/35311
  2. https://github.com/anthropics/claude-code/issues/30821
  3. https://github.com/anthropics/claude-code/issues/30411

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar May 31 '26 11:05 github-actions[bot]

This issue has been automatically closed as a duplicate of #35311.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Jun 04 '26 10:06 github-actions[bot]