feat: enable subscription connections in web and dev

This commit is contained in:
amosblomqvist
2026-10-26 03:00:40 +02:00
parent fc3673466d
commit c0c670b810
29 changed files with 838 additions and 41 deletions
+3
View File
@@ -38,6 +38,8 @@ export interface ServerEvents {
"activity-changed": Record<string, never>;
/** The session list changed (create, delete, title). */
"chats-changed": Record<string, never>;
/** Web subscription state changed. No account or credential data on the bus. */
"subscriptions-changed": Record<string, never>;
/** A chat's record changed WITHOUT a turn (the silent dismissal write).
* Same notify-then-fetch contract as the turn events: open views of
* the chat refetch and adopt the durable record. */
@@ -61,6 +63,7 @@ export const SERVER_EVENT_TYPES = [
"jobs-changed",
"activity-changed",
"chats-changed",
"subscriptions-changed",
"record-changed",
"compaction-changed",
] as const satisfies readonly ServerEventType[];