maxpool 1.5.58 → 1.5.59

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.js +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maxpool",
3
- "version": "1.5.58",
3
+ "version": "1.5.59",
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",
package/src/server.js CHANGED
@@ -1332,11 +1332,20 @@ async function forwardRequest(
1332
1332
  // Record the user-facing failure explicitly so it's greppable in the event
1333
1333
  // log (the in-memory TUI feed scrolls away). `err` is the last network error.
1334
1334
  console.error(`[Maxpool] Returned connection_unavailable (503) after network errors on all routes (last: "${account.name}" — ${err.code || err.message})`);
1335
+ // Name what actually happened. "Check your internet connection" sent the user
1336
+ // hunting a fault that wasn't there: measured 2026-08-04, 10 requests failed this
1337
+ // way within one hour while every other session kept working — the connection to
1338
+ // Anthropic dropped mid-flight (`terminated`) on each account tried, which is not
1339
+ // the same as the machine being offline. Carrying the real code makes it greppable
1340
+ // and stops the misdiagnosis.
1341
+ const lastCode = err.code || err.cause?.code || (err.message || '').slice(0, 40);
1335
1342
  sendErrorResponse(res, requestInfo, 503, {
1336
1343
  type: 'error',
1337
1344
  error: {
1338
1345
  type: 'connection_unavailable',
1339
- message: 'Could not connect to Claude or a configured fallback provider. Check your internet connection and try again. This is not an account quota issue.',
1346
+ message: `The connection to Claude dropped on every account maxpool tried (${lastCode}). `
1347
+ + 'This is not a quota problem, and it is usually brief — sending the message again normally works. '
1348
+ + 'If it keeps happening, the link between this machine and Anthropic is unstable.',
1340
1349
  },
1341
1350
  });
1342
1351
  return;