diff options
| author | haoyuren <13851610112@163.com> | 2026-03-15 15:02:15 -0500 |
|---|---|---|
| committer | haoyuren <13851610112@163.com> | 2026-03-15 15:02:15 -0500 |
| commit | 72b38fed1d75fcb3420beeeeefd3dc2fc442e64b (patch) | |
| tree | 5dfc2bdaf49f9ac99d2789c7ee7d75defdd95e28 /package-lock.json | |
| parent | d1cde0fa291046b3e9768a4efd2f6c62b20748d6 (diff) | |
Fix sync race condition: external edits overwritten by remote ops
When Claude Code writes to disk, a debounce timer is set. If a remote
Overleaf op arrives during the debounce, onEditorContentChanged would
write the remote content back to disk, overwriting Claude Code's edit.
Fix: skip disk write and lastKnownContent update in onEditorContentChanged
when a debounce is pending (external disk change waiting to be processed).
Also increase writesInProgress guard to 800ms to exceed chokidar's 500ms
polling interval.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'package-lock.json')
0 files changed, 0 insertions, 0 deletions
