mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-03 18:23:51 +08:00
- Replaced asynchronous file operations with a synchronous approach to ensure file handles are properly closed before replacement. - Introduced a new `write_once` function for atomic file writing, including directory creation, temporary file writing, and target file replacement. - Enhanced error handling to retry on transient errors specific to Windows, improving robustness during file operations. - Updated the `clear` method in `PluginRegistry` to ensure OAuth sessions are only removed after successful persistence of resources.