Hello, <https://github.com/All-Hands-AI/OpenHands...
# feedback
a
Hello, https://github.com/All-Hands-AI/OpenHands/issues/11160 I noted an issue with the evaluations using OpenHands whereby the agent produces a false negative (golden patch applied successfully, yet never finishes) as a result of import caching. I wanted to get some feedback on how important this issue is to the team, and if granting the agent logic or examples to reset the cache would not violate any guiding principles about what the agent should be allowed to modify. In the example trajectories linked in the issue, 26 failures were identified as having applied the golden patch, and 24 of those imported and executed a module for testing purposes that was later modified by the golden patch.
l
Interesting, @chilly-france-44439 we recently introduced a terminal reset to the agent sdk, but I don’t think we added reset for the ipython notebook did we?
c
nope , actually we decided to remove the IPython in V1 for simplicty, and because nowadays agent can just do
uv run <EOF
to simulate stuff similar to ipython
l
Okay so basically it sounds like this will be a non-issue then
a
Ah I see, so the execution runtime now by default starts a new Python process for every executed file? And this can be contravened by explicitly passing a
uv run
bash file that executes each file on the same runtime?
c
not really - we just delete ipython as a tool, and when agent want to run python, they can use shell to directly
python somefile.py
a
By default, doesn't this start a new Python process; i.e., no imports are cached? My understanding of the issue was that when the runtime manager receives the command
python3 /workspace/reproduce.py
from the agent, it transforms it into a
%run /workspace/reproduce.py
or some equivalent command+environment to be executed within the same Python process. If this was never the case, I am not sure why these false negatives were occurring. The agent clearly applied the patch, but the test file never reflected these changes.