You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Multiple tools getting executed are rendered in flickery order #207
I've fixed the flickering issue where multiple tools executing in parallel were rendered in inconsistent order. The problem was caused by iterating over Go maps which don't guarantee iteration order.
Changes Made
Added order tracking: Introduced toolPreviewsOrder and parallelToolsOrder slices to maintain insertion order
Updated event handlers: Modified handlers to track order when new tools are added
Fixed rendering logic: Changed RenderPreviews() to iterate using order slices for deterministic, stable rendering
Updated cleanup: Modified ClearPreviews() to also reset order slices
Added smart cleanup: Tools are removed from order tracking after they complete and their display timer expires
Technical Details
The root cause was in /internal/ui/components/tool_call_renderer.go where the RenderPreviews() method iterated over two maps (toolPreviews and parallelToolsOrder). Since Go maps have undefined iteration order, each render cycle would display tools in a random order, creating the flickering effect.
The fix maintains the original maps for fast lookups while adding parallel slices to track insertion order, ensuring tools always render in the same order they were received.
Activity
edenreich commentedon Nov 17, 2025
@claude Can you fix this?
claude commentedon Nov 17, 2025
Claude finished @edenreich's task —— View job •
claude/issue-207-20251117-1830• Create PR ➔Fix implemented successfully! ✅
Summary
I've fixed the flickering issue where multiple tools executing in parallel were rendered in inconsistent order. The problem was caused by iterating over Go maps which don't guarantee iteration order.
Changes Made
toolPreviewsOrderandparallelToolsOrderslices to maintain insertion orderRenderPreviews()to iterate using order slices for deterministic, stable renderingClearPreviews()to also reset order slicesTechnical Details
The root cause was in
/internal/ui/components/tool_call_renderer.gowhere theRenderPreviews()method iterated over two maps (toolPreviewsandparallelToolsOrder). Since Go maps have undefined iteration order, each render cycle would display tools in a random order, creating the flickering effect.The fix maintains the original maps for fast lookups while adding parallel slices to track insertion order, ensuring tools always render in the same order they were received.
Branch: claude/issue-207-20251117-1830 |
fix(ui): Ensure stable ordering for parallel tool execution display
chore(release): 0.53.5 [skip ci]
inference-gateway-releaser commentedon Nov 17, 2025
🎉 This issue has been resolved in version 0.53.5 🎉
The release is available on:
v0.53.5Your semantic-release bot 📦🚀
feat: cache-stable system prompt, gateway-sourced model metadata, and…