Demo, all content is generated
Question

Running Windsurf and Cursor on the same project at once, files keep reverting

Open · 541 views · asked by ellie_vc · edited

I use Cascade for backend stuff and Cursor for the UI because I like the Cursor tab. I have both open on the same folder. Sometimes a file I just changed in one goes back to an older version, or one agent "fixes" what the other did a minute ago. Is this a known thing?

What I’ve tried

Closing files in one editor while working in the other. Still happens sometimes.

Comment
Do both have autosave on? felix_codes · edited

3 answers

felix_codes · edited

Yes, both editors keep their own in-memory copy of open files and their own idea of what the agent "last saw". If agent A writes a file while editor B has an unsaved or stale buffer, B can save its old version on top. Autosave makes it worse.

If you want two agents at once, give each its own folder:

git worktree add ../myapp-ui ui-work

Open Windsurf on myapp, Cursor on myapp-ui, merge the branches when done. Or simpler: one agent at a time, other editor closed.

Comment
Didn't know worktrees existed. Trying it, a bit confusing with two dev servers but no reverting so far. ellie_vc · edited
katja_s · edited

Agree with worktrees. Also turn off autosave in the editor that isn't driving at the moment (files.autoSave: off), and use a different port per dev server so you don't wonder which version you're looking at in the browser.

Comment
The port thing, yes. Spent 20 minutes 'debugging' the wrong server once. felix_codes · edited
nightshiftbuilder · edited

I run a similar setup. Rule that fixed it for me: commit before switching editors, and only one agent writes at a time. The other editor is for reading.

Comment