maxpool 1.5.86 → 1.5.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maxpool",
3
- "version": "1.5.86",
3
+ "version": "1.5.87",
4
4
  "description": "Multi-account Claude Code proxy with adaptive, rate-aware load balancing across Claude accounts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -44,4 +44,4 @@
44
44
  "eslint": "^9.39.5",
45
45
  "git-cliff": "2.13.1"
46
46
  }
47
- }
47
+ }
@@ -1438,7 +1438,19 @@ export class AccountManager {
1438
1438
  if (weeklyState === 'exhausted') {
1439
1439
  // Hard block: only a weekly reset unblocks it — a sooner short-term clear
1440
1440
  // does not help — so key the hold on the weekly reset.
1441
- return { cause: 'weekly_exhausted', retryAt: q.unified7dReset || null, queueable: false };
1441
+ //
1442
+ // Read the PROVIDER reset too. `unified7dReset` is an Anthropic-only field;
1443
+ // a GLM/Kimi account stores its weekly reset in `providerWkReset`
1444
+ // (applyProviderUsage). Reading only the Anthropic field returned retryAt:null
1445
+ // for every weekly-exhausted PROVIDER, which lands on `weeklyUnknownReset` in
1446
+ // nextRetryForRequest → retryAfterMs: Infinity → server.js error-fasts → the
1447
+ // live session is KILLED, despite the real reset time being known all along.
1448
+ // Reproduced 2026-08-18 with providerWk=0.9995 + a known providerWkReset.
1449
+ return {
1450
+ cause: 'weekly_exhausted',
1451
+ retryAt: q.unified7dReset || q.providerWkReset || null,
1452
+ queueable: false,
1453
+ };
1442
1454
  }
1443
1455
 
1444
1456
  if (weeklyState === 'critical') {