Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Keep launchd system log paths POSIX on every build OS

Claude2dd641580c95
diff --git a/cli/beacon/internal/endpoint/service/launchd_logs.go b/cli/beacon/internal/endpoint/service/launchd_logs.go
index 174a346d..5aa23d81 100644
--- a/cli/beacon/internal/endpoint/service/launchd_logs.go
+++ b/cli/beacon/internal/endpoint/service/launchd_logs.go
@@ -3,6 +3,7 @@ package service
import (
"fmt"
"os"
+ "path"
"path/filepath"
)
@@ -45,6 +46,10 @@ func launchdLogPaths(userMode bool, label string) (stdout, stderr string, err er
if err != nil {
return "", "", err
}
+ if !userMode {
+ // launchd paths are POSIX; path.Join keeps them so when this renders on another OS.
+ return path.Join(dir, label+".out"), path.Join(dir, label+".err"), nil
+ }
return filepath.Join(dir, label+".out"), filepath.Join(dir, label+".err"), nil
}