Gateway: per-watch notification switches, model list for new threads, and Ask before acting
This commit is contained in:
1 parent
a5222e14e8
commit
3cc7e40852
14 files changed
+472
-20
No files matched your search
@@ -14,6 +14,8 @@ export interface Push {
|
||||
subtitle?: string;
|
||||
body: string;
|
||||
category: PushCategory;
|
||||
/** True for a subagent's request, which watches can mute apart from their own threads'. */
|
||||
fromSubagent?: boolean;
|
||||
data: PushPayload;
|
||||
/** Replaces an earlier push about the same thing on the watch. */
|
||||
collapseId: string;
|
||||
@@ -99,6 +101,7 @@ export class Notifier {
|
||||
subtitle: project ? `${host.label} · ${project}` : host.label,
|
||||
body: parent ? `Subagent ${thread.title}: ${text}` : text,
|
||||
category: category(phase),
|
||||
fromSubagent: parent !== undefined,
|
||||
data: { hostId: host.id, threadId: thread.id, ...(requestId ? { requestId } : {}) },
|
||||
collapseId: `${host.id}:${thread.id}`.slice(0, 64),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user