From 6ab0757cc692c541bbeb43be3a1d78773835848e Mon Sep 17 00:00:00 2001 From: iris Date: Sat, 27 Jun 2026 16:10:46 +0200 Subject: [PATCH] feat(core): add stale permission entries sub-section to K3PT ST4T3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a "stale permission entries" sub-section within the K3PT ST4T3 pane on /core.html showing agents with explicit capability/tool-group JSON entries but no live container — typically renamed or manually-deleted agents whose entries persisted (e.g. the old "root" manager name after rename to "ruth"). Each ghost agent gets a "✕ clear perms" button that calls DELETE /api/permissions/{agent} (added in the prior commit). Lazy-loaded on first K3PT ST4T3 tab activation; auto-refreshes on capabilities_changed and tool_groups_changed SSE events. core.js: track liveContainerNames from /api/state.containers; add renderStalePerms + fetchAndRenderStalePerms; hook tab onShow + SSE handlers. system-sections.css: new .tombstones-stale-* selectors for the ghost list rows and error message. core.html: add #tombstones-stale-perms div inside the K3PT ST4T3 pane; expand comment to describe both sub-sections. --- frontend/packages/dashboard/src/core.html | 8 +- frontend/packages/dashboard/src/core.js | 87 +++++++++++++++++++ .../dashboard/src/system-sections.css | 39 +++++++++ 3 files changed, 133 insertions(+), 1 deletion(-) diff --git a/frontend/packages/dashboard/src/core.html b/frontend/packages/dashboard/src/core.html index 6fade074..118afcf9 100644 --- a/frontend/packages/dashboard/src/core.html +++ b/frontend/packages/dashboard/src/core.html @@ -71,13 +71,19 @@ - +

kept state from previously tombstoned agents — recreating an agent with the same name reuses it.

loading…

+