Fix mobile scroll on session reload and git errors on empty repos

This commit is contained in:
Chris Scott committed 2025-11-28 22:33:51 -05:00
1 parent 7b2892b55e
commit f90683071f
3 files changed
+75 -44

No files matched your search

@@ -42,6 +42,12 @@ export const MessageThread = memo(function MessageThread({ opcodeUrl, sessionID,
const hasInitialScrolledRef = useRef(false)
const scrollRAFRef = useRef<number | null>(null)
const lastScrollTimeRef = useRef(0)
useEffect(() => {
hasInitialScrolledRef.current = false
userScrolledUpRef.current = false
lastMessageCountRef.current = 0
}, [sessionID])
const scrollToBottom = useCallback((force = false) => {
if (!containerRef?.current) return