diff --git a/packages/app/src/pages/session/message-timeline.tsx b/packages/app/src/pages/session/message-timeline.tsx index 89b3c4a4b..519fbc28a 100644 --- a/packages/app/src/pages/session/message-timeline.tsx +++ b/packages/app/src/pages/session/message-timeline.tsx @@ -362,7 +362,6 @@ function TimelineThinkingRow(props: { reasoningHeading?: string; showReasoningSu function TimelineDiffSummaryRow(props: { diffs: SummaryDiff[] }) { const language = useLanguage() - const fileComponent = useFileComponent() const maxFiles = 10 const [state, setState] = createStore({ showAll: false, @@ -396,7 +395,7 @@ function TimelineDiffSummaryRow(props: { diffs: SummaryDiff[] }) { > {(diff) => { - const view = normalize(diff) + const opened = createMemo(() => expanded().includes(diff.file)) return ( @@ -421,9 +420,9 @@ function TimelineDiffSummaryRow(props: { diffs: SummaryDiff[] }) { -
- -
+ + +
) @@ -440,6 +439,17 @@ function TimelineDiffSummaryRow(props: { diffs: SummaryDiff[] }) { ) } +function TimelineDiffView(props: { diff: SummaryDiff }) { + const fileComponent = useFileComponent() + const view = normalize(props.diff) + + return ( +
+ +
+ ) +} + export function MessageTimeline(props: { mobileChanges: boolean mobileFallback: JSX.Element