diff --git a/apps/web/test/renderScenarios.renders.tsx b/apps/web/test/renderScenarios.renders.tsx index b8458881ce879..8cad678f29f00 100644 --- a/apps/web/test/renderScenarios.renders.tsx +++ b/apps/web/test/renderScenarios.renders.tsx @@ -85,36 +85,40 @@ const versionedProps = { onManualNavigation: () => {} }; // One list handle per mounted timeline, as ChatView keeps one: the timeline compares the // handle across renders, and a new one per render would skip its scroll-to-end and settle work. +// The callbacks and lists stay the same across renders too, as ChatView's do: new ones change +// the rows' shared context, which re-renders every row and hides a row that re-renders alone. function timelineFor() { - const listRef = createRef(); + const props: Omit = { + isWorking: false, + listRef: createRef(), + latestRun: null, + turnDiffSummaries: [], + runs: [], + onOpenTurnDiff: () => {}, + onOpenThread: () => {}, + onForkFromRun: async () => {}, + supportsConversationRollback: false, + onRevertToTurnCount: () => {}, + isRevertingCheckpoint: false, + onImageExpand: () => {}, + activeThreadEnvironmentId: ENVIRONMENT_ID, + markdownCwd: undefined, + resolvedTheme: "light", + timestampFormat: "locale", + workspaceRoot: undefined, + anchorMessageId: null, + onAnchorReady: () => {}, + onAnchorSizeChanged: () => {}, + contentInsetEndAdjustment: 0, + emptyPlaceholderInset: 0, + liveFollowEnabled: true, + onIsAtEndChange: () => {}, + }; return (thread: string, entries: Entry[]) => ( {}} - onOpenThread={() => {}} - onForkFromRun={async () => {}} - supportsConversationRollback={false} - onRevertToTurnCount={() => {}} - isRevertingCheckpoint={false} - onImageExpand={() => {}} - activeThreadEnvironmentId={ENVIRONMENT_ID} - markdownCwd={undefined} - resolvedTheme="light" - timestampFormat="locale" - workspaceRoot={undefined} - anchorMessageId={null} - onAnchorReady={() => {}} - onAnchorSizeChanged={() => {}} - contentInsetEndAdjustment={0} - emptyPlaceholderInset={0} - liveFollowEnabled - onIsAtEndChange={() => {}} {...versionedProps} /> );