new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

shadcn/ui · Components · all subjects

message-scroller/virtualization

1 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

MessageScroller virtualization with react-virtual

Virtualization is intentionally left outside the primitive because MessageScroller renders real DOM rows and stays fast well into thousands of turns. When a transcript is large enough to need virtualization, use MessageScrollerViewport as the scroll element and let the virtualizer own the rows. Example using @tanstack/react-virtual: const viewportRef = React.useRef<HTMLDivElement>(null); const virtualizer = useVirtualizer({ count: messages.length, getScrollElement: () => viewportRef.current, estimateSize: () => 86, getItemKey: (index) => messages[index]?.id ?? index, overscan: 8, }); Then wrap in MessageScrollerProvider with MessageScrollerViewport ref={viewportRef} containing MessageScrollerContent with virtualized items.

Give your agent this brain