From 3f5cd2c4a810168ed03094cbf1d3e51a4b62f261 Mon Sep 17 00:00:00 2001
From: Adam <2363879+adamdotdevin@users.noreply.github.com>
Date: Fri, 12 Dec 2025 06:21:18 -0600
Subject: fix(desktop): audio stuff

---
 packages/desktop/src/context/notification.tsx | 26 +-------------------------
 1 file changed, 1 insertion(+), 25 deletions(-)

(limited to 'packages/desktop/src/context/notification.tsx')

diff --git a/packages/desktop/src/context/notification.tsx b/packages/desktop/src/context/notification.tsx
index 4e334126f..744e4fdf3 100644
--- a/packages/desktop/src/context/notification.tsx
+++ b/packages/desktop/src/context/notification.tsx
@@ -25,11 +25,6 @@ type ErrorNotification = NotificationBase & {
 
 export type Notification = TurnCompleteNotification | ErrorNotification
 
-export type AudioSettings = {
-  enabled: boolean
-  volume: number
-}
-
 export const { use: useNotification, provider: NotificationProvider } = createSimpleContext({
   name: "Notification",
   init: () => {
@@ -39,10 +34,6 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
     const [store, setStore] = makePersisted(
       createStore({
         list: [] as Notification[],
-        audio: {
-          enabled: true,
-          volume: 1,
-        } as AudioSettings,
       }),
       {
         name: "notification.v1",
@@ -64,10 +55,7 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
       }
       switch (event.type) {
         case "session.idle": {
-          if (store.audio.enabled) {
-            idlePlayer.setVolume(store.audio.volume)
-            idlePlayer.play()
-          }
+          idlePlayer.play()
           const session = event.properties.sessionID
           setStore("list", store.list.length, {
             ...base,
@@ -113,18 +101,6 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
           setStore("list", (n) => n.directory === directory, "viewed", true)
         },
       },
-      audio: {
-        get settings() {
-          return store.audio
-        },
-        setEnabled(enabled: boolean) {
-          setStore("audio", "enabled", enabled)
-        },
-        setVolume(volume: number) {
-          const clamped = Math.max(0, Math.min(1, volume))
-          setStore("audio", "volume", clamped)
-        },
-      },
     }
   },
 })
-- 
cgit v1.2.3

