From e3554010ddadbf27958dbf3864933594af809bd0 Mon Sep 17 00:00:00 2001 From: Sheldon Finlay Date: Fri, 27 Mar 2026 18:18:07 -0400 Subject: [PATCH] fix: auto-close finish screen after 30s so background watcher fires --- loop.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loop.sh b/loop.sh index 3847542..24c22ec 100755 --- a/loop.sh +++ b/loop.sh @@ -173,8 +173,9 @@ finish() { echo " ⚠ Some stories are blocked. Run /agent-loop:triage" echo "" fi - echo " Press Enter to close, or Ctrl+C to keep this terminal open." - read -r 2>/dev/null || true + echo " Closing in 30 seconds. Press Enter to close now, or Ctrl+C to keep open." + # Auto-close after 30s so the tmux session exits and the background watcher fires + read -r -t 30 2>/dev/null || true exit "$exit_code" } LOOP_AGENT_TMPFILE=""