[BUG] /login doesn't show Cloud Gateway option in-session after gateway session expiry
Environment:
- Claude Code version: 2.1.217
- OS/platform: Linux
- Auth: Claude Apps Gateway
What happened:
During a session using the Claude Apps Gateway, my gateway credential expired and could not be refreshed. Claude Code showed:
API Error: Cloud gateway session expired - run /login to reconnect
When I ran /login as instructed, the menu only offered three methods — (1) Claude account with subscription, (2) Anthropic Console account, (3) third-party platform. There was no Cloud Gateway option, so I couldn't reconnect. I had to fully exit and relaunch Claude Code; only then did /login show the gateway login instructions.
Expected:
Either /login (as the error instructs) should offer the Cloud Gateway reconnect flow in-session, or the error message shouldn't point me to a command that can't complete the reconnect.
Repro:
- Configure Claude Code with Claude Apps Gateway (per the docs)
- Start a session and let the gateway credential expire without a valid refresh
- Observe the
Cloud gateway session expired - run /login to reconnecterror - Run
/login→ Cloud Gateway option is missing (only 3 default methods shown) - Restart Claude Code, run
/login→ Cloud Gateway option now appears
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗