wip(desktop): progress

This commit is contained in:
Adam 2025-12-15 05:50:10 -06:00
parent d31824320e
commit c36f3b9dbe
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
6 changed files with 3 additions and 1 deletions

View file

@ -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",

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.