Skip to content

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

Merge Bugbot autofix, keeping the legacy devin key and its BeaconManaged carve-out

Claudea05bdb5a645e
diff --cc cli/beacon/cmd/token_usage.go
index 811d4f06,4505464b..fdc87e2c
--- a/cli/beacon/cmd/token_usage.go
+++ b/cli/beacon/cmd/token_usage.go
@@@ -115,16 -115,9 +115,22 @@@ func runTokenCoverage(cmd *cobra.Comman
}
// Installed runtimes come from the config scanner rather than from the log, because the
// whole question is which installed runtime is missing from the log.
+ //
+ // Shell-profile rows are skipped. The scanner lists a runtime's shell profile as one way to
+ // detect it -- it is where Copilot CLI's and Factory Droid's launch environment is
+ // configured -- but the file it looks at is the user's ~/.zshrc, which exists on nearly
+ // every machine whether or not the product does. Counting it as evidence of an install put
+ // a permanent inactive row for Copilot CLI on every endpoint that has a shell. A profile is
+ // evidence of a shell, not of a runtime.
++ //
++ // Unless Beacon put the runtime there: a profile row is only BeaconManaged when the
++ // runtime's own OTLP export is configured in it -- OTEL_TELEMETRY_ENDPOINT for Factory
++ // Droid, COPILOT_OTEL_ENABLED for Copilot CLI -- which is real evidence the runtime is set
++ // up and expected to report. Skipping those too would hide a configured Copilot CLI that
++ // stopped reporting, which is exactly the case this report exists to surface.
installed := []string{}
for _, config := range endpointinventory.Scan(endpointinventory.Options{}).Configs {
- if config.Exists && config.ConfigKind != endpointinventory.KindProfile {
+ if config.Exists && (config.ConfigKind != endpointinventory.KindProfile || config.BeaconManaged) {
installed = append(installed, config.Runtime)
}
}