🙌 OpenHands: AI-Driven Development
chore: Use recommended functions (#8056)
மனோஜ்குமார் பழனிச்சாமிfa186fc43396
diff --git a/openhands/runtime/utils/bash.py b/openhands/runtime/utils/bash.pyindex 4e48697309..80b04126e0 100644--- a/openhands/runtime/utils/bash.py+++ b/openhands/runtime/utils/bash.py@@ -215,13 +215,13 @@ class BashSession:self.session.set_option('history-limit', str(self.HISTORY_LIMIT), _global=True)self.session.history_limit = self.HISTORY_LIMIT# We need to create a new pane because the initial pane's history limit is (default) 2000- _initial_window = self.session.attached_window+ _initial_window = self.session.active_windowself.window = self.session.new_window(window_name='bash',window_shell=window_command,start_directory=self.work_dir, # This parameter is supported by libtmux)- self.pane = self.window.attached_pane+ self.pane = self.window.active_panelogger.debug(f'pane: {self.pane}; history_limit: {self.session.history_limit}')_initial_window.kill_window()