diff options
| author | Adam <[email protected]> | 2026-02-12 15:03:02 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-02-12 15:03:05 -0600 |
| commit | 4e0f509e7b7d84395a541bdfa658f6c98f588221 (patch) | |
| tree | 45912ad3c9b0d9cc532fa4d72fe20938a1273090 /packages/app/src/context/notification.tsx | |
| parent | ff3b174c423d89b39ee8154863840e48c8aac371 (diff) | |
| download | opencode-4e0f509e7b7d84395a541bdfa658f6c98f588221.tar.gz opencode-4e0f509e7b7d84395a541bdfa658f6c98f588221.zip | |
feat(app): option to turn off sound effects
Diffstat (limited to 'packages/app/src/context/notification.tsx')
| -rw-r--r-- | packages/app/src/context/notification.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/app/src/context/notification.tsx b/packages/app/src/context/notification.tsx index bf880d115..04bc2fdaa 100644 --- a/packages/app/src/context/notification.tsx +++ b/packages/app/src/context/notification.tsx @@ -233,7 +233,9 @@ export const { use: useNotification, provider: NotificationProvider } = createSi if (!session) return if (session.parentID) return - playSound(soundSrc(settings.sounds.agent())) + if (settings.sounds.agentEnabled()) { + playSound(soundSrc(settings.sounds.agent())) + } append({ directory, @@ -260,7 +262,9 @@ export const { use: useNotification, provider: NotificationProvider } = createSi if (meta.disposed) return if (session?.parentID) return - playSound(soundSrc(settings.sounds.errors())) + if (settings.sounds.errorsEnabled()) { + playSound(soundSrc(settings.sounds.errors())) + } const error = "error" in event.properties ? event.properties.error : undefined append({ |
