From 38f46504fd1f472771efb2fe6b679a43d8e6ba2e Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 20 Aug 2026 01:15:52 -0500 Subject: [PATCH] fix(desktop): the finished-session dot follows the theme Every other dot in the set reads a token; unread was a hardcoded `emerald-500`. On a blue theme that left eight green marks down the sidebar fighting the palette around them. It now paints `--ui-success`, a success green rotated part of the way toward the accent along the shortest hue arc. Partway rather than all the way, because landing on the accent would make "finished" and "running" the same colour. The default costs nothing by construction: emerald sits at 162 degrees and GitHub green at 148, so a quarter rotation moves the dot about three degrees. The work only happens when the accent is genuinely far away, which is the case that was clashing. --- apps/desktop/src/app/chat/session-status-dot.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/app/chat/session-status-dot.tsx b/apps/desktop/src/app/chat/session-status-dot.tsx index e5e97e743f..3e278556b1 100644 --- a/apps/desktop/src/app/chat/session-status-dot.tsx +++ b/apps/desktop/src/app/chat/session-status-dot.tsx @@ -59,10 +59,13 @@ const DOT_VARIANTS: Record = { role: 'status', title: r => r.backgroundRunning }, - // Emerald — the turn finished while the user was looking elsewhere. + // Emerald — the turn finished while the user was looking elsewhere. The + // color is theme-derived (`--ui-success`, a success green rotated toward the + // accent) so eight finished dots can't sit in the sidebar fighting a palette + // they don't belong to. Under a green accent it stays emerald. unread: { ariaLabel: r => r.finishedUnread, - className: `${DOT_BASE} bg-emerald-500`, + className: `${DOT_BASE} bg-(--ui-success)`, role: 'status', title: r => r.finishedUnread },