Fix duplicate iteration execution tree ids#6545
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the iteration node grouping and tree-building logic in both ExecutionDetails.jsx and AgentExecutedDataCard.jsx to use unique parent node IDs (parentUniqueNodeId) instead of simple parent IDs. This allows for direct parent node lookups via a map rather than performing linear scans in the second pass. The feedback suggests further optimizing the first pass by replacing the backward linear scan for finding the parent's unique ID with an
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
parentNodeIduniqueNodeIdto avoid duplicate RichTreeView ids when the same iteration node executes more than onceTests
pnpm --dir packages/ui buildNotes
idproperty. #5248