feat(app): incrementally render turns, markdown cache, lazily render diffs

This commit is contained in:
Adam
2026-01-07 19:12:48 -06:00
parent 1c717d62e4
commit c949e5b390
4 changed files with 331 additions and 108 deletions

View File

@@ -566,7 +566,7 @@ PART_MAPPING["text"] = function TextPartDisplay(props) {
return (
<Show when={throttledText()}>
<div data-component="text-part">
<Markdown text={throttledText()} />
<Markdown text={throttledText()} cacheKey={part.id} />
</div>
</Show>
)
@@ -580,7 +580,7 @@ PART_MAPPING["reasoning"] = function ReasoningPartDisplay(props) {
return (
<Show when={throttledText()}>
<div data-component="reasoning-part">
<Markdown text={throttledText()} />
<Markdown text={throttledText()} cacheKey={part.id} />
</div>
</Show>
)