From 8bba9ef2a6c7869a5ea9ff93cd7413709e6d13b1 Mon Sep 17 00:00:00 2001 From: stephen schuresko Date: Mon, 23 Mar 2026 13:09:16 -0400 Subject: [PATCH] feat: pause for user input before destroying instance Update the cleanup process in vast_start.py to require the user to press ENTER before destroying the instance. This change prevents immediate automatic termination after the subprocess ends, giving the user control over when to tear down the environment. --- vast_start.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vast_start.py b/vast_start.py index afb0379..c1a709a 100644 --- a/vast_start.py +++ b/vast_start.py @@ -247,10 +247,12 @@ def main(): except Exception as e: print(f"\nAn error occurred during instance setup: {e}") finally: - # Ask user if they want to clean up, or just do it automatically - # Based on original script, it immediately destroys the instance after the subprocess ends - print("\nCleaning up...") if instance_id: + try: + input("\nPress ENTER to destroy the instance and clean up...") + except (EOFError, KeyboardInterrupt): + pass + print("\nCleaning up...") destroy_instance(instance_id) if __name__ == "__main__":