From 0e431705d05bc30fa7690df65e793e14f4b80e19 Mon Sep 17 00:00:00 2001 From: Alex Netsch Date: Wed, 1 Oct 2025 17:44:52 +0100 Subject: [PATCH] Fix clear text watchkill phrase (#907) --- crates/executors/src/executors/hooks/confirm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/executors/src/executors/hooks/confirm.py b/crates/executors/src/executors/hooks/confirm.py index 1fac2ca2..af611f78 100755 --- a/crates/executors/src/executors/hooks/confirm.py +++ b/crates/executors/src/executors/hooks/confirm.py @@ -149,8 +149,9 @@ def main(): reason = result.get("reason") json_error(reason) elif status == "timed_out": + # concat to avoid triggering the watchkill script json_error( - f"Approval request timed out after {args.timeout_seconds} seconds" + "Approval request" + f" timed out after {args.timeout_seconds} seconds" ) elif status == "pending": time.sleep(args.poll_interval) @@ -158,7 +159,8 @@ def main(): else: json_error(f"Unknown approval status: {status}") - json_error(f"Approval request timed out after {args.timeout_seconds} seconds") + # concat to avoid triggering the watchkill script + json_error("Approval request"+ f" timed out after {args.timeout_seconds} seconds") if __name__ == "__main__":