π OpenHands: AI-Driven Development
(fix) Update logs after run_action (EventStreamRuntime) (#3870)
tobitegeecf4aed28b0c
diff --git a/openhands/runtime/client/runtime.py b/openhands/runtime/client/runtime.pyindex 73ce7d548d..b295ff26c6 100644--- a/openhands/runtime/client/runtime.py+++ b/openhands/runtime/client/runtime.py@@ -426,7 +426,6 @@ class EventStreamRuntime(Runtime):output = response.json()obs = observation_from_dict(output)obs._cause = action.id # type: ignore[attr-defined]- return obselse:error_message = response.textlogger.error(f'Error from server: {error_message}')@@ -437,6 +436,8 @@ class EventStreamRuntime(Runtime):except Exception as e:logger.error(f'Error during command execution: {e}')obs = ErrorObservation(f'Command execution failed: {str(e)}')+ # Refresh docker logs+ self._wait_until_alive()return obsdef run(self, action: CmdRunAction) -> Observation: