From 969e56b45eb4ae35924cc5ba385387588d23de66 Mon Sep 17 00:00:00 2001 From: ekko Date: Sun, 19 Apr 2026 23:13:34 +0800 Subject: [PATCH] fix: restore selected session highlight alongside live indicator The PR changed `.active` class to bind on `isSessionLive()`, which removed the visual selection state when clicking a non-live session. Split into two classes: `.active` for selection, `.live` for streaming. Co-Authored-By: Claude Opus 4.6 --- packages/client/src/components/hermes/chat/ChatPanel.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/hermes/chat/ChatPanel.vue b/packages/client/src/components/hermes/chat/ChatPanel.vue index 6920918..369895f 100644 --- a/packages/client/src/components/hermes/chat/ChatPanel.vue +++ b/packages/client/src/components/hermes/chat/ChatPanel.vue @@ -327,7 +327,7 @@ async function handleRenameConfirm() { v-for="s in group.sessions" :key="s.id" class="session-item" - :class="{ active: chatStore.isSessionLive(s.id) }" + :class="{ active: s.id === chatStore.activeSessionId, live: chatStore.isSessionLive(s.id) }" @click="handleSessionClick(s.id)" @contextmenu="handleContextMenu($event, s.id)" > @@ -625,6 +625,10 @@ async function handleRenameConfirm() { &.active .session-item-title { color: $accent-primary; } + + &.live .session-item-title { + color: $accent-primary; + } } .session-item-content {