From c6e6b1c1c68add9c8cf92349a4f5cbefda4d76ed Mon Sep 17 00:00:00 2001 From: Marve10s Date: Mon, 30 Mar 2026 11:52:59 +0300 Subject: [PATCH 1/3] fix(web): add cursor-pointer to work log "Show more" button The raw + + {isExpanded ? "Show less" : `Show ${overflowEntries.length} more`} + )} )}
- {visibleEntries.map((workEntry) => ( + {hasOverflow && ( + +
+ {overflowEntries.map((workEntry) => ( + + ))} +
+
+ )} + {alwaysVisibleEntries.map((workEntry) => ( ))}
- + ); })()} From 8caccfb1423f27d21a2cd18a6752853377623f49 Mon Sep 17 00:00:00 2001 From: Marve10s Date: Mon, 30 Mar 2026 12:10:03 +0300 Subject: [PATCH 3/3] fix(web): prevent auto-scroll when toggling work log expansion Expanding a work log group during a running session would trigger scheduleStickToBottom via the timelineEntries effect, yanking the viewport to the bottom. Disable auto-scroll on toggle so the user stays where they clicked; the scroll-to-bottom button is shown if they want to jump back. --- apps/web/src/components/ChatView.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index eaead424fb..ce9a321608 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -3434,12 +3434,18 @@ export default function ChatView({ threadId }: ChatViewProps) { } return false; }; - const onToggleWorkGroup = useCallback((groupId: string) => { - setExpandedWorkGroups((existing) => ({ - ...existing, - [groupId]: !existing[groupId], - })); - }, []); + const onToggleWorkGroup = useCallback( + (groupId: string) => { + cancelPendingStickToBottom(); + shouldAutoScrollRef.current = false; + setShowScrollToBottom(true); + setExpandedWorkGroups((existing) => ({ + ...existing, + [groupId]: !existing[groupId], + })); + }, + [cancelPendingStickToBottom], + ); const onExpandTimelineImage = useCallback((preview: ExpandedImagePreview) => { setExpandedImage(preview); }, []);