Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(chat): preserve the explicit hidden-pane paging guard

vastsabd92cbb2b351
diff --git a/apps/desktop/src/features/chat/transcript/hooks/useTranscriptScroll.ts b/apps/desktop/src/features/chat/transcript/hooks/useTranscriptScroll.ts
index 407ff5b53..d18fd2c4d 100644
--- a/apps/desktop/src/features/chat/transcript/hooks/useTranscriptScroll.ts
+++ b/apps/desktop/src/features/chat/transcript/hooks/useTranscriptScroll.ts
@@ -356,7 +356,8 @@ export function useTranscriptScroll({
useEffect(() => cancelFollowScroll, [cancelFollowScroll]);
const loadOlder = useCallback(() => {
- if (!paneVisibleRef.current || !hasMoreBefore || !onLoadOlder) return;
+ if (!paneVisibleRef.current) return;
+ if (!hasMoreBefore || !onLoadOlder) return;
preserveHistory(onLoadOlder, windowSize, true);
}, [hasMoreBefore, onLoadOlder, preserveHistory, windowSize]);