fix(editor): use versioned dirty state and debounced cache writes, also avoid full string conversion of editor buffer #2145
Conversation
- track editor dirty state with version metadata and CodeMirror Text equality - debounce cache snapshots and flush pending writes on switch/pause/save - avoid full doc string conversion for tab switches and equality checks - use mtime metadata for external file change detection
This comment has been minimized.
This comment has been minimized.
|
Preview Release for this, has been built. |
Greptile SummaryThis PR introduces versioned dirty-state tracking (
Confidence Score: 3/5A cache-staleness regression in checkFiles means a user who accepts reload-from-disk will silently see the old content again after the next restart. The scheduleCacheWrite(0) call after a confirmed reload is defeated by the cacheVersion===docVersion guard that markLoaded just set, and the mtime shortcut then prevents re-detection on subsequent checkFiles runs. This is a data-visibility regression on the changed code path that needs a targeted fix before the change ships. src/lib/checkFiles.js and src/lib/editorFile.js (markLoaded / scheduleCacheWrite interaction) Important Files Changed
Reviews (7): Last reviewed commit: "Fixed the terminal touch-selection handl..." | Re-trigger Greptile |
Uh oh!
There was an error while loading. Please reload this page.