Repository navigation
gateway: claude --prefer X falls back to rotation, never to claude's own login - #4
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
`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:
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`.