Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-c0re/src/dashboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 4df286345a refactor(permissions): move ghost-perm detection server-side
Add GET /api/permissions/stale endpoint that returns agent names with
explicit capability/tool-group JSON entries but no live container AND
no kept-state tombstone. Ghost detection is now entirely server-side —
one authoritative call, no client-side roster cache, no staleness window.

The previous client-side approach in core.js made three parallel API
calls (GET /api/capabilities, GET /api/tool-groups, GET /api/state) and
filtered the result against a module-level `liveContainerNames` Set
populated only on cold load and form submits. Any container lifecycle
event (spawn, destroy) while core.html was open left `liveContainerNames`
stale, risking a false-positive ghost entry for a live container.

Changes:
- permissions.rs: add `get_stale_permissions` handler + `StalePermsResponse`
  struct. Computes live roster (containers_snapshot), tombstone set
  (Coordinator::kept_state_names), explicit perm names (capabilities::read
  + tool_groups::read), then returns the difference sorted.
- dashboard.rs: register GET /api/permissions/stale.
- core.js: replace the three-call client-side logic in
  `fetchAndRenderStalePerms` with a single fetch to /api/permissions/stale.
  Remove `liveContainerNames` state + its syncFromSnapshot population.
2026-06-28 23:29:51 +02:00
..
approvals.rs dashboard: return problem details directly from client-error handlers 2026-06-22 16:04:22 +02:00
build_logs.rs refactor(#1456): extract dashboard build-log endpoints into dashboard/build_logs.rs 2026-06-09 00:12:15 +02:00
journal.rs dashboard: return problem details directly from client-error handlers 2026-06-22 16:04:22 +02:00
lifecycle_ops.rs refactor(#1865): consolidate agent + manager socket servers into one 2026-06-22 13:58:52 +02:00
matrix_accounts.rs feat(#2035): auto-discover dashboard-provisioned matrix accounts via token+homeserver sidecar 2026-06-27 00:30:04 +02:00
permissions.rs refactor(permissions): move ghost-perm detection server-side 2026-06-28 23:29:51 +02:00
questions.rs dashboard: return problem details directly from client-error handlers 2026-06-22 16:04:22 +02:00
reminders.rs dashboard: return problem details directly from client-error handlers 2026-06-22 16:04:22 +02:00
schedules.rs fix(schedules): use typed error for pause/resume 404 discrimination 2026-06-27 20:01:16 +02:00
state_files.rs refactor(#1456): extract dashboard state-file proxy + path-validation into dashboard/state_files.rs 2026-06-09 00:12:15 +02:00
topology.rs dashboard: return problem details directly from client-error handlers 2026-06-22 16:04:22 +02:00
webhook.rs refactor(#1456): extract knowledge push-webhook endpoint into dashboard/webhook.rs 2026-06-09 00:12:15 +02:00