From 28cff8c77b74cc51f070ded3a35ba4caafcc4bf8 Mon Sep 17 00:00:00 2001 From: czlonkowski <56956555+czlonkowski@users.noreply.github.com> Date: Tue, 7 Oct 2025 10:00:02 +0200 Subject: [PATCH] fix: skip node repository lookup for langchain nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Langchain AI nodes (tools, agents, chains) are already validated by specialized AI validators. Skipping the node repository lookup prevents "Unknown node type" errors when the database doesn't have langchain nodes, while still ensuring proper validation through AI-specific validators. This fixes 7 integration test failures where valid AI tool configurations were incorrectly marked as invalid due to database lookup failures. Resolves #265 (AI validation Phase 2 - remaining test failures) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/services/workflow-validator.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/services/workflow-validator.ts b/src/services/workflow-validator.ts index 5dfdaef..f6d6552 100644 --- a/src/services/workflow-validator.ts +++ b/src/services/workflow-validator.ts @@ -399,6 +399,13 @@ export class WorkflowValidator { const nodeInfo = this.nodeRepository.getNode(normalizedType); if (!nodeInfo) { + // Skip validation for langchain nodes - they're validated by AI-specific validators + // This prevents database dependency issues while still ensuring proper validation + if (normalizedType.startsWith('nodes-langchain.')) { + // Langchain nodes are validated separately by validateAISpecificNodes() + continue; + } + // Use NodeSimilarityService to find suggestions const suggestions = await this.similarityService.findSimilarNodes(node.type, 3);