The open source coding agent.
TypeScript
fix: defensive audio init
Adam5eeba76bc526
diff --git a/packages/desktop/src/context/notification.tsx b/packages/desktop/src/context/notification.tsxindex d2c5bae4cc8..5ca8134485e 100644--- a/packages/desktop/src/context/notification.tsx+++ b/packages/desktop/src/context/notification.tsx@@ -68,7 +68,9 @@ export const { use: useNotification, provider: NotificationProvider } = createSiconst match = Binary.search(syncStore.session, sessionID, (s) => s.id)const isChild = match.found && syncStore.session[match.index].parentIDif (isChild) break- idlePlayer?.play()+ try {+ idlePlayer?.play()+ } catch {}setStore("list", store.list.length, {...base,type: "turn-complete",@@ -84,7 +86,9 @@ export const { use: useNotification, provider: NotificationProvider } = createSiconst isChild = match.found && syncStore.session[match.index].parentIDif (isChild) break}- errorPlayer?.play()+ try {+ errorPlayer?.play()+ } catch {}setStore("list", store.list.length, {...base,type: "error",