Skip to content

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

Fix factory beaconManaged false positives by using shellExportValue

Cursor Agent04dcb4d142eb
diff --git a/cli/beacon/internal/endpoint/inventory/inventory.go b/cli/beacon/internal/endpoint/inventory/inventory.go
index 625699f4..945abec0 100644
--- a/cli/beacon/internal/endpoint/inventory/inventory.go
+++ b/cli/beacon/internal/endpoint/inventory/inventory.go
@@ -581,8 +581,10 @@ func beaconManaged(item candidate, data []byte) bool {
if item.runtime == "vscode" && strings.Contains(text, "github.copilot.chat.otel.otlpEndpoint") && localEndpointText(text) {
return true
}
- if item.runtime == "factory" && strings.Contains(text, "OTEL_TELEMETRY_ENDPOINT") && localEndpointText(text) {
- return true
+ if item.runtime == "factory" {
+ if ep := shellExportValue(text, "OTEL_TELEMETRY_ENDPOINT"); ep != "" && localEndpointText(ep) {
+ return true
+ }
}
if item.runtime == "copilot_cli" && copilotOTELEnabled(text) {
return true