π OpenHands: AI-Driven Development
fix: update deprecated libtmux API calls (#12596)
ankit kumar59dd1da7d6b9
diff --git a/openhands/runtime/impl/local/local_runtime.py b/openhands/runtime/impl/local/local_runtime.pyindex 4f7804f705..ca55478c3e 100644--- a/openhands/runtime/impl/local/local_runtime.py+++ b/openhands/runtime/impl/local/local_runtime.py@@ -115,10 +115,10 @@ def check_dependencies(code_repo_path: str, check_browser: bool) -> None:session = server.new_session(session_name='test-session')except Exception:raise ValueError('tmux is not properly installed or available on the path.')- pane = session.attached_pane+ pane = session.active_panepane.send_keys('echo "test"')pane_output = '\n'.join(pane.cmd('capture-pane', '-p').stdout)- session.kill_session()+ session.kill()if 'test' not in pane_output:raise ValueError('libtmux is not properly installed. ' + ERROR_MESSAGE)