mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Replace libtmux's deprecated methods in bash.py (#9463)
Co-authored-by: jianchuanli <jianchuanli@langcode.com> Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
This commit is contained in:
parent
48ee5659c9
commit
8e486dfd6b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user