From 09f9bdffe582ff3c66845ca219f60c11472a550a Mon Sep 17 00:00:00 2001 From: User Date: Wed, 15 Jul 2026 12:27:19 +0200 Subject: [PATCH] fix(frontend): restore live log text contrast --- frontend/src/shell/CentralStatus.test.tsx | 15 +++++++++++++++ frontend/src/shell/CentralStatus.tsx | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/frontend/src/shell/CentralStatus.test.tsx b/frontend/src/shell/CentralStatus.test.tsx index a973262e..76de7d21 100644 --- a/frontend/src/shell/CentralStatus.test.tsx +++ b/frontend/src/shell/CentralStatus.test.tsx @@ -51,6 +51,21 @@ test("wraps live log lines instead of truncating them", () => { expect(screen.getByText("a_very_long_model_activity_line")).not.toHaveClass("truncate"); }); +test("uses accessible muted text for historical live-log rows", () => { + useSessionStore.setState({ + transcript: [ + { role: "assistant", text: "Earlier activity" }, + { role: "assistant", text: "Current activity" }, + ], + }); + render(); + + const historicalRow = screen.getByText("Earlier activity").closest("li"); + expect(historicalRow).not.toBeNull(); + expect(historicalRow).toHaveClass("text-muted-foreground"); + expect(historicalRow).not.toHaveClass("text-muted-foreground/55"); +}); + test.each([ { working: false, transcript: [{ role: "assistant" as const, text: "hidden" }] }, { working: true, transcript: [] }, diff --git a/frontend/src/shell/CentralStatus.tsx b/frontend/src/shell/CentralStatus.tsx index 0396dbce..393ef00c 100644 --- a/frontend/src/shell/CentralStatus.tsx +++ b/frontend/src/shell/CentralStatus.tsx @@ -51,7 +51,7 @@ export function CentralStatus({ working }: { working: boolean }) { key={index} className={[ "flex items-baseline gap-2 font-mono text-[0.72rem] leading-relaxed", - isLast ? "text-foreground/80" : "text-muted-foreground/55", + isLast ? "text-foreground/80" : "text-muted-foreground", ].join(" ")} >