You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Open the recovery folder when the recovery sync notification is clicked - #1613
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.
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.
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.
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
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
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.
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