From 8e486dfd6b3d244e103d566ae6744dca02dbe6ab Mon Sep 17 00:00:00 2001 From: mindflow-cn Date: Wed, 2 Jul 2025 09:07:48 +0800 Subject: [PATCH] Replace libtmux's deprecated methods in bash.py (#9463) Co-authored-by: jianchuanli Co-authored-by: Xingyao Wang --- openhands/runtime/utils/bash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openhands/runtime/utils/bash.py b/openhands/runtime/utils/bash.py index 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_pane logger.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 PS2 self.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