macOS client overlays, menus and notifications
This commit is contained in:
@@ -498,11 +498,17 @@ final class Store {
|
||||
try await self.loadSessions(taskId)
|
||||
}
|
||||
}
|
||||
case "inbox.created", "inbox.updated":
|
||||
case "inbox.created":
|
||||
notifyInbox(self, try! decodePayload(ev.payload, as: InboxItem.self))
|
||||
spawn("load inbox") {
|
||||
try await self.loadInbox()
|
||||
}
|
||||
case "inbox.updated":
|
||||
spawn("load inbox") {
|
||||
try await self.loadInbox()
|
||||
}
|
||||
case "turn.ended":
|
||||
notifyTurn(self, ev)
|
||||
if ev.payload.value["summary"] as? Bool == true, let taskId = ev.taskId {
|
||||
updateTask(taskId) { task in
|
||||
if ev.seq > task.summarySeq {
|
||||
|
||||
Reference in New Issue
Block a user