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.
- package/package.json +1 -1
- package/src/tui.js +8 -5
package/package.json
CHANGED
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
|
|
1044
|
-
//
|
|
1045
|
-
//
|
|
1046
|
-
//
|
|
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
|
-
:
|
|
1052
|
+
: a.inFlight > 0;
|
|
1050
1053
|
const isSel = this.mode === 'select' && idx === this.selIdx;
|
|
1051
1054
|
|
|
1052
1055
|
// Prefix: selection marker + current marker
|