The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
fix fallback behaviour
Justin D'Souza59fe0235a372
diff --git a/cli/beacon/README.md b/cli/beacon/README.mdindex a2081f5f..9181e482 100644--- a/cli/beacon/README.md+++ b/cli/beacon/README.md@@ -32,7 +32,6 @@ deployment paths.With no `--harness` flag, install and repair discover local runtimes and configureevery integration Beacon can safely install. Pass an exact comma-separated listto override discovery, or `--harness all` to force every installable integration.-If no installable runtime is detected, Beacon falls back to Claude Code and Codex.Add optional Splunk HEC forwarding during install or repair:diff --git a/cli/beacon/cmd/endpoint_install.go b/cli/beacon/cmd/endpoint_install.goindex 0c76c179..4ac6baea 100644--- a/cli/beacon/cmd/endpoint_install.go+++ b/cli/beacon/cmd/endpoint_install.go@@ -312,17 +312,17 @@ func reportEndpointTargetSelection(cmd *cobra.Command, selection endpointTargetSreturn}out := cmd.OutOrStdout()- if selection.Fallback {- fmt.Fprintln(out, "No automatically installable runtimes were detected; using the Claude Code and Codex CLI fallback.")- } else {- var targets []string- seen := map[string]bool{}- for _, target := range append(append([]string(nil), selection.OTLP...), selection.Hooks...) {- if !seen[target] {- targets = append(targets, target)- seen[target] = true- }+ var targets []string+ seen := map[string]bool{}+ for _, target := range append(append([]string(nil), selection.OTLP...), selection.Hooks...) {+ if !seen[target] {+ targets = append(targets, target)+ seen[target] = true}+ }+ if len(targets) == 0 {+ fmt.Fprintln(out, "No automatically installable runtimes were detected; no runtime integrations will be configured.")+ } else {fmt.Fprintf(out, "Automatically configuring detected runtimes: %s\n", strings.Join(targets, ", "))}for _, skipped := range selection.Skipped {diff --git a/cli/beacon/cmd/endpoint_targets.go b/cli/beacon/cmd/endpoint_targets.goindex dd027ac1..d9327050 100644--- a/cli/beacon/cmd/endpoint_targets.go+++ b/cli/beacon/cmd/endpoint_targets.go@@ -37,7 +37,6 @@ type endpointTargetSelection struct {Hooks []stringSkipped []skippedEndpointTargetAutomatic bool- Fallback bool}// autoEndpointTargets maps discovery's canonical event names onto endpoint install's target@@ -353,13 +352,6 @@ func resolveEndpointTargets(value string, discovered []harness.Harness) (endpoin}}}- if len(selection.OTLP) == 0 && len(selection.Hooks) == 0 {- // Preserve the historical unattended-install behavior when discovery has no useful- // user environment (for example a package postinstall running as root).- selection.OTLP = []string{"claude", "codex"}- selection.Hooks = []string{"claude", "codex"}- selection.Fallback = true- }return selection, nildefault:panic("unreachable endpoint harness selection")diff --git a/cli/beacon/cmd/endpoint_test.go b/cli/beacon/cmd/endpoint_test.goindex c5303ad1..b5e49ac9 100644--- a/cli/beacon/cmd/endpoint_test.go+++ b/cli/beacon/cmd/endpoint_test.go@@ -112,26 +112,23 @@ func TestResolveEndpointTargetsAutoInstallsEveryDetectedInstallableRuntime(t *teif len(selection.Skipped) != 1 || selection.Skipped[0].Name != "fx" {t.Fatalf("auto skipped targets = %#v, want fx", selection.Skipped)}- if selection.Fallback {- t.Fatal("auto selection unexpectedly used fallback")- }}-func TestResolveEndpointTargetsAutoFallsBackWhenNothingInstallableDetected(t *testing.T) {+func TestResolveEndpointTargetsAutoSelectsNothingWhenNoInstallableRuntimeDetected(t *testing.T) {selection, err := resolveEndpointTargets("auto", []harness.Harness{{Name: "vercel_fx", DisplayName: "fx", Detected: true},})if err != nil {t.Fatal(err)}- if got, want := strings.Join(selection.OTLP, ","), "claude,codex"; got != want {- t.Fatalf("fallback OTLP targets = %q, want %q", got, want)+ if len(selection.OTLP) != 0 {+ t.Fatalf("auto OTLP targets = %#v, want none", selection.OTLP)}- if got, want := strings.Join(selection.Hooks, ","), "claude,codex"; got != want {- t.Fatalf("fallback hook targets = %q, want %q", got, want)+ if len(selection.Hooks) != 0 {+ t.Fatalf("auto hook targets = %#v, want none", selection.Hooks)}- if !selection.Fallback {- t.Fatal("auto selection did not mark fallback")+ if len(selection.Skipped) != 1 || selection.Skipped[0].Name != "fx" {+ t.Fatalf("auto skipped targets = %#v, want fx", selection.Skipped)}}diff --git a/docs/cli/endpoint-install.mdx b/docs/cli/endpoint-install.mdxindex 330d0933..40e27145 100644--- a/docs/cli/endpoint-install.mdx+++ b/docs/cli/endpoint-install.mdx@@ -13,7 +13,7 @@ The service is a launchd job on macOS and a systemd unit on Linux. Where neitherbeacon endpoint install```-By default, Beacon discovers the runtimes installed for the invoking user and configures every integration it can safely install. This includes OTLP settings and supported hooks, plugins, or extensions; VS Code receives both its OTLP and hook configuration. An explicit `--harness` list disables automatic selection. If discovery finds no automatically installable runtime, Beacon preserves the unattended-install fallback by configuring Claude Code and Codex CLI.+By default, Beacon discovers the runtimes installed for the invoking user and configures every integration it can safely install. This includes OTLP settings and supported hooks, plugins, or extensions; VS Code receives both its OTLP and hook configuration. An explicit `--harness` list disables automatic selection. If discovery finds no automatically installable runtime, Beacon installs the collector without changing any runtime configuration.Discovery can also find runtimes whose collection path cannot be enabled safely by a machine-wide default. Beacon reports these without treating them as install failures: GitHub Copilot CLI needs launch-environment settings, Claude Cowork needs admin configuration, poll-only fx needs `beacon endpoint fx sync`, and OpenHands CLI/GUI coverage requires project-level hooks installed from inside each repository. Factory Droid's hooks are installed automatically when Droid is detected, while its separate OTLP endpoint remains launch-environment managed.