diff options
| author | Adam <[email protected]> | 2026-03-24 18:49:02 -0500 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-03-25 05:59:05 -0500 |
| commit | 0dbfefa08088270a000496cfe94e11b5bf3ce821 (patch) | |
| tree | 022df9271b5825e7c8e1192f240d31de79904075 /packages/app/src/context/notification.tsx | |
| parent | d1c49ba210315900b7d21a7d4926b739d8021c6e (diff) | |
| download | opencode-0dbfefa08088270a000496cfe94e11b5bf3ce821.tar.gz opencode-0dbfefa08088270a000496cfe94e11b5bf3ce821.zip | |
Reapply "fix(app): startup efficiency (#18854)"
This reverts commit a379eb38673aad097e1f178307865ec40a5ac3ea.
Diffstat (limited to 'packages/app/src/context/notification.tsx')
| -rw-r--r-- | packages/app/src/context/notification.tsx | 6 |
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 |
