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:
mindflow-cn 2025-07-02 09:07:48 +08:00 committed by GitHub
parent 48ee5659c9
commit 8e486dfd6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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