fix(integration): restore stdin=DEVNULL on computer_use subprocess calls dropped in simplification

This commit is contained in:
Teknium
2026-09-02 17:48:26 -07:00
parent d52d8f988f
commit 06fb390212
8 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -49,7 +49,8 @@ def _validate_cua_driver_app_signature(app_path: str) -> None:
if not codesign:
raise RuntimeError("codesign is required to verify CuaDriver.app before launching it.")
try:
proc = subprocess.run([codesign, "-dv", app_path], capture_output=True, text=True, timeout=15)
proc = subprocess.run([codesign, "-dv", app_path], capture_output=True, text=True, timeout=15,
stdin=subprocess.DEVNULL)
except (OSError, subprocess.TimeoutExpired) as exc:
raise RuntimeError(f"could not verify CuaDriver.app signature: {exc}") from exc
if proc.returncode != 0:

View File

@@ -44,7 +44,7 @@ class HealthReportUnavailable(RuntimeError):
def _run_cli(binary: str, *args: str, timeout: float) -> subprocess.CompletedProcess:
"""Run ``<binary> args`` with UTF-8 capture + sanitized env (raises on failure)."""
return subprocess.run([binary, *args], capture_output=True, text=True, encoding="utf-8",
errors="replace", timeout=timeout, env=_sanitized_cua_env())
errors="replace", timeout=timeout, env=_sanitized_cua_env(), stdin=subprocess.DEVNULL)
def _combined_output(completed: subprocess.CompletedProcess) -> str:
return ((completed.stdout or "") + (completed.stderr or "")).strip()