Skip to content

Open the recovery folder when the recovery sync notification is clicked - #1613

Merged
AlexisMora merged 3 commits into
mainfrom
fix/recovery-sync-notification-click
Dec 4, 2026
Merged

AlexisMora merged 3 commits into
mainfrom
fix/recovery-sync-notification-click

Conversation

@AlexisMora

@AlexisMora AlexisMora commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What is Changed / Added

The notification was not referenced after being shown, so Electron could garbage collect it along with its click listener and clicking it did nothing. Now the last notification is kept, and an error opening the folder is logged.


Why

QA found that clicking the recovery sync notification did not open the recovery folder.

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of clicks on recovery sync notifications: opening the recovery folder is now awaited, and failures are recorded for troubleshooting.
    • Added coverage for both successful folder opening and failed attempts, helping ensure notification behavior is checked consistently.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 99132049-b0c1-4e1d-a659-16d42180c4ec
Commits

Reviewing files that changed from the base of the PR and between e115e5a and cccfaf1.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The recovery sync notification now awaits the folder-open result and logs a contextual error when opening fails. Tests cover successful and failed folder opens.

Changes: Recovery sync notification

Layer / File(s) Summary
Handle notification folder opening
src/backend/features/sync/recovery-sync/services/notification/show-recovery-sync-notification.ts, src/backend/features/sync/recovery-sync/services/notification/show-recovery-sync-notification.test.ts
The notification retains its latest instance. Its click handler awaits the folder-open result and logs a contextual error when the result is nonempty. Tests cover successful and failed opens.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · previous review e115e

Clicking the recovery sync notification should now open the recovery folder, and a failure to open it is logged. An older notification may stop responding to clicks if a newer one appears, but this is no worse than before. The change is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: clicking the recovery sync notification now opens the recovery folder. The raw summary confirms the notification is retained in lastNotification and that the click han…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: clicking the recovery sync notification now opens the recovery folder. The raw summary confirms the notification is retained in lastNotification and that the click handler calls a new openRecoveryFolder helper that awaits shell.openPath and logs errors. The title matches the objectives, which describe the QA-reported bug and its fix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d02d2d6a-1088-487f-8610-0f28316076eb
Commits

Reviewing files that changed from the base of the PR and between b623226 and e115e5a.

Files selected for processing: 2

  • src/backend/features/sync/recovery-sync/services/notification/show-recovery-sync-notification.test.ts
  • src/backend/features/sync/recovery-sync/services/notification/show-recovery-sync-notification.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@AlexisMora
AlexisMora marked this pull request as ready for review December 2, 2026 12:48
@AlexisMora AlexisMora self-assigned this Dec 2, 2026
@AlexisMora AlexisMora added the bug Something isn't working label Dec 2, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@AlexisMora
AlexisMora merged commit 01a1777 into main Dec 4, 2026
7 of 8 checks passed
@AlexisMora
AlexisMora deleted the fix/recovery-sync-notification-click branch December 4, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants