fix(tag-dropdown): fix values for parallel & loop blocks#929
fix(tag-dropdown): fix values for parallel & loop blocks#929waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Greptile Summary
This PR fixes a bug in the tag dropdown component where contextual variables for loop and parallel blocks (index, currentItem, items) weren't displaying correctly. The issue was caused by the system applying normalized block name prefixes to these special contextual variables, which made them appear incorrectly or not at all in the dropdown interface.
The fix involves two key changes:
- Removal of unnecessary normalized contextual tags: The code previously added entries like
${normalizedLoopBlockName}.resultsto the contextual tags array, which were causing duplication and incorrect display - Special handling for single-word contextual tags: New logic checks if a tag belongs to a loop or parallel block and consists of only one word (like 'index' or 'currentItem'), treating these as standalone variables without block name prefixes
This change integrates well with the existing tag dropdown architecture, which already handles different types of tags (variables, loops, blocks) through various filtering and rendering mechanisms. The fix preserves the existing behavior for regular block output paths that do need prefixes while ensuring contextual variables appear as expected in the workflow editor interface.
Confidence score: 4/5
- This PR is safe to merge with low risk of breaking existing functionality
- Score reflects a targeted bug fix with clear before/after screenshots and good understanding of the contextual variable system
- Pay close attention to the tag filtering logic in lines 802-821 to ensure the conditional handling doesn't affect other block types
1 file reviewed, no comments
…ecution (#928) * standardized response format for transformError * removed trasnformError, moved error handling to executeTool for all different error formats * remove isInternalRoute, make it implicit in executeTool * removed directExecution, everything on the server nothing on the client * fix supabase * fix(tag-dropdown): fix values for parallel & loop blocks (#929) * fix(search-modal): add parallel and loop blocks to search modal * reordered tool params * update docs
…ecution (simstudioai#928) * standardized response format for transformError * removed trasnformError, moved error handling to executeTool for all different error formats * remove isInternalRoute, make it implicit in executeTool * removed directExecution, everything on the server nothing on the client * fix supabase * fix(tag-dropdown): fix values for parallel & loop blocks (simstudioai#929) * fix(search-modal): add parallel and loop blocks to search modal * reordered tool params * update docs
Summary
fix values for parallel & loop blocks, was not showing index and currentItem
Type of Change
Testing
Tested manually
Checklist
Screenshots/Videos
Before:

After:
