Skip to content

feat(#33 follow-up): Hook addNotification into streaming errors, MCP failures, export, and updater #40

@andrewchumchal

Description

@andrewchumchal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions