mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
Every ruflo-core plugin hook runs the CLI, and the CLI auto-starts a daemon whenever none is alive, so a daemon the user stopped came back within minutes. daemon stop now writes .claude-flow/daemon.stopped (only in a Ruflo project or an existing .claude-flow/; stop --all marks every stamped workspace). ensureDaemonRunning declines to spawn while the marker exists. An explicit daemon start clears it. The start that auto-start spawns carries RUFLO_DAEMON_AUTOSTARTED=1: it never clears the marker and re-checks it, so a stop that lands after the hook checked still wins. Co-authored-by: r <r@x>