summaryrefslogtreecommitdiff
path: root/src/preload
diff options
context:
space:
mode:
authorhaoyuren <13851610112@163.com>2026-03-15 15:02:15 -0500
committerhaoyuren <13851610112@163.com>2026-03-15 15:02:15 -0500
commit72b38fed1d75fcb3420beeeeefd3dc2fc442e64b (patch)
tree5dfc2bdaf49f9ac99d2789c7ee7d75defdd95e28 /src/preload
parentd1cde0fa291046b3e9768a4efd2f6c62b20748d6 (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 'src/preload')
0 files changed, 0 insertions, 0 deletions