diff options
| author | Adam <[email protected]> | 2025-12-15 05:50:10 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-15 10:20:17 -0600 |
| commit | c36f3b9dbe5547576545a77679b8898c205a0c30 (patch) | |
| tree | bf56cd131b35647f7ca52ba41d5137ce71d95fab /packages/desktop/src | |
| parent | d31824320e9632cf7671210ce4d3c190a5bf1187 (diff) | |
| download | opencode-c36f3b9dbe5547576545a77679b8898c205a0c30.tar.gz opencode-c36f3b9dbe5547576545a77679b8898c205a0c30.zip | |
wip(desktop): progress
Diffstat (limited to 'packages/desktop/src')
| -rw-r--r-- | packages/desktop/src/context/notification.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/desktop/src/context/notification.tsx b/packages/desktop/src/context/notification.tsx index 744e4fdf3..c18b12796 100644 --- a/packages/desktop/src/context/notification.tsx +++ b/packages/desktop/src/context/notification.tsx @@ -5,6 +5,7 @@ import { useGlobalSDK } from "./global-sdk" import { EventSessionError } from "@opencode-ai/sdk/v2" import { makeAudioPlayer } from "@solid-primitives/audio" import idleSound from "@opencode-ai/ui/audio/staplebops-01.aac" +import errorSound from "@opencode-ai/ui/audio/error-3.aac" type NotificationBase = { directory?: string @@ -29,6 +30,7 @@ export const { use: useNotification, provider: NotificationProvider } = createSi name: "Notification", init: () => { const idlePlayer = makeAudioPlayer(idleSound) + const errorPlayer = makeAudioPlayer(errorSound) const globalSDK = useGlobalSDK() const [store, setStore] = makePersisted( @@ -65,8 +67,8 @@ export const { use: useNotification, provider: NotificationProvider } = createSi break } case "session.error": { + errorPlayer.play() const session = event.properties.sessionID ?? "global" - // errorPlayer.play() setStore("list", store.list.length, { ...base, type: "error", |
