Support interactive commands (#3653)

* hacky solution for interactive commands

* add more behavior

* debug

* fix continue functionality

* remove prints

* refactor a bit

* reduce test sleep

* fix python version

* fix pre-commit issue

* Regenerate integration tests

* Update openhands/runtime/client/client.py

* revert some prompt stuff

* several integration mock files regenerated

* execute_action: remove duplicate exception logging

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: tobitege <10787084+tobitege@users.noreply.github.com>
This commit is contained in:
Robert Brennan
2024-09-08 15:45:51 -04:00
committed by GitHub
parent 5100d12cea
commit ab3851593d
69 changed files with 3131 additions and 322 deletions

View File

@@ -4,6 +4,8 @@ from openhands.core.logger import openhands_logger as logger
def split_bash_commands(commands):
if not commands.strip():
return ['']
try:
parsed = bashlex.parse(commands)
except bashlex.errors.ParsingError as e: