From 287cbb7edbac93bb2cf509f63f2d99902bab09a5 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sun, 20 Sep 2026 16:10:48 -0700 Subject: [PATCH] fix(delegation): keep encoding= on the text=True line so the line-based footgun scanner sees it --- tools/async_delegation_recovery_hints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/async_delegation_recovery_hints.py b/tools/async_delegation_recovery_hints.py index 54ed2cc765..28e901e103 100644 --- a/tools/async_delegation_recovery_hints.py +++ b/tools/async_delegation_recovery_hints.py @@ -47,8 +47,8 @@ def git_state_hint(cwd: Optional[str]) -> Optional[str]: def run(*args: str) -> Optional[str]: try: - out = subprocess.run(["git", "-C", cwd, *args], capture_output=True, text=True, - encoding="utf-8", errors="replace", + out = subprocess.run(["git", "-C", cwd, *args], capture_output=True, + text=True, encoding="utf-8", errors="replace", stdin=subprocess.DEVNULL, timeout=_GIT_TIMEOUT_S) except (OSError, subprocess.SubprocessError): return None