From a3fb163977f04c6006d5834f22dc54be9ae98577 Mon Sep 17 00:00:00 2001 From: Antony Mwangi Date: Thu, 22 Jan 2026 21:35:46 +0300 Subject: [PATCH] Updated graph.ts with new implementation --- src/orchestrator/graph.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/orchestrator/graph.ts b/src/orchestrator/graph.ts index 725ba9f..8a67a87 100644 --- a/src/orchestrator/graph.ts +++ b/src/orchestrator/graph.ts @@ -15,6 +15,13 @@ import { logger } from '../utils/logger'; async function detectStackNode(state: AgentState): Promise> { logger.info(' Step: Detect Stack'); + + // If fingerprint already exists (pre-detected by setup), skip re-detection. + if (state.fingerprint) { + logger.info('Fingerprint already present in state — skipping detectStackNode.'); + return {}; + } + // In a real scenario, we might clone here if not already done. // We assume repoPath is set by the workflow runner (which clones). if (!state.repoPath) throw new Error("Repo path missing"); @@ -309,4 +316,4 @@ export const createFixGraph = () => { workflow.addEdge("submit_fix" as any, END); return workflow.compile(); -}; +}; \ No newline at end of file