I’ve been quite frustrated by the feature that adds recent changes to the code to the agent context. Frequently, I am a situation where I ask the agent to do some task, like fix something, and it does so incorrectly. In order to avoid filling up the context window, I will often revert those changes, modify the prompt slightly, and try it again. The problem is, the Agent can see the changes that I recently reverted- and it, infuriatingly, will often go “I will restore the functionality that fixed this”, or something similar, and then redo the incorrect code that I had recently changed. This is quite annoying when I am paying for each request- the whole point of me reverting the chat, is so that the agent context would not be polluted by an incorrect approach. I cannot figure out how to disable this for the life of me.
Anyone?