Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
This commit is contained in:
parent
9000640b2e
commit
9fcfba3c17
16 changed files with 415 additions and 80 deletions
|
|
@ -34,6 +34,18 @@ class ControlModeClient:
|
|||
return False
|
||||
return expected_pid is None or result.stdout.strip() == str(expected_pid)
|
||||
|
||||
def pane_tty(self, window: str) -> str:
|
||||
result = subprocess.run(
|
||||
[*self._command(), "display-message", "-p", "-t", window, "#{pane_tty}"],
|
||||
text=True,
|
||||
capture_output=True,
|
||||
check=False,
|
||||
)
|
||||
tty_path = result.stdout.strip()
|
||||
if result.returncode != 0 or not tty_path:
|
||||
raise ControlModeError(result.stderr.strip() or f"cannot resolve pane tty: {window}")
|
||||
return tty_path
|
||||
|
||||
def start(self) -> None:
|
||||
if self.process is not None:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue