From 1614cf707c159b8acafb7716becc1c2a360391ae Mon Sep 17 00:00:00 2001
From: "Ian Grant (aider)" <ian.conway.grant@gmail.com>
Date: Fri, 16 May 2025 18:51:04 -0400
Subject: [PATCH] style: update after-interrupt prompt for clarity

---
 run_on_maap.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/run_on_maap.py b/run_on_maap.py
index 20c0a23..583500e 100644
--- a/run_on_maap.py
+++ b/run_on_maap.py
@@ -236,16 +236,17 @@ def main(
             except KeyboardInterrupt:
                 return "exit"
         else:
-            print(f"\nMonitoring suspended. Press 'r' to resubmit failed jobs, "
-                  f"press Ctrl-C to exit, or wait {timeout} seconds to resume.")
+            print(f"\nMonitoring suspended. Enter 'r' to resubmit, 'x' to exit, or wait {timeout} seconds to resume.")
             try:
                 # wait for user input with timeout
                 signal.signal(signal.SIGALRM, lambda s, f: (_ for _ in ()).throw(TimeoutError()))
                 signal.alarm(timeout)
-                answer = input().strip().lower()
+                answer = input("> ").strip().lower()
                 signal.alarm(0)
                 if answer == "r":
                     return "resubmit"
+                elif answer == "x":
+                    return "exit"
                 return "resume"
             except TimeoutError:
                 return "resume"
-- 
GitLab