From 6c068358e439a3b97dd82bc8aef1f67187c3d2ee Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sat, 4 Jul 2026 14:29:34 -0700 Subject: [PATCH] fix(vision): stdin=DEVNULL on rasterizer subprocess (stdin guard) The salvaged #52688 rasterizer shell-out predates the TUI subprocess stdin= guard; a rasterizer that prompts on stdin could hang the tool under prompt_toolkit. DEVNULL it. --- tools/vision_tools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/vision_tools.py b/tools/vision_tools.py index b5e1a16119f..9cdfe865b10 100644 --- a/tools/vision_tools.py +++ b/tools/vision_tools.py @@ -289,7 +289,10 @@ def _rasterize_svg_to_png(svg_path: Path, out_path: Path) -> bool: ): if _shutil.which(cmd[0]): try: - _subprocess.run(cmd, check=True, capture_output=True, timeout=30) + _subprocess.run( + cmd, check=True, capture_output=True, timeout=30, + stdin=_subprocess.DEVNULL, + ) if out_path.exists() and out_path.stat().st_size > 0: return True except Exception: