mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-15 03:01:02 +00:00
UI: share active-session tools-effective refresh path
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user