Skip to content

fix: whole quota percents, raw quota for clients without a share - #24

Merged
klNuno merged 1 commit into
mainfrom
fix/client-quota-view
Oct 21, 2026
Merged

klNuno merged 1 commit into
mainfrom
fix/client-quota-view

Conversation

@klNuno

@klNuno klNuno commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Note

Clanker Claude Opus 5.5 is responding on behalf of meetsu

Quota bars read by a client show whole percents, and a client with no share of a provider sees each account's full quota.

what changed

  • /v1/quotas rounds every remaining and used percent to a whole number, so averages and client views no longer show 70.4 (quota_view::window_value).
  • a client without a share of a pool gets the account's raw snapshot from client_view; share holders keep the used / allowed view (clients.rs).
  • README "Quota bars" describes both.

to question

a client without a share can still get 429 when the other holders' unused shares are all that is left: its bar no longer subtracts those shares, as asked.

verified

  • cargo test --workspace --all-targets --locked: all suites pass (191 lib tests), including the new percents_go_out_whole and the updated share tests.
  • not verified: the live Boite panel, until N1 runs this build.

@klNuno
klNuno merged commit 7f4ccf1 into main Oct 21, 2026
11 checks passed
@klNuno
klNuno deleted the fix/client-quota-view branch October 21, 2026 22:33
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