The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(test): export VirtualSessionListProps and assert sessions array identity change
StanleyStetson416f91d271de
diff --git a/apps/desktop/src/app/chat/sidebar/sessions-section.test.tsx b/apps/desktop/src/app/chat/sidebar/sessions-section.test.tsxindex a6648f31280..47015dd80cf 100644--- a/apps/desktop/src/app/chat/sidebar/sessions-section.test.tsx+++ b/apps/desktop/src/app/chat/sidebar/sessions-section.test.tsx@@ -155,5 +155,28 @@ describe('SidebarSessionsSection memoization & virtualizer stability', () => {const secondRowsRef = mockVirtualListPropsHistory[1].rowsexpect(secondRowsRef).not.toBe(firstRowsRef)++ // Change sessions array identity+ const updatedSessions = generateSessions(VIRTUALIZE_THRESHOLD + 4)+ rerender(+ <SidebarSessionsSection+ activeSessionId={null}+ dateGrouped={true}+ emptyState={<div>Empty</div>}+ label="Sessions"+ onArchiveSession={noop}+ onDeleteSession={noop}+ onResumeSession={noop}+ onToggle={noop}+ onTogglePin={noop}+ open={true}+ pinned={false}+ sessions={updatedSessions}+ workingSessionIdSet={new Set()}+ />+ )++ const thirdRowsRef = mockVirtualListPropsHistory[2].rows+ expect(thirdRowsRef).not.toBe(secondRowsRef)})})diff --git a/apps/desktop/src/app/chat/sidebar/virtual-session-list.tsx b/apps/desktop/src/app/chat/sidebar/virtual-session-list.tsxindex d9cfd6c0043..90e10ddc38d 100644--- a/apps/desktop/src/app/chat/sidebar/virtual-session-list.tsx+++ b/apps/desktop/src/app/chat/sidebar/virtual-session-list.tsx@@ -27,7 +27,7 @@ interface SessionRowCommonProps {showProfile?: boolean}-interface VirtualSessionListProps {+export interface VirtualSessionListProps {activeSessionId: null | stringclassName?: stringrows: SidebarListRow[]