-
Notifications
You must be signed in to change notification settings - Fork 0
fix(oauth): treat zero auto-switch threshold as disabled for generic fill-first routing #511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
06ec553
116c2ac
07b48da
bcdf559
b0900e5
3970601
bba6322
3d53e5f
eda8754
f9e3515
6f71931
9a60256
9e9b1d3
947bae9
f7f890f
544ebee
d24ff57
9a27e86
62849df
2f3f736
3a3de88
2d4d7a2
cf456e8
c155cc7
95c4875
4d37c35
6f5554c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,6 +231,7 @@ function stableGenericRoster(providerName: string): string[] { | |
| * quota-less provider off its active account on the very first request. | ||
| */ | ||
| function isOverAutoSwitchThreshold(providerName: string, accountId: string, threshold: number): boolean { | ||
| if (threshold <= 0) return false; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
With this guard, the public configuration reference is now contradictory: AGENTS.md reference: AGENTS.md:L380-L381 Useful? React with 👍 / 👎. |
||
| const headroom = accountHeadroomPercent(providerName, accountId); | ||
| if (headroom === null) return false; | ||
| return 100 - headroom >= threshold; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes
src/cli/, butstructure/manifest.jsonalso maps that area tostructure/clients/claude-desktop.mdandstructure/ops/docs-and-release.md, neither of which is updated by this commit. Synchronize those mapped owners with the new zero-threshold CLI contract, or correct the ownership map if they no longer describe this area.AGENTS.md reference: src/AGENTS.md:L10-L11
Useful? React with 👍 / 👎.