agent-orchestrator/packages
i-trytoohard 9bfd7656bb
fix(cli): refuse to spawn when daemon is not polling the project (#1460)
* fix(cli): refuse to spawn when daemon is not polling the project

`ao spawn` and `ao batch-spawn` used to print a stderr warning and then
create the session anyway when the running AO daemon did not include the
target project in its polling set (or when no daemon was running at all).
The resulting sessions got full worktrees and tmux panes but no
lifecycle reactions — CI-failure routing, review comments, revive
transitions, and the event log were silently dead.

Promote the warning to a hard error so sessions are never created in a
state where the lifecycle manager won't run for them. The error message
tells the user which `ao start` invocation will fix it.

Closes #1455

* test(cli): cover batch-spawn daemon-polling enforcement

`spawn` and `batch-spawn` share the `ensureAOPollingProject` helper, but
only `spawn` had tests for the new fail-fast behavior. Add matching
tests for `batch-spawn` so a future refactor that breaks its guard is
caught.

---------

Co-authored-by: Prateek <karnalprateek@gmail.com>
2026-05-08 18:13:42 +05:30
..
ao chore: release 0.6.0 (#1723) 2026-05-08 02:37:44 +05:30
cli fix(cli): refuse to spawn when daemon is not polling the project (#1460) 2026-05-08 18:13:42 +05:30
core fix(core): deliver prompt inline via positional arg, remove post-launch polling (#1583) 2026-05-08 17:44:10 +05:30
integration-tests fix(core): deliver prompt inline via positional arg, remove post-launch polling (#1583) 2026-05-08 17:44:10 +05:30
plugins fix(core): deliver prompt inline via positional arg, remove post-launch polling (#1583) 2026-05-08 17:44:10 +05:30
web chore: release 0.6.0 (#1723) 2026-05-08 02:37:44 +05:30