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
End a managed install on what to do next
shukieshahcb772407b878
diff --git a/cli/beacon/cmd/endpoint_connect.go b/cli/beacon/cmd/endpoint_connect.goindex 97a23c3f..c212fe6f 100644--- a/cli/beacon/cmd/endpoint_connect.go+++ b/cli/beacon/cmd/endpoint_connect.go@@ -158,8 +158,13 @@ func connectEndpoint(cmd *cobra.Command, userMode bool, logPath string) error {fmt.Fprintf(out, "Managed privacy: %s\n", managedprivacy.Label(result.Enrollment.PrivacyMode))fmt.Fprintf(out, "Vector config: %s\n", result.VectorConfig)fmt.Fprintf(out, "Device key: %s (never printed; the Vector forwarder reads it)\n", result.SecretsFile)- fmt.Fprintf(out, "Events recorded from now on appear on %s/dashboard/telemetry. Revoke this device from %s/dashboard/endpoints.\n",- result.Enrollment.DashboardURL, result.Enrollment.DashboardURL)+ // Close on what to do next rather than on more state. Setup is finished here,+ // and this is the moment the user has the most intent and the least idea what+ // happens now. Nothing is forwarded yet: the runtime source starts at the+ // connection point, so the dashboard stays empty until an agent actually runs.+ fmt.Fprintln(out)+ fmt.Fprintln(out, "Next: run any supported agent as you normally would.")+ fmt.Fprintf(out, "Its sessions appear at %s within a minute of the activity.\n", result.Enrollment.DashboardURL)return nil}diff --git a/cli/beacon/cmd/endpoint_connect_test.go b/cli/beacon/cmd/endpoint_connect_test.goindex 74d19990..10bab013 100644--- a/cli/beacon/cmd/endpoint_connect_test.go+++ b/cli/beacon/cmd/endpoint_connect_test.go@@ -124,6 +124,27 @@ func TestConnectUsesSignedInAccountAndSelectedPrivacy(t *testing.T) {if strings.Contains(out.String(), "bcn_cli_secret") || !strings.Contains(out.String(), "Managed privacy: Metadata only") {t.Fatalf("output = %q", out.String())}++ // Setup ends on what to do next, not on more state. This is the moment the user+ // has the most intent and the least idea what happens now, and nothing is+ // forwarded yet: the runtime source starts at the connection point, so the+ // dashboard stays empty until an agent actually runs.+ text := out.String()+ for _, want := range []string{+ "Next: run any supported agent",+ "sessions appear at https://beacon.sh",+ "within a minute",+ } {+ if !strings.Contains(text, want) {+ t.Fatalf("connect should close on next steps, missing %q:\n%s", want, text)+ }+ }+ if strings.Contains(text, "/dashboard/endpoints") || strings.Contains(text, "Revoke this device") {+ t.Fatalf("the closing lines should be next steps, not device administration:\n%s", text)+ }+ if last := strings.TrimSpace(text); !strings.HasSuffix(last, "within a minute of the activity.") {+ t.Fatalf("the dashboard should be the last thing said:\n%s", text)+ }}func TestConnectRequiresSignedInAccountInUserMode(t *testing.T) {diff --git a/docs/changelog/cli.mdx b/docs/changelog/cli.mdxindex 42ff72f5..bbb53161 100644--- a/docs/changelog/cli.mdx+++ b/docs/changelog/cli.mdx@@ -13,6 +13,11 @@ Stay up to date with the latest changes to the Agent Beacon CLI.### Unreleased+- **Setup ends on what to do next** · A managed install used to close on a wall of+ paths and a sentence pairing the dashboard with a revocation link. It now ends by+ saying to run an agent as usual and that its sessions appear on the dashboard+ within a minute. Nothing is forwarded before that point, since the runtime source+ starts at the connection, so there is nothing to look at until an agent runs.- **The browser page after sign-in is a real page** · Signing in used to land onunstyled markup with a bare heading. It now carries Beacon's mark and styling, andsays the one thing that matters at that moment: return to your terminal, which is