fix(ui): thread header counts only queued items; label the live dot

This commit is contained in:
hh
2026-08-29 01:08:44 +02:00
parent 932a7a80af
commit 4fb020c788
2 changed files with 16 additions and 8 deletions
+7 -5
View File
@@ -84,11 +84,13 @@
open ? "p-3" : "items-center p-2"
)}
>
<LiveDot
detail={gateway.live.detail}
label={open}
state={gateway.live.state}
/>
<span title="event stream from the gateway (SSE)">
<LiveDot
detail={gateway.live.detail}
label={open}
state={gateway.live.state}
/>
</span>
{#if open}
<div class="flex items-center justify-between gap-2">
<span class="truncate text-muted-foreground text-xs">
+9 -3
View File
@@ -45,6 +45,9 @@
const WINDOW_MAX = 56;
const windows = $derived(info.bindings.filter((b) => b.visible));
const queued = $derived(
info.queue.filter((item) => item.status === "queued").length
);
const SEEDS = [
{ label: "clean - empty context", value: "clean" },
@@ -196,9 +199,12 @@
<span class="tabular">
last activity {fmtRelative(info.last_activity_at)}
</span>
{#if info.queue.length > 0}
<span class="tabular font-medium text-note">
{info.queue.length}
{#if queued > 0}
<span
class="tabular font-medium text-note"
title="messages waiting for the next turn"
>
{queued}
queued
</span>
{/if}