OpenHands
OpenHands copied to clipboard
fix(sandbox): SSH box `.execute` misalign issue
In DockerSSHBox, sometimes the previous execution observation will come out in subsequent ssh.before.decode, which causes (1) exit code reading sometime to fail, and/or (2) output of a previous command to come out in a subsequent command. This PR tries to fix it.
@rbren pxssh suppose to handles it all for us until I realized the issue 😅
Should we maybe open a bug against pexpect?
Good idea! I will start an issue.