From b5c3f883b7370f4bf9df29d46ff68a141fb71e10 Mon Sep 17 00:00:00 2001 From: Felix Martin Date: Sun, 31 May 2026 12:54:31 -0400 Subject: [PATCH] M1: start active-window sensor wired to the controller Co-Authored-By: Claude Opus 4.8 --- cmd/antidriftd/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/antidriftd/main.go b/cmd/antidriftd/main.go index 27e7d1c..65aef82 100644 --- a/cmd/antidriftd/main.go +++ b/cmd/antidriftd/main.go @@ -3,11 +3,13 @@ package main import ( + "context" "log" "os/exec" "runtime" "time" + "antidrift/internal/evidence" "antidrift/internal/session" "antidrift/internal/store" "antidrift/internal/web" @@ -28,6 +30,9 @@ func main() { srv := web.NewServer(ctrl) srv.Init() // re-arm or expire a restored Active session + src := evidence.NewSource() + go src.Watch(context.Background(), ctrl.RecordWindow) + go openBrowser("http://" + addr) log.Printf("antidriftd listening on http://%s", addr)