[BUG] Just starting to use Claude code, running /login forgets that it needs an authentication, in lieu of account creation
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?
I've been using Claude code (sonnet 4.5) v2.1.27, but I've never used it in the browser. And I was told we bought a new plan and I had to run /login. Running /login in Claude-Code forced me to create an account on the web frontend, waiting for the credentials to be authorized. Meanwhile, the web frontend got me started with Claude on the web frontend. It never came back to the login credentials on my Claude-Code session.
I had to escape out of /login (even this was tricky: ctrl-C twice, and the language "Press Ctrl-C to quit" is ambiguous- I don't want to quit Claude-code, I want to quit just the /login prompt)
What Should Happen?
For a user that has never had an active session with https://claude.ai, I should be able to be in Claude Code and run /login in a way that makes sense. If I need to create a user identity, that's fine, but it still should come back and authorize my /login prompt on Claude Code.
After all, it's Claude Code that is directly working with my source code. I'm not planning to do that on the web frontend. (at least, not today)
Error Messages/Logs
Steps to Reproduce
- Start as a user that has never created a claude account on the web frontend
- Run Claude Code in terminal
- /login
- Create that new user
- Observe that the /login code prompted for is stuck waiting. I can't interact with it in the UI, nor do I see it in a sessions list.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.27 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗