fix: auto-close finish screen after 30s so background watcher fires
This commit is contained in:
5
loop.sh
5
loop.sh
@@ -173,8 +173,9 @@ finish() {
|
|||||||
echo " ⚠ Some stories are blocked. Run /agent-loop:triage"
|
echo " ⚠ Some stories are blocked. Run /agent-loop:triage"
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
echo " Press Enter to close, or Ctrl+C to keep this terminal open."
|
echo " Closing in 30 seconds. Press Enter to close now, or Ctrl+C to keep open."
|
||||||
read -r 2>/dev/null || true
|
# 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"
|
exit "$exit_code"
|
||||||
}
|
}
|
||||||
LOOP_AGENT_TMPFILE=""
|
LOOP_AGENT_TMPFILE=""
|
||||||
|
|||||||
Reference in New Issue
Block a user