Problem: While letting the AI generate code, it happens I want to make a direct edit to the document, then when I continue with prompts the AI will make edits to the file always removing my manual edits no matter which AI model.
Suggestion: File reads by AI will subscribe to file change events (at least in macOS, probably pooling in windows). With the next users prompt, Cursor injects a request to the AI to read the file again. So that the prompt will work on the new version of the file, not the last state the AI has in its context.
Benefit: Reduces frustration for the Dev who is not aware of this “bug” because of losing lots of work and being confused of random changes.