mirror of
https://github.com/NikkeTryHard/zerogravity.git
synced 2026-04-25 23:26:01 +03:00
[GH-ISSUE #33] Rate limiter not reset when switching accounts via POST /v1/token #30
Labels
No labels
bug
enhancement
enhancement
notice
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zerogravity#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yulin0629 on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/33
Rate limiter not reset when token is updated via POST /v1/token
Description
When switching Google accounts, injecting a new OAuth token via
POST /v1/tokendoes not reset the per-model rate limiter state. The proxy continues to reject requests based on the previous account's 429 status, even though the new account has full quota.Steps to Reproduce
RESOURCE_EXHAUSTED(429)curl -X POST http://localhost:8741/v1/token -d '{"token":"ya29.new_token"}'Expected
Request succeeds (new account has quota).
Actual
The rate limiter still holds the old account's 429 delay.
Workaround
docker compose down && docker compose up -d(full container recreate clears in-memory state).docker compose restartis not sufficient.Suggested Fix
Reset all per-model rate limiter state when
POST /v1/tokenreceives a new token.Version
v1.1.9 (
ghcr.io/nikketryhard/zerogravity:v1.1.9), macOS Docker arm64.@NikkeTryHard commented on GitHub (Feb 20, 2026):
should be fixed for v1.2.0 please wait for stable release and test when it releases