summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/context/notification.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-03-24 09:10:24 -0500
committerGitHub <[email protected]>2026-03-24 09:10:24 -0500
commit546748a461539ca63e188ee07ab2b143c5ac2c83 (patch)
tree1eb96ef20f37aaa533efe0f467d7c15628524dd7 /packages/app/src/context/notification.tsx
parentc9c93eac00bda356f4cf2b03e011d0b19e535952 (diff)
downloadopencode-546748a461539ca63e188ee07ab2b143c5ac2c83.tar.gz
opencode-546748a461539ca63e188ee07ab2b143c5ac2c83.zip
fix(app): startup efficiency (#18854)
Diffstat (limited to 'packages/app/src/context/notification.tsx')
-rw-r--r--packages/app/src/context/notification.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/app/src/context/notification.tsx b/packages/app/src/context/notification.tsx
index 04bc2fdaa..281a1ef33 100644
--- a/packages/app/src/context/notification.tsx
+++ b/packages/app/src/context/notification.tsx
@@ -12,7 +12,7 @@ import { base64Encode } from "@opencode-ai/util/encode"
import { decode64 } from "@/utils/base64"
import { EventSessionError } from "@opencode-ai/sdk/v2"
import { Persist, persisted } from "@/utils/persist"
-import { playSound, soundSrc } from "@/utils/sound"
+import { playSoundById } from "@/utils/sound"
type NotificationBase = {
directory?: string
@@ -234,7 +234,7 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
if (session.parentID) return
if (settings.sounds.agentEnabled()) {
- playSound(soundSrc(settings.sounds.agent()))
+ void playSoundById(settings.sounds.agent())
}
append({
@@ -263,7 +263,7 @@ export const { use: useNotification, provider: NotificationProvider } = createSi
if (session?.parentID) return
if (settings.sounds.errorsEnabled()) {
- playSound(soundSrc(settings.sounds.errors()))
+ void playSoundById(settings.sounds.errors())
}
const error = "error" in event.properties ? event.properties.error : undefined