Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/components/AIView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,18 @@ const AIViewInner: React.FC<AIViewProps> = ({
void window.api.workspace.openTerminal(namedWorkspacePath);
}, [namedWorkspacePath]);

// Auto-scroll when messages update (during streaming)
// Auto-scroll when messages or todos update (during streaming)
useEffect(() => {
if (workspaceState && autoScroll) {
performAutoScroll();
}
}, [workspaceState?.messages, autoScroll, performAutoScroll, workspaceState]);
}, [
workspaceState?.messages,
workspaceState?.todos,
autoScroll,
performAutoScroll,
workspaceState,
]);

// Scroll to bottom when workspace loads or changes
useEffect(() => {
Expand Down