[BUG] infinite login loop with /extra-usage
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?
Every time that I call the /extra-usage command, I am prompted to log-in.
Upon logging in, it reports a "Login Successful. Press Enter to continue..."
If I press Enter, I am returned to the claude code console with "Login successful" as the only result.
Something seems to briefly pop up but I can't see it.
Using /extra-usage again repeats this exact behavior, including a second prompt to login.
/status shows me correctly logged in to a Claude Pro account.
What Should Happen?
/extra-usage should help me control whether extra usage is allowed.
Error Messages/Logs
No error messages, simply terminates with success.
Steps to Reproduce
- Run claude
- Run /extra-usage
- Choose option 1 to log-in in web browser
- Authorize access to Claude Code
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.2
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
NixOS via the package manager; I don't see any patches or very strange setup in the package https://github.com/NixOS/nixpkgs/blob/aef8bcdfb3ec01e5650b67da9ce9bf25806cc47d/pkgs/by-name/cl/claude-code/package.nix#L3
DEV flag is suspicious
I hope it's irrelevant, but for repro exact packages commit in nixpkgs is 5f02c91314c8ba4afe83b256b02375641221853
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗