[BUG] Buggy login behaviour

Resolved 💬 3 comments Opened Apr 8, 2026 by wojtekszkutnik Closed Apr 12, 2026

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?

The login behaviour has multiple bugs preventing reauthenthication:

  • In the last couple days, for whatever reason I get asked to reauthenthicate at least once a day
  • The auth link is buggy in iTerm2 - both when I try to copy it manually and when I use the c to copy hotkey that is powered directly by Anthropic - it copies the link with newlines/tabs that break the link:

Authorization failed

Redirect URI https://platform.claude.com/oauth/cod e/callback is not supported by client.

  • When I edit the url manually to remove the whitespace and get past this, sometimes Claude Code randomly rejects the token and I have to do the flow one more time for it to work

The whitespace part was always broken but the browser window not opening, need to reauthenthicate and random failures are a new thing

What Should Happen?

  • An authenthication window should open
  • c to copy should copy the link without whitespace
  • The rendering of the link shouldn't include whitespace

Error Messages/Logs

Steps to Reproduce

  1. get randomly logged out
  2. try to copy the login 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.96 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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