Skip to content

gateway: claude --prefer X falls back to rotation, never to claude's own login - #4

Merged
teocns merged 1 commit into
mainfrom
gateway-prefer-fallthrough
Nov 5, 2026
Merged

teocns merged 1 commit into
mainfrom
gateway-prefer-fallthrough

Conversation

@teocns

@teocns teocns commented Nov 5, 2026

Copy link
Copy Markdown
Member

`claude --prefer X` promises: start on X, roll onto the other accounts when it can't be used. When X could not be routed (unknown, ambiguous or disabled), the routing fragment exited instead. The launch then skipped the gateway and ran on claude's own saved login, which can be the very account that is out of quota, so the session stops with "You've hit your weekly limit" while another account still has room.

Now:

launch before after
`--prefer ` skips the gateway, runs on claude's own login goes through the gateway unpinned; rotation picks the account, and one stderr line says why
`--account ` refuses to launch unchanged

Routing fragment rev 6 (an installed fragment from an older rev is rewritten by `enable`). Tested: `typecheck`, `test:wire` (182, including a new case for exactly this), `test:engine`.

…ot be routed (unknown, ambiguous or disabled), unpinned, so rotation picks the account; before, the launch fell back to claude's own login, which could be the spent account. Routing fragment rev 6

Kit-Commit: ceb28c047441da18242b33a80ac68b0f249b719b
Kit-Only: gateway
@teocns
teocns merged commit 6e63e3d into main Nov 5, 2026
@teocns
teocns deleted the gateway-prefer-fallthrough branch November 5, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant