Skip to content

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

fix routing

Justin D'Souzaf82ca1ca735e
diff --git a/cli/beacon/cmd/endpoint_install.go b/cli/beacon/cmd/endpoint_install.go
index 564b9b73..a85445a8 100644
--- a/cli/beacon/cmd/endpoint_install.go
+++ b/cli/beacon/cmd/endpoint_install.go
@@ -82,7 +82,7 @@ func runEndpointDashboard(cmd *cobra.Command, args []string) error {
return dashboard.ListenAndServe(dashboard.Options{
Addr: endpointOpts.dashboardAddr,
LogPath: cfg.LogPath,
- UserMode: cfg.UserMode,
+ UserMode: userMode,
})
}
diff --git a/cli/beacon/internal/endpoint/dashboard/server.go b/cli/beacon/internal/endpoint/dashboard/server.go
index 7ba02e04..72597f40 100644
--- a/cli/beacon/internal/endpoint/dashboard/server.go
+++ b/cli/beacon/internal/endpoint/dashboard/server.go
@@ -41,6 +41,7 @@ type StatusResponse struct {
}
func Handler(opts Options) (http.Handler, error) {
+ rulesUserMode := opts.UserMode
runtimeLog := lifecycle.ResolveRuntimeLog(opts.UserMode, opts.LogPath)
opts.LogPath = runtimeLog.EffectiveLogPath
opts.UserMode = runtimeLog.EffectiveUserMode
@@ -125,7 +126,7 @@ func Handler(opts Options) (http.Handler, error) {
methodNotAllowed(w)
return
}
- resp, err := BuildDetections(opts.UserMode, "")
+ resp, err := BuildDetections(rulesUserMode, "")
if err != nil {
writeError(w, http.StatusInternalServerError, err)
return
@@ -138,7 +139,7 @@ func Handler(opts Options) (http.Handler, error) {
return
}
q := r.URL.Query()
- resp, err := RunScan(opts.UserMode, opts.LogPath, "", q.Get("session"), q.Get("min_severity"))
+ resp, err := RunScan(rulesUserMode, opts.LogPath, "", q.Get("session"), q.Get("min_severity"))
if err != nil {
writeError(w, http.StatusBadRequest, err)
return