fix(webui): hide the memory pages this process cannot serve (#2069)
Quality / check (pull_request) Successful in 3m7s

The dashboard is served by both binaries, and internal/webui serves no
/api/memory route. Reporting the memory sections as unavailable drops both pages
from the navigation there instead of offering pages whose every read and write
answers not found.
This commit is contained in:
sam committed 2026-11-27 18:25:20 +11:00
1 parent aa3568dd52
commit 79be5aad96
1 file changed
+5
+5
View File
@@ -22,6 +22,11 @@ func (s *Server) handleCapabilities(w http.ResponseWriter, r *http.Request) {
// and its definition list from the local registry, so it is
// worth showing with only the former.
"workflows": true,
// The memory pages and their admin settings call /api/memory, which
// this process does not serve: offering them would answer every read
// and write with a not-found.
"memory": false,
"memory_admin": false,
// Configuration renders from whichever source is wired, and only
// the system org operates the instance: every other org's
// settings pages would offer saves the control plane refuses.