Stream each task's transcript over its own SSE; keep session note order

This commit is contained in:
Ian Gulliver
2026-10-14 23:53:17 -07:00
parent eabfc10c8d
commit 2b4d92e7d5
18 changed files with 304 additions and 191 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ function route() {
const match = /^#\/task\/(\w+)$/.exec(location.hash);
const taskId = match?.[1];
if (taskId !== state.selectedTaskId) {
void selectTask(taskId);
selectTask(taskId);
}
}
async function main() {
@@ -54,7 +54,7 @@ async function main() {
}, { capture: true });
const status = await get("/api/admin/status");
await Promise.all([loadMe(), loadProjects(), loadInbox()]);
subscribe(status.last_event_seq, handleEvent, (connected) => {
subscribe(status.last_event_seq, undefined, handleEvent, (connected) => {
state.connected = connected;
notify("connection");
});