fix: update deprecated libtmux API calls (#12596)

Co-authored-by: ANKIT <ankit@ANKITs-MacBook-Air.local>
This commit is contained in:
ankit kumar
2026-03-17 03:51:05 +05:30
committed by GitHub
parent 934fbe93c2
commit 59dd1da7d6

View File

@@ -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_pane
pane.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)