Manual Code Edits Lost Between Agent Prompts (两次Agent操作之间的手动插入的代码丢失)

Problem

In an Agent window, any manual code changes made between two prompts will be overwritten by the modifications from the second prompt.

For example, I interact with the Agent for the first time and it makes some changes. Then I notice part of the result is problematic, so I manually fix that portion of the code. After that, I continue to ask the Agent for further modifications. However, the changes made by the Agent in the second prompt revert my earlier manual edits.

在一个Agent窗口中,在两次提问中间所进行的代码修改;会被第二次提问的代码修改覆盖掉;

例如

  1. 我操作Agent首次提问,完成了某些修改;
  2. 此时我发现修改的结果有一部分问题,所以我手动修改了代码解决了这一部分问题;
  3. 随后我继续向Agent提问做后续的改动;而第二次Agent的修改将我先前手动修改的内容改回去了

Solution

  • Avoid overwriting manual changes made between prompts.

Priority

  • :yellow_circle: Medium - Important improvement

Additional Info

(Optional: screenshots, examples, links)