moflo 4.12.9 → 4.12.11

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.
@@ -133,13 +133,19 @@ export class StatuslineGenerator {
133
133
  // Memory color
134
134
  const memoryColor = data.system.memoryMB > 0 ? c.brightCyan : c.dim;
135
135
  const memoryDisplay = data.system.memoryMB > 0 ? `${data.system.memoryMB}MB` : '--';
136
- // Context color (lower is better)
137
- let contextColor = c.brightGreen;
138
- if (data.system.contextPct >= 75)
139
- contextColor = c.brightRed;
140
- else if (data.system.contextPct >= 50)
141
- contextColor = c.brightYellow;
142
- const contextDisplay = String(data.system.contextPct).padStart(3);
136
+ // Context color (lower is better). An unknown value renders dim `--`, never a
137
+ // number: a threshold-coloured 0% reads as a real measurement (#1453).
138
+ const contextPct = data.system.contextPct;
139
+ let contextColor = c.dim;
140
+ // Unit lives in the string (as with memoryDisplay above) so the unknown case
141
+ // reads `--` rather than `--%`.
142
+ let contextDisplay = ' --';
143
+ if (contextPct !== null) {
144
+ contextColor = contextPct >= 75 ? c.brightRed
145
+ : contextPct >= 50 ? c.brightYellow
146
+ : c.brightGreen;
147
+ contextDisplay = `${String(contextPct).padStart(3)}%`;
148
+ }
143
149
  // Intelligence color
144
150
  let intelColor = c.dim;
145
151
  if (data.system.intelligencePct >= 75)
@@ -155,7 +161,7 @@ export class StatuslineGenerator {
155
161
  `${subAgentColor}👥 ${data.system.subAgents}${c.reset} ` +
156
162
  `${securityIcon} ${securityColor}CVE ${data.security.cvesFixed}${c.reset}/${c.brightWhite}${data.security.totalCves}${c.reset} ` +
157
163
  `${memoryColor}💾 ${memoryDisplay}${c.reset} ` +
158
- `${contextColor}📂 ${contextDisplay}%${c.reset} ` +
164
+ `${contextColor}📂 ${contextDisplay}${c.reset} ` +
159
165
  `${intelColor}🧠 ${intelDisplay}%${c.reset}`);
160
166
  // Line 3: Architecture status
161
167
  const dddColor = data.v3Progress.dddProgress >= 50 ? c.brightGreen :
@@ -495,7 +501,7 @@ export class StatuslineGenerator {
495
501
  }
496
502
  return {
497
503
  memoryMB,
498
- contextPct: 0, // Requires Claude Code input
504
+ contextPct: null, // Unknowable here: needs Claude Code's stdin payload (#1453)
499
505
  intelligencePct,
500
506
  subAgents,
501
507
  };