Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: refresh datasource list after install datasource (#25949)
zxhlyh6453fc49735e
diff --git a/web/app/components/plugins/install-plugin/hooks/use-refresh-plugin-list.tsx b/web/app/components/plugins/install-plugin/hooks/use-refresh-plugin-list.tsxindex ac269713592..62948873568 100644--- a/web/app/components/plugins/install-plugin/hooks/use-refresh-plugin-list.tsx+++ b/web/app/components/plugins/install-plugin/hooks/use-refresh-plugin-list.tsx@@ -6,6 +6,7 @@ import { useInvalidateAllBuiltInTools, useInvalidateAllToolProviders } from '@/simport { useInvalidateStrategyProviders } from '@/service/use-strategy'import type { Plugin, PluginDeclaration, PluginManifestInMarket } from '../../types'import { PluginType } from '../../types'+import { useInvalidDataSourceList } from '@/service/use-pipeline'const useRefreshPluginList = () => {const invalidateInstalledPluginList = useInvalidateInstalledPluginList()@@ -16,6 +17,7 @@ const useRefreshPluginList = () => {const invalidateAllToolProviders = useInvalidateAllToolProviders()const invalidateAllBuiltInTools = useInvalidateAllBuiltInTools()+ const invalidateAllDataSources = useInvalidDataSourceList()const invalidateStrategyProviders = useInvalidateStrategyProviders()return {@@ -30,6 +32,9 @@ const useRefreshPluginList = () => {// TODO: update suggested tools. It's a function in hook useMarketplacePlugins,handleUpdatePlugins}+ if ((manifest && PluginType.datasource.includes(manifest.category)) || refreshAllType)+ invalidateAllDataSources()+// model selectif ((manifest && PluginType.model.includes(manifest.category)) || refreshAllType) {refreshModelProviders()