| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Electron 42 can dispatch a single Windows toast inline reply more than once (WinRT and COM activation paths both fire after electron/electron#51286, and re-showing a notification instance registers additional toast handlers). Each duplicated 'reply' event reached the webapp and sent the message twice. Guard NOTIFICATIONS_NOTIFICATION_REPLIED dispatch with a per-notification replied set, re-armed on each 'show' so replies from a re-displayed notification still work. Deliberately not cleared on 'close': the duplicate event can arrive after the toast dismisses, so clearing there would reopen the race.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: baaef9b1-b9df-4b54-9d90-c12b2483c318 📥 CommitsReviewing files that changed from the base of the PR and between 1061ba1 and 7d304b9. 📒 Files selected for processing (2)
📄 CodeRabbit inference engine (AGENTS.md)
Files:
📄 CodeRabbit inference engine (AGENTS.md)
Files:
📄 CodeRabbit inference engine (AGENTS.md)
Files:
📄 CodeRabbit inference engine (CLAUDE.md)
Files:
📄 CodeRabbit inference engine (CLAUDE.md)
Files:
src/notifications/main.ts (1)src/notifications/main/main.spec.ts (1) WalkthroughNotification reply handling now suppresses duplicate reply events per notification id, resets that tracking when the notification is shown, and adds mocked main-process regression tests for both behaviors. ChangesNotification reply deduplication
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: type: bug 🚥 Pre-merge checks | ✅ 5 ✅ Passed checks (5 passed)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ ShareComment @coderabbitai help to get the list of available commands. |
Sorry, something went wrong.
Linux installer download |
Sorry, something went wrong.
Windows installer download |
Sorry, something went wrong.
macOS installer download |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What
Replying to a desktop notification on Windows sent the message twice.
Why
The 4.15.x line ships Electron 42.5.0. Before Electron 42, inline-reply events from Windows toasts were not dispatched at all on non-MSIX installs; electron/electron#51286 (landed in 42) enabled them, but a single user reply can now be delivered more than once to the app:
Each duplicated 'reply' event flowed main → preload → webapp (that chain is strictly 1:1) and the webapp sent the message once per event.
How
Idempotency guard at the source boundary in the main process: a repliedNotifications set keyed by notification id.
Cross-platform by design — a second reply within one show-cycle is never a legitimate user action (submitting a reply dismisses the toast on every OS).
Testing
Release
Targets hotfix/4.15.6 (branched from the 4.15.5 tag) for a 4.15.6 patch release. Should also be cherry-picked to master (applies clean; src/notifications/main.ts is identical there).
Summary by CodeRabbit
Bug Fixes
Tests