Keep the usage endpoint under its rate limit (1.0.1) #7
Loading…
Reference in a new issue
No description provided.
Delete branch "oss-oo/refresh-floor"
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?
Keeps the applet under the usage endpoint's rate limit. This morning a 1-minute refresh interval got about every second request rejected with HTTP 429 for hours.
2-minute floor:
settings-schema.jsonrefresh-interval.minis 2, and the applet treats a stored shorter value as 2 minutes.Request spacing: the helper asks the endpoint at most once every 110 seconds per access token, counted between send times (
REQUEST_SPACING), so the regular refreshes alone always reach it.recent-answers.json(0600, truncated token fingerprints, pruned on write) keeps each answer that long. A refresh in between, from Refresh now, a reload or a setting change, gets that answer again:source.cached, with no history sample;EndpointError: HTTP 429, other statuses, unreadable or empty answers), the same failure, replayed as before;TokenRejected, HTTP 401/403), the same rejection, and the next source is tried without asking.Only a request that could not complete (unreachable endpoint, timeout) is repeated right away. Held-back answers are raised as the base classes, so they never postpone the next request.
last-snapshot.jsonkeeps its 1.0.0 format.Docs: README, SECURITY.md, docs/README.md, CHANGELOG and version 1.0.1. The repository's release rule now names the owner's standing approval of 2026-10-27; the independent review stays mandatory.
Validation
make verifyand Prettier are green; 96 Python tests (83 before) and 14 CJS suites pass.091d4b8), 1944 (bf45943), 1945 (0e06320) and 1946 (68cb4be) succeeded.bf45943;0e06320;68cb4be.🤖 Generated with Claude Code