mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
feat(web): add LLM model plugin check to workflow checklist
Detect uninstalled model plugins for LLM nodes in the checklist and publish-gate. Migrate ChecklistItem.errorMessage to errorMessages[] so a single node can surface multiple validation issues at once. - Extract shared extractPluginId utility for checklist and prompt editor - Build installed-plugin Set (O(1) lookup) from ProviderContext - Remove short-circuit between checkValid and variable validation - Sync the same check into handleCheckBeforePublish - Adapt node-group, use-last-run, and test assertions
This commit is contained in:
@ -159,10 +159,10 @@ const useLastRun = <T>({
|
||||
if (!warningForNode)
|
||||
return false
|
||||
|
||||
if (warningForNode.unConnected && !warningForNode.errorMessage)
|
||||
if (warningForNode.unConnected && warningForNode.errorMessages.length === 0)
|
||||
return false
|
||||
|
||||
const message = warningForNode.errorMessage || 'This node has unresolved checklist issues'
|
||||
const message = warningForNode.errorMessages[0] || 'This node has unresolved checklist issues'
|
||||
Toast.notify({ type: 'error', message })
|
||||
return true
|
||||
}, [warningNodes, id])
|
||||
|
||||
Reference in New Issue
Block a user