fix(session-ui): avoid replaying thinking summary animation (#44440)

This commit is contained in:
Brendan Allan
2026-08-23 23:43:17 +08:00
committed by GitHub
parent 8e71c8425f
commit ad7d515d50
@@ -458,6 +458,7 @@ export function createSessionTimelineRowRenderer(input: {
if (value._tag !== "Thinking") throw new Error("Expected a thinking timeline row")
return value
}
const animateHeading = createMemo<boolean>((previous) => previous ?? !current().reasoningHeading)
return (
<Frame row={current()}>
<div data-slot="session-turn-message-container" class={`w-full ${padding()}`}>
@@ -480,8 +481,8 @@ export function createSessionTimelineRowRenderer(input: {
<TextReveal
text={current().reasoningHeading}
class="session-turn-thinking-heading"
travel={25}
duration={700}
travel={animateHeading() ? 25 : 0}
duration={animateHeading() ? 700 : 0}
/>
</span>
</Show>