🔧 fix: Model List Query Data in Agent Builder Panel (#11260)

* fix: don't populate query with initial data for getModels query hook to avoid caching issue when opening model list in agent builder after hard refresh / switching to Agent Marketplace view

* fix: reduce scope of change
This commit is contained in:
Dustin Healy 2026-01-08 08:00:28 -08:00 committed by GitHub
parent c30afb8b68
commit 6680ccf63b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -217,7 +217,7 @@ export default function AgentPanel() {
const { onSelect: onSelectAgent } = useSelectAgent();
const modelsQuery = useGetModelsQuery();
const modelsQuery = useGetModelsQuery({ refetchOnMount: 'always' });
const basicAgentQuery = useGetAgentByIdQuery(current_agent_id);
const { hasPermission, isLoading: permissionsLoading } = useResourcePermissions(