Currently if you use prettier (or similar) w/ formatOnSave it will run whenever the agent updates a file. This seems to confuse the agent and triggers errors such as “The string to replace was not found in the file.” which can increase tool calls substantially.
Is it possible to have the agent bypass any formatOnSave calls? Or ideally, only run formatOnSave when changes are accepted?
Alternatively, are there any cursor hooks that prettier and other addons can check to ensure it doesnt run on agent file udpates, or only when changes are accepted?