summaryrefslogtreecommitdiffhomepage
path: root/packages/api/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/api/src/index.ts')
-rw-r--r--packages/api/src/index.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts
index 6ac6bca..a05f800 100644
--- a/packages/api/src/index.ts
+++ b/packages/api/src/index.ts
@@ -13,12 +13,8 @@ app.get(
return {
onOpen(_event, ws) {
- // Send current status immediately
- ws.send(JSON.stringify({ type: "status", status: agentManager.getStatus() }));
-
- // Send current task list state
- const tasks = agentManager.getTaskList().getTasks();
- ws.send(JSON.stringify({ type: "task-list-update", tasks }));
+ // Send current statuses immediately
+ ws.send(JSON.stringify({ type: "statuses", statuses: agentManager.getAllStatuses() }));
// Send any pending permission prompts
const pending = permissionManager.getPending();