Clear stored file handle when autosave is denied#593
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIntroduces error classification logic in Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Deploying flockxr with
|
| Latest commit: |
0e269e8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://88806c7d.flockxr.pages.dev |
| Branch Preview URL: | https://codex-fix-save-prompt-behavi.flockxr.pages.dev |
…vior-on-cancel Clear stored file handle when autosave is denied
Motivation
FileSystemFileHandleafter a permission-related autosave error.Description
isFileAutosavePermissionError(error)that detects permission/abort/denied/cancel errors from the File System Access API.autoSaveToFileerror handling to callclearFileHandle()when a permission-related error is detected so autosave will stop targeting an invalid handle.Testing
npm testand linting withnpm run lint, and all checks passed.Codex Task
Summary by CodeRabbit