Repository navigation
Fix project corruption on save error - #12296
Conversation
Unsuccessful save was updating internal state, which resulted in data loss on project close
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughDuring project load, the saved-state snapshot is now updated before the code removes overlapping clip play regions. During project save, the snapshot is updated only when Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🔵 Low · up to A failed save can still leave unsaved master effects eligible for serialization when the project closes. This is a bounded failure-path risk to address or accept before merging. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Warning Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped 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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Preserve the master-effect snapshot when SaveProject fails. · au3project.cpp:205
src/au3wrap/internal/au3project.cpp:205
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winPreserve the master-effect snapshot when
SaveProjectfails.
save()updatesSavedMasterEffectListbeforeProjectFileIO::SaveProject. If the save fails, the updated copy remains in memory. The close path can then serialize that copy throughCompactorUpdateSaved, causing unsaved master effects to be written. Restore the previous copy on failure, or serialize from a separate copy without changing the saved snapshot.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Advanced
Run ID: 2661a176-35d0-430c-a52d-10fb9963ddc9
📒 Files selected for processing (1)
src/au3wrap/internal/au3project.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Fix project corruption on save error
Resolves: Unsuccessful save was updating internal state, which resulted in data loss on project close
Recommended: