SSE reconnect, task switcher state/inbox/new task, stream throttle
This commit is contained in:
+2
-1
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user