Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Oct 20, 2025

Auto-scroll issue: FileEditToolCall's DiffRenderer shows "Processing..." while highlighting, then expands after auto-scroll runs.

Fix: Double RAF ensures scroll happens after async content finishes rendering.

TODO flickering issue: created new array reference even when content identical.

Fix: Deep equality check in StreamingMessageAggregator prevents unnecessary reference changes.

Generated with cmux

Use double RAF in performAutoScroll to ensure scroll happens after
async content (like DiffRenderer highlighting) finishes rendering.
First frame allows DOM updates, second frame scrolls after layout.
Only update currentTodos reference when content actually changes.
Prevents PinnedTodoList from flickering when todo_write is called
with identical content.
@ammar-agent ammar-agent changed the title 🤖 Fix auto-scroll with async-rendered content 🤖 Fix auto-scroll and TODO flickering Oct 20, 2025
@ammario ammario merged commit f59e17c into main Oct 20, 2025
8 checks passed
@ammario ammario deleted the fix-file-edit-autoscroll branch October 20, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants