Skip to content

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

Fix Windows status check: use JSON-escaped path for plugin content match

Cursor Agentecb3260620e2
diff --git a/cli/beacon/internal/endpoint/hooks/cline.go b/cli/beacon/internal/endpoint/hooks/cline.go
index 5973300c..3bcd710b 100644
--- a/cli/beacon/internal/endpoint/hooks/cline.go
+++ b/cli/beacon/internal/endpoint/hooks/cline.go
@@ -85,7 +85,9 @@ func clineStatusFromRuntime(status runtimeStatus) ClineStatus {
return out
}
data, err := os.ReadFile(out.PluginPath)
- if err != nil || !strings.Contains(string(data), out.BinaryPath) || strings.Contains(string(data), "__BEACON_") {
+ jsonBinaryPath, _ := json.Marshal(out.BinaryPath)
+ escapedPath := string(jsonBinaryPath[1 : len(jsonBinaryPath)-1])
+ if err != nil || !strings.Contains(string(data), escapedPath) || strings.Contains(string(data), "__BEACON_") {
out.Installed = false
out.Message = fmt.Sprintf("Cline plugin at %s does not reference the active Beacon hook binary", out.PluginPath)
}