Describe the bug
When using Overleaf Workshop with GitHub integration (opened locally), discarding local changes can unexpectedly trigger an automatic sync, which may overwrite files from the GitHub repository.
Specifically, clicking “Discard changes” on a file sometimes triggers the bottom-right sync process and causes unintended file replacements.
Expected behavior
Discarding changes should only revert the selected file locally, without triggering automatic synchronization or overwriting files from GitHub unless explicitly initiated by the user.
How To Reproduce
- Open an Overleaf project locally using Overleaf Workshop with GitHub integration enabled.
- Modify a
.tex or .bib file.
- Click “Discard changes” on the modified file.
- Observe that an automatic sync is triggered.
- In some cases, files are overwritten by the GitHub version.
Environment
- Overleaf Workshop Extension version: 0.15.6
- VS Code version: 1.107.1
- Overleaf Edition: Official
[Optional] Developer Logs
Not available at the moment.
Details
N/A

Describe the bug
When using Overleaf Workshop with GitHub integration (opened locally), discarding local changes can unexpectedly trigger an automatic sync, which may overwrite files from the GitHub repository.
Specifically, clicking “Discard changes” on a file sometimes triggers the bottom-right sync process and causes unintended file replacements.
Expected behavior
Discarding changes should only revert the selected file locally, without triggering automatic synchronization or overwriting files from GitHub unless explicitly initiated by the user.
How To Reproduce
.texor.bibfile.Environment
[Optional] Developer Logs
Not available at the moment.
Details
N/A