[Feat] 本地启动支持一键清除失效项#557
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a feature to clean up invalid local shortcuts by checking if their target paths exist and deleting them if they do not. It adds a 'Delete invalid items' button to the UI, exposes a new deleteWhenNotExist IPC channel, and implements the deletion logic in the main process. The review feedback highlights several critical improvements: avoiding synchronous file checks (existsSync) in the Electron main process to prevent UI blocking, adding a confirmation dialog for safety before bulk deletion, ensuring robust state management using a finally block, and cleaning up redundant imports and syntax inconsistencies in the preload script.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
#478 中的失效项检测