From 4de1a490e4b36ada428cc01d8e90a8aa1bb763ea Mon Sep 17 00:00:00 2001 From: joshavant <830519+joshavant@users.noreply.github.com> Date: Thu, 9 Apr 2026 15:20:05 -0500 Subject: [PATCH] UI: share active-session tools-effective refresh path --- ui/src/ui/app-render.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/ui/src/ui/app-render.ts b/ui/src/ui/app-render.ts index 9bc1ac9ccc..d556a12653 100644 --- a/ui/src/ui/app-render.ts +++ b/ui/src/ui/app-render.ts @@ -1347,12 +1347,7 @@ export function renderApp(state: AppViewState) { } if (state.agentsPanel === "tools" && refreshedAgentId) { void loadToolsCatalog(state, refreshedAgentId); - if (refreshedAgentId === resolveAgentIdFromSessionKey(state.sessionKey)) { - void loadToolsEffective(state, { - agentId: refreshedAgentId, - sessionKey: state.sessionKey, - }); - } + void refreshVisibleToolsEffectiveForCurrentSession(state); } if (state.agentsPanel === "channels") { void loadChannels(state, false); @@ -1385,12 +1380,7 @@ export function renderApp(state: AppViewState) { } if (state.agentsPanel === "tools") { void loadToolsCatalog(state, agentId); - if (agentId === resolveAgentIdFromSessionKey(state.sessionKey)) { - void loadToolsEffective(state, { - agentId, - sessionKey: state.sessionKey, - }); - } + void refreshVisibleToolsEffectiveForCurrentSession(state); } if (state.agentsPanel === "skills") { void loadAgentSkills(state, agentId);