Share unavailable() so the Windows sensor logs unavailable transitions

This commit is contained in:
2026-06-02 12:33:23 -04:00
parent 0daf8c2849
commit d149736946
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func (windowsSource) Watch(ctx context.Context, onChange func(WindowSnapshot)) {
return
}
if !ok {
onChange(WindowSnapshot{Health: EvidenceHealth{Available: false, Reason: "no foreground window"}})
onChange(unavailable("no foreground window"))
return
}
onChange(WindowSnapshot{Title: title, Class: class, Health: EvidenceHealth{Available: true}})