π OpenHands: AI-Driven Development
Replace libtmux's deprecated methods in bash.py (#9463)
mindflow-cn8e486dfd6b3d
diff --git a/openhands/runtime/utils/bash.py b/openhands/runtime/utils/bash.pyindex 541c8cadf1..4b0a63741d 100644--- a/openhands/runtime/utils/bash.py+++ b/openhands/runtime/utils/bash.py@@ -230,7 +230,7 @@ class BashSession:)self.pane = self.window.active_panelogger.debug(f'pane: {self.pane}; history_limit: {self.session.history_limit}')- _initial_window.kill_window()+ _initial_window.kill()# Configure bash to use simple PS1 and disable PS2self.pane.send_keys(@@ -268,7 +268,7 @@ class BashSession:"""Clean up the session."""if self._closed:return- self.session.kill_session()+ self.session.kill()self._closed = True@property