Skip to content

The open source coding agent.

TypeScript

wip(desktop): progress

Adamc36f3b9dbe55
diff --git a/packages/desktop/src/context/notification.tsx b/packages/desktop/src/context/notification.tsx
index 744e4fdf3ff..c18b12796c3 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",
diff --git a/packages/ui/src/assets/audio/nope-01.aac b/packages/ui/src/assets/audio/nope-01.aac
new file mode 100644
index 00000000000..9fb614d0808
Binary files /dev/null and b/packages/ui/src/assets/audio/nope-01.aac differ
diff --git a/packages/ui/src/assets/audio/nope-02.aac b/packages/ui/src/assets/audio/nope-02.aac
new file mode 100644
index 00000000000..75603cc16f8
Binary files /dev/null and b/packages/ui/src/assets/audio/nope-02.aac differ
diff --git a/packages/ui/src/assets/audio/nope-03.aac b/packages/ui/src/assets/audio/nope-03.aac
new file mode 100644
index 00000000000..1fe459a16e8
Binary files /dev/null and b/packages/ui/src/assets/audio/nope-03.aac differ
diff --git a/packages/ui/src/assets/audio/nope-04.aac b/packages/ui/src/assets/audio/nope-04.aac
new file mode 100644
index 00000000000..b731a2a0790
Binary files /dev/null and b/packages/ui/src/assets/audio/nope-04.aac differ
diff --git a/packages/ui/src/assets/audio/nope-05.aac b/packages/ui/src/assets/audio/nope-05.aac
new file mode 100644
index 00000000000..4534191b6c0
Binary files /dev/null and b/packages/ui/src/assets/audio/nope-05.aac differ