fix: auto-close finish screen after 30s so background watcher fires

This commit is contained in:
2026-03-27 18:18:07 -04:00
parent 3d86562205
commit e3554010dd

View File

@@ -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=""