elevate: wire SessionValid to verify session existence

This commit is contained in:
Levi Neely 2026-07-29 16:30:31 +02:00
parent 563c6dce2f
commit acfc4854d4
1 changed files with 5 additions and 4 deletions

View File

@ -253,6 +253,7 @@ func runServer(sockPath string) {
PolicyPath: policyPath,
Notify: notifyFn,
Logf: func(f string, a ...any) { fmt.Printf(f+"\n", a...) },
SessionValid: func(id string) bool { return mgr.Session(id) != nil },
})
if err != nil {
fmt.Fprintf(os.Stderr, "warning: %v\n", err)