The notification system (#33) is wired up (AppNotification type, addNotification/markRead/markAllRead/clearNotifications in uiStore, bell popover in StatusBar) but nothing calls addNotification yet.
Places to hook in
Streaming errors
- When an AI request fails, currently shows inline in the chat only
- Should also fire
addNotification({ title: 'Request failed', message: error.message, variant: 'error' })
- Location:
useChat hook (error handler)
MCP tool errors
- When a tool call fails or times out
- Should fire
addNotification({ title: 'Tool call failed', message: \${toolName}: ${error}`, variant: 'warning' })`
- Location: MCP client error paths +
useOnToolCall
Export / save
- After a successful conversation export
addNotification({ title: 'Exported', message: 'Conversation saved to file', variant: 'success' })
- Location:
lib/export.ts or wherever export is triggered
Auto-updater
- When the Cloudflare worker returns a new version
addNotification({ title: 'Update available', message: \v${latestVersion} is ready`, variant: 'info' })`
- Location:
ipc.ts updater handler → renderer via IPC → addNotification
Notes
The notification system (#33) is wired up (
AppNotificationtype,addNotification/markRead/markAllRead/clearNotificationsinuiStore, bell popover inStatusBar) but nothing callsaddNotificationyet.Places to hook in
Streaming errors
addNotification({ title: 'Request failed', message: error.message, variant: 'error' })useChathook (error handler)MCP tool errors
addNotification({ title: 'Tool call failed', message: \${toolName}: ${error}`, variant: 'warning' })`useOnToolCallExport / save
addNotification({ title: 'Exported', message: 'Conversation saved to file', variant: 'success' })lib/export.tsor wherever export is triggeredAuto-updater
addNotification({ title: 'Update available', message: \v${latestVersion} is ready`, variant: 'info' })`ipc.tsupdater handler → renderer via IPC →addNotificationNotes
sourcefield should be set to'app'for all built-in callers