chore: update statusline ANSI color palette

- Replace blinking red (5;31m) with bold red (1;31m) for critical context bar
- Replace cyan metrics (36m) with sky blue (38;5;117m)
- Replace plain bold task (1m) with bold bright white (1;97m)
- Update test assertion to match new bold red code
This commit is contained in:
Kris Pahel
2026-05-15 17:59:33 -04:00
committed by Affaan Mustafa
parent 4093d1bb0b
commit 50ac061f9e
2 changed files with 5 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ function buildContextBar(remaining) {
if (used < 50) return ` \x1b[32m${bar} ${used}%\x1b[0m`;
if (used < 65) return ` \x1b[33m${bar} ${used}%\x1b[0m`;
if (used < 80) return ` \x1b[38;5;208m${bar} ${used}%\x1b[0m`;
return ` \x1b[5;31m${bar} ${used}%\x1b[0m`;
return ` \x1b[1;31m${bar} ${used}%\x1b[0m`;
}
/**
@@ -137,7 +137,7 @@ function runStatusline() {
parts.push(dur);
}
if (parts.length > 0) {
metricsStr = `\x1b[36m${parts.join(' ')}\x1b[0m`;
metricsStr = `\x1b[38;5;117m${parts.join(' ')}\x1b[0m`;
}
}
@@ -149,7 +149,7 @@ function runStatusline() {
const segments = [`\x1b[2m${model}\x1b[0m`];
if (task) {
segments.push(`\x1b[1m${task}\x1b[0m`);
segments.push(`\x1b[1;97m${task}\x1b[0m`);
}
if (metricsStr) {
segments.push(metricsStr);

View File

@@ -131,9 +131,9 @@ function runTests() {
else failed++;
if (
test('20% remaining contains red blink ANSI code', () => {
test('20% remaining contains bold red ANSI code', () => {
const bar = buildContextBar(20);
assert.ok(bar.includes('\x1b[5;31m'), `Expected red blink ANSI in: ${JSON.stringify(bar)}`);
assert.ok(bar.includes('\x1b[1;31m'), `Expected bold red ANSI in: ${JSON.stringify(bar)}`);
})
)
passed++;