Repository navigation
Desktop notifications: global toggle in Settings and per-thread mute - #114
Merged
currentbits merged 1 commit intoAug 16, 2026
Merged
Conversation
notifyThreadComplete fired for every settling thread with no way to quiet it, so a fan-out pinged once per worker. Two switches, checked at the single notify call site in main.js (after shouldNotify, so the settings re-normalize stays off the per-chunk path): - settings.notifications — global, Settings ▸ Threads. Only an explicit false on disk turns it off, so upgrades keep notifying. - thread.muted — per thread, from the sidebar's snooze menu. Notification only: no visibility, run-state or settle effect, never bumps updatedAt. Co-Authored-By: Claude Opus 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/desktop-notification-preference-global-t-3930c6
branch
October 3, 2026 16:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #87.
notifyThreadCompletefired for every settling thread whenever the window was unfocused, with no way to quiet it — so an orchestration fanning out to N workers pinged the user N times.What changed
Global toggle —
settings.notifications, with a checkbox in Settings ▸ Threads. Only an explicitfalseon disk turns notifications off, so existing installs keep notifying after the upgrade. Validated as a boolean insetSettings, healed innormalizeSettings.Per-thread mute —
thread.muted, toggled from the sidebar row's existing snooze menu (threads:setMuted→services.setMuted). It is notification-only: it does not hide the thread, pause it, or change settle classification, and it never bumpsupdatedAt. The menu label follows the thread's own flag, so a muted thread always offers the way back out.Both checks live at the single
notifyThreadCompletecall site inelectron/main.js, deliberately placed aftershouldNotify: that branch runs on every stream chunk andgetSettings()re-normalizes the whole settings blob, so the cheap transition check gates the expensive one.Reused the snooze menu rather than adding a context menu or another row icon — mute is the same "quiet this thread" gesture and the popup was already there.
Checks
electron/test/notify-mute.test.js— normalize defaults (junk on disk must not silence the app),setSettingsvalidation,setMutedround-trip through a store reload, unknown-thread rejection.test/pinSnooze.test.tsx— menu item round-trips throughuseCoder+ fakeCoder and its label flips.tsc --noEmitclean. Electron suite 616 pass / 142 fail against a 613/145 baseline on this branch point — same pre-existing failures (provider CLIs unavailable in this environment), plus the three new tests.Not included
Auto-muting orchestration workers at spawn time. 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.