Right now, when an agent is performing tasks like editing code, running tests, and making modifications, it doesn’t understand that the Python process needs to be restarted for changes to take effect.
Could you consider adding a feature where the agent (or LLM) becomes aware of open and running terminal sessions, and is able to kill the relevant process before rerunning or testing the code?
For example, when I’m working on a Python project and ask the agent to run API tests using cURL requests, it correctly identifies and fixes bugs based on the error responses. However, it doesn’t stop the currently running Python process. Instead, it just runs the test again, gets the same error (because the old process is still running), and starts making unnecessary code changes.
It would be very helpful if agents could be informed about which terminals or processes are actively running especially in development setups where multiple terminal sessions might be used for different services or workers. This way, the agent could intelligently kill the correct process and restart it after each code modification.