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 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-04-19 23:13:34 +08:00
parent 72f238703d
commit 969e56b45e
@@ -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 {