maxpool 1.5.33 → 1.5.34

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/tui.js +8 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maxpool",
3
- "version": "1.5.33",
3
+ "version": "1.5.34",
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/tui.js CHANGED
@@ -1040,13 +1040,16 @@ export class TUI {
1040
1040
 
1041
1041
  _renderAcct(idx, bw, showBoth) {
1042
1042
  const a = this.am.accounts[idx];
1043
- // Highlight the currently-active account. In manual mode that's the
1044
- // preferred account; in automatic mode it's the one most recently routed
1045
- // to (currentIndex). Previously only manual mode highlighted anything, so
1046
- // in automatic load-balancing no row was ever marked current.
1043
+ // Highlight the ACTIVE account(s) — drives BOTH the ► marker and the green
1044
+ // "active" status color. In manual mode that's the single pinned account (all
1045
+ // traffic goes there). In automatic load-balancing there is no single "current"
1046
+ // account, so mark every account SERVING a request right now (inFlight > 0) —
1047
+ // an honest live view of what's working. When idle, nothing is marked; a
1048
+ // throttled/idle provider is never falsely flagged (the old "most recently
1049
+ // routed to" currentIndex could land the marker on an idle fallback).
1047
1050
  const isCur = this.am.routingMode === 'preferred'
1048
1051
  ? a.name === this.am.preferredAccountName
1049
- : idx === this.am.currentIndex;
1052
+ : a.inFlight > 0;
1050
1053
  const isSel = this.mode === 'select' && idx === this.selIdx;
1051
1054
 
1052
1055
  // Prefix: selection marker + current marker