fix(ui): thread header counts only queued items; label the live dot
This commit is contained in:
@@ -84,11 +84,13 @@
|
|||||||
open ? "p-3" : "items-center p-2"
|
open ? "p-3" : "items-center p-2"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<LiveDot
|
<span title="event stream from the gateway (SSE)">
|
||||||
detail={gateway.live.detail}
|
<LiveDot
|
||||||
label={open}
|
detail={gateway.live.detail}
|
||||||
state={gateway.live.state}
|
label={open}
|
||||||
/>
|
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">
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user