🛠️ fix: Agent Tools Modal on First-Time Agent Creation (#10234)

This commit is contained in:
Sebastien Bruel 2025-10-27 10:30:05 +09:00 committed by GitHub
parent 9495520f6f
commit 05c9195197
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,9 +35,7 @@ export function AgentPanelProvider({ children }: { children: React.ReactNode })
enabled: !isEphemeralAgent(agent_id),
});
const { data: regularTools } = useAvailableToolsQuery(EModelEndpoint.agents, {
enabled: !isEphemeralAgent(agent_id),
});
const { data: regularTools } = useAvailableToolsQuery(EModelEndpoint.agents);
const { data: mcpData } = useMCPToolsQuery({
enabled: !isEphemeralAgent(agent_id) && startupConfig?.mcpServers != null,