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