Skip to content

Local changes are sometimes overwritten by the remote Overleaf version #353

Description

@wkinglin

Describe the bug

When syncing a project with Overleaf Workshop, newer local changes are sometimes overwritten by the remote Overleaf version without an explicit conflict resolution step. This can cause recent local edits in .tex files to be lost.

Expected behavior

Local changes should not be silently overwritten during sync. If both local and remote versions of a file have changed, the extension should either safely merge the changes when possible, or clearly surface a conflict and allow the user to choose how to resolve it.

How To Reproduce

Open the same Overleaf project locally using Overleaf Workshop and also in the Overleaf web editor.
Edit a .tex file locally in VS Code.
Edit the same file remotely in the Overleaf web editor, or let the remote version update/autosave.
Trigger synchronization in Overleaf Workshop.
Observe that the local file may be overwritten by the remote version, even when the local version contains newer changes.
This issue appears intermittently, but it is more likely to occur when both local and remote changes are made within a short time window.

Environment

  • Overleaf Workshop Extension version: 0.15.7
  • VS Code version: 1.112
  • Overleaf Edition: Community

[Optional] Developer Logs

If applicable, please paste the logs inside the details section below.
Please find the logs via: Title bar "Help" > "Toggle Developer Tools" > "Console".

Details ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions