SSE reconnect, task switcher state/inbox/new task, stream throttle

This commit is contained in:
Ian Gulliver
2026-10-14 22:28:25 -07:00
parent 8e4c40eb5f
commit 33e682a9d5
27 changed files with 418 additions and 182 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { post, type Project } from "./api.js";
import { errorText, h, replace } from "./dom.js";
import { openTranscript } from "./panes.js";
import { currentSession, onEach, state } from "./state.js";
export function mountTasks(root: HTMLElement): () => void {
@@ -27,7 +28,7 @@ function projectBlock(project: Project): HTMLElement {
{ class: task.id === state.selectedTaskId ? "selected" : "" },
h(
"a",
{ href: `#/task/${task.id}` },
{ href: `#/task/${task.id}`, onclick: openTranscript },
h("span", { class: `dot ${sess?.state ?? "none"}`, title: sess?.state ?? "no session" }),
h("span", { class: "task-title" }, task.title),
h("span", { class: "task-state" }, sess?.state ?? "no agent"),