maxpool 1.24.60 → 1.24.61

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.24.60",
3
+ "version": "1.24.61",
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",
@@ -1401,7 +1401,11 @@ export class AccountManager {
1401
1401
  }
1402
1402
  const now = Date.now();
1403
1403
  if (now < this.queueState.rampUntil && now - this.queueState.lastAdmissionAt < 250) return false;
1404
- this.queueState.waiting.shift();
1404
+ // Remove THIS ticket, not the head: with the head-skip above, the admitted ticket
1405
+ // may not be waiting[0]. shift() here dropped the stuck head's ticket and left the
1406
+ // admitted one queued (found 2026-10-31 re-reading the shipped change).
1407
+ const pos = this.queueState.waiting.findIndex(t => t.id === ticket.id);
1408
+ if (pos >= 0) this.queueState.waiting.splice(pos, 1);
1405
1409
  this.queueState.bytes = Math.max(0, this.queueState.bytes - (ticket.bytes || 0));
1406
1410
  this.queueState.lastAdmissionAt = now;
1407
1411
  requestInfo.queueTicket = null;