I am finding that manual changes to files are not detected by the agent, and the agent reverts changes on subsequent edits. What is the proper way to handle manual edits, so the agent can see them?
My current process is:
I ask the agent for changes.
I review the changes and I make manual changes BEFORE accepting the agent’s changes.
Once everything looks good then I accept the changes.
Subsequent agent edits revert the changes.
I have also made changes BEFORE asking the agent for edits and those changes are reverted.
Hi, the changes you make directly are not part of the chat session, so agent doesnt know them usually. My usual aproach for now is to tell the AI model in Chat that i have edited the files so it has to read them fresh.
Thanks, @T1000. That is what I have been doing, but it is annoying. I do wonder what this feature is in 0.45.X:
Agent sees recent changes: The agent can use a tool to see your recent changes. It also sees changes made between user messages.
Hi, the changes you make directly are not part of the chat session, so agent doesnt know them usually. My usual aproach for now is to tell the AI model in Chat that i have edited the files so it has to read them fresh.
Right, that sounds like what we talk about, but in recent versions it didnt behave like that for me. However there were large changes to Cursor in the meantime. Will try on my side to see if I can coax AI to try that.