[BUG] /login doesn't show Cloud Gateway option in-session after gateway session expiry

Status Open
Reported on v2.1.217
Maintainer reply None cached
Activity 1 comment · opened Jul 22, 2026

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:

  1. Configure Claude Code with Claude Apps Gateway (per the docs)
  2. Start a session and let the gateway credential expire without a valid refresh
  3. Observe the Cloud gateway session expired - run /login to reconnect error
  4. Run /login → Cloud Gateway option is missing (only 3 default methods shown)
  5. Restart Claude Code, run /login → Cloud Gateway option now appears

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗