feat: proxy rotation + custom pool selection, API key quota tracker, Tailscale fix - #77
Closed
mahdiwafy wants to merge 2 commits into
Closed
feat: proxy rotation + custom pool selection, API key quota tracker, Tailscale fix#77mahdiwafy wants to merge 2 commits into
mahdiwafy wants to merge 2 commits into
Conversation
mahdiwafy
force-pushed
the
pr/proxy-key-dashboard-revamp
branch
from
July 30, 2026 00:35
09be419 to
8342d58
Compare
…r, Tailscale loading fix - pickProxyPoolId() supports targetProxyPoolIds for subset rotation - NoAuthProxyCard: checkbox grid for pool selection, conditional UI - apiKeyUsageRepo: getApiKeyUsageSnapshot with real-time metrics - EndpointPageClient: card grid with status badges, quota progress bars - Tailscale: fix endless loading when tunnelUrl is empty - Supersedes PR Vanszs#67 and Vanszs#73
Token Saver (RTK, Headroom, Caveman, Ponytail) settings removed from the Endpoint & API Keys page. These are now exclusively managed via the dedicated Token Saver menu at /dashboard/token-saver. Removed: - Token Saver card (RTK toggle, Headroom toggle+status, Caveman toggle+levels, Ponytail toggle+levels) - Headroom Install/Manage modal - All related state variables, handlers, and computed vars - locale/caveman sync useEffect and WENYAN_LOCALES import - Token saver settings loading from loadSettings
Owner
|
Request for revision — please do not treat this as a rejection. The proxy rotation, no-auth improvements, quota visibility, and Tailscale fixes are relevant to VansRouter. The current PR combines them in a way that changes existing custom behavior and makes the quota feature non-durable. Please split the PR into focused revisions:
Revision requirements:
The focused revisions are welcome. Please revise the scope and preserve VansRouter custom proxy and Token Saver behavior. |
2 tasks
Author
This was referenced Aug 4, 2026
Vanszs
pushed a commit
that referenced
this pull request
Aug 6, 2026
Focused revision per VansRouter maintainer feedback (PR #77 split): - keep connection-level proxy precedence and existing relay/strictProxy/noProxy semantics - filter inactive/invalid pools before selection - document process-local rotation behavior No token-saver removal, no quota/limits, no unrelated UI changes.
Vanszs
pushed a commit
that referenced
this pull request
Aug 6, 2026
Focused revision (split from PR #77 per maintainer feedback).
Vanszs
pushed a commit
that referenced
this pull request
Aug 6, 2026
Focused revision (split from PR #77 per maintainer feedback). Pure NoAuthProxyCard change — no quota, no token-saver removal.
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.
Summary
This PR supersedes #67 and #73, combining their features with additional improvements:
Features
1. Proxy Rotation with Custom Pool Selection
none,fill-first,round-robin,randompickProxyPoolId()acceptstargetProxyPoolIdsparameter to filter rotation[PROXY] PROVIDER | model | conn=Name | pool=ID | vercel-relay=URL2. API Key Quota Tracker
getApiKeyUsageSnapshot()returns real-time metrics: rpm, rph, rpd, tokens/5h, tokens/day, tokens/week, tokens/monthused,limit,percent, andstatus(ok/warning/danger/blocked)apiKeyCounters.js) to avoid DB write amplification3. Tailscale Loading Fix
tunnelUrlis emptyclearUserAuth()removed fromfinallyblock — buttons remain accessibleSuperseded PRs
Files Changed
connectionProxy.jspickProxyPoolIdwithtargetProxyPoolIds,resolveConnectionProxyConfig,filterTargetProxyPoolIdsNoAuthProxyCard.jsauth.jsEndpointPageClient.jsapiKeyUsageRepo.jsgetApiKeyUsageSnapshot,buildMetrichelperproviders/[id]/page.jsNoAuthProxyCardfor all providerspnpm-lock.yamlduck-duck-scrapedependencyTest Plan
vansrouter:full-merge)oc/deepseek-v4-flash-freechat completion → 200https://router.mahdiwafy.my.id/v1/models→ 200