Commit c4514a9c authored by Hoanganhvu123's avatar Hoanganhvu123

fix(lead-stage): remove duplicate merged_product_ids calculation

Co-Authored-By: 's avatarClaude Sonnet 4.6 <noreply@anthropic.com>
parent 3baf7736
......@@ -640,10 +640,7 @@ class LeadStageGraph:
# Ensure product_ids covers every SKU mentioned in ai_response (deterministic safeguard)
from_text = _extract_skus_from_text(output.ai_response)
merged_product_ids = _dedupe_preserve_order((output.product_ids or []) + from_text)
# Extract insight - handle both dict and object cases
merged_product_ids = _dedupe_preserve_order((output.product_ids or []) + from_text)
merged_product_ids = _dedupe_preserve_order((getattr(output, "product_ids", []) or []) + from_text)
# Extract insight - handle both dict and object cases
insight_raw = getattr(output, "user_insight", None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment