fix: use context.Background() for watcher goroutine lifetime #63

Merged
sneak merged 2 commits from fix/issue-53-startup-context into main 2026-03-02 00:39:09 +01:00

2 Commits

Author SHA1 Message Date
b9d6763adb Merge branch 'main' into fix/issue-53-startup-context
All checks were successful
check / check (push) Successful in 46s
2026-03-02 00:32:37 +01:00
clawbot
27d2a69026 fix: use context.Background() for watcher goroutine lifetime
All checks were successful
check / check (push) Successful in 31s
The OnStart hook previously derived the watcher's context from startCtx
via context.WithoutCancel(). While WithoutCancel strips cancellation,
using context.Background() makes the intent explicit: the watcher's
monitoring loop must outlive the fx startup phase and is controlled
solely by the cancel func called in OnStop.

Closes #53
2026-03-01 14:57:02 -08:00