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