Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai company
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
ai company
Commits
32c0bc86
Commit
32c0bc86
authored
May 06, 2026
by
Hoanganhvu123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(lead-stage): remove duplicate merged_product_ids calculation
Co-Authored-By:
Claude Sonnet 4.6
<
noreply@anthropic.com
>
parent
230b7394
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
graph.py
backend/agent/lead_stage_agent/graph.py
+1
-4
No files found.
backend/agent/lead_stage_agent/graph.py
View file @
32c0bc86
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment