OpenHands
OpenHands copied to clipboard
Respect `timeout` in docker sandbox
Describe the bug
Sometimes the agent tries to run commands like npm run start in the foreground. This just stalls out and everything hangs.
Steps to Reproduce
python opendevin/sandbox/sandbox.pyto start a sandbox- run
while true; do echo "." && sleep 1; donein the prompt
Expected behavior
It quits after 120s (should we pick a different timeout? npm install can take a while...)
Actual behavior It hangs