Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(dashboard): resolve /dashboard/limits hanging UI with 70+ accounts via chunk parallelization (#784)
diegosouzapw0ad8576ae57d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1e07381f7a..242f19b837 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -18,6 +18,9 @@- **429 Quota Parsing:** Parsed long quota reset times from error bodies to honor correct backoffs and prevent rate-limited account bans (#859)- **Prompt Caching:** Preserved client `cache_control` headers for all Claude-protocol providers (like Minimax, GLM, and Bailian), correctly recognizing caching support (#856)- **Model Sync Logs:** Reduced log spam by recording `sync-models` only when the channel actually modifies the list (#853)+- **Provider Quota & Token Parsing:** Switched Antigravity limits to use `retrieveUserQuota` natively and correctly mapped Claude token refresh payloads to URL-encoded forms (#862)+- **Rate-Limiting Stability:** Universalized the 429 Retry-After parsing architecture to cap provider-induced cooldowns at 24 hours max (#862)+- **Dashboard Limit Rendering:** Re-architected `/dashboard/limits` quota mapping to render immediately inside chunks, fixing a major UI freezing delay on accounts exceeding 70 active connections (#784)### ⚠️ Breaking Changesdiff --git a/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx b/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsxindex 9560014370..ef927c4333 100644--- a/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx+++ b/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.tsx@@ -210,12 +210,16 @@ export default function ProviderLimits() {setCountdown(120);try {const conns = await fetchConnections();++ // Show table layout immediately once connections are loaded (Issue #784)+ setInitialLoading(false);+const usageConnections = conns.filter((conn) =>USAGE_SUPPORTED_PROVIDERS.includes(conn.provider) &&(conn.authType === "oauth" || conn.authType === "apikey"));- // Fix Issue #784: Fetch quotas in chunks of 5 to avoid spamming the backend/provider APIs and hanging the UI.+ // Fix: Fetch quotas in chunks of 5 to avoid spamming the backend/provider APIs and hanging the UI.const chunkSize = 5;for (let i = 0; i < usageConnections.length; i += chunkSize) {const chunk = usageConnections.slice(i, i + chunkSize);@@ -225,14 +229,15 @@ export default function ProviderLimits() {console.error("Error refreshing all:", error);} finally {setRefreshingAll(false);+ setInitialLoading(false); // Fallback to ensure skeleton is cleared}}, [refreshingAll, fetchConnections, fetchQuota]);useEffect(() => {const init = async () => {setInitialLoading(true);- await refreshAll();- setInitialLoading(false);+ // No longer await refreshAll here so we don't block the UI+ refreshAll();};init();}, []); // eslint-disable-line react-hooks/exhaustive-deps