Files
ruflo/v3/@claude-flow/cli/src
rUvandr 8a033a4e63 fix(daemon): keep a stopped daemon stopped until an explicit start (#4654) (#4706)
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>
2026-11-04 17:48:40 -06:00
..
…
…