Skip to content

Desktop-notification preference: global toggle and per-thread mute #87

Closed

Description

@currentbits

notifyThreadComplete (electron/main.js:163-181) fires for every settling thread whenever the window is unfocused, with no way to mute it — the settings shape (electron/store.js:683-704) and SettingsModal sections (Budget / Sidebar / Threads / Memory / Build) have no notification toggle.

With orchestrations fanning out, every worker completion pings the user. Add a global notifications toggle in Settings, and ideally a per-thread mute (e.g. on the thread's context menu) for noisy fan-outs.

Found during the 2026-08-16 improvement audit.

Activity

  1. added
    enhancement
    plan:todo
    plan:done
    and removed
    plan:todo
    on Aug 16, 2026
  2. currentbits commented on Aug 16, 2026

    @currentbits
    OwnerAuthor

    Done on coder/desktop-notification-preference-global-t-3930c6.

    • Global: settings.notifications + a checkbox in Settings ▸ Threads. Only an explicit false on disk turns it off, so upgrades keep notifying.
    • Per-thread: thread.muted, toggled from the sidebar row's snooze menu (threads:setMuted). Notification-only — no visibility, run-state or settle effect, never bumps updatedAt.

    Both are checked at the single notifyThreadComplete call site in electron/main.js, after shouldNotify so the settings re-normalize stays off the per-chunk path.

    Checks: electron/test/notify-mute.test.js (normalize default, setSettings validation, setMuted round-trip + reload) and a menu round-trip in test/pinSnooze.test.tsx. Renderer suite 687/687, typecheck clean; electron suite unchanged vs baseline (the 142 failures are pre-existing here, provider CLIs missing).

    Not done: auto-muting orchestration workers at spawn time. With this, a noisy fan-out still needs the global toggle or one mute per worker — worth a follow-up if that turns out to be the common case.

  3. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 25: mute and the unfocused-app path are done. The remaining hole is focused window, wrong thread. `shouldNotify` bails if any window is focused, so a worker waiting on permission is silent. Filed #491 — in-app toast (and optional dock badge) for other-thread waiting/failed. Honor this ticket's mute flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions