watcher: a stop during the first scan sends no startup notification (closes #271) #279

Merged
clawbot merged 1 commits from fix/271-no-startup-notification-on-stop into next 2026-10-13 20:00:01 +02:00
1 Commits
Author SHA1 Message Date
sneak bb343bd44d watcher: a stop during the first scan sends no startup notification (closes #271)
check / check (push) Waiting to run
Run sent the startup notification right after the first scan without
checking the context. RunOnce returns as usual when shutdown cuts the
scan short, so a stop during the first scan sent "has started and
completed its initial scan" to every endpoint as the process shut down.
Run now sends it only when the context was not cancelled.

The new test cancels the context before Run starts, so the scan never
sends its lookup; a stop part way through a scan follows the same path.

Model: opus-5-5
2026-10-13 17:45:12 +00:00