For example, if the currently opened project path is D:\Project, and the agent wants to check the files in the str directory in the terminal, it will execute PS D:\Project cd ./str in the project path.
As a result, the terminal’s working directory changes to PS D:\Project\str.
Then, it executes dir. However, the command is executed in a newly opened terminal. Since the opened project path is D:\Project, the new terminal’s working directory reverts to PS D:\Project, leading to the execution of dir in PS D:\Project instead of the intended PS D:\Project\str.
The cause of this bug is that the agent opens a new terminal window every time it executes a command, rather than using the existing terminal window. This issue does not occur in other IDEs with agent functionality, such as Cursor, but it persists in Qoder.