Files
Christian RochaandCharm Crush 1c7ccfd7f7 perf(chat): reuse the rendered prefix of a streaming reply
While a model is streaming a reply, we used to re-render the entire
message text every time a new chunk arrived. Now we keep the rendered
output of the parts that are clearly finished and only render the
trailing piece on each update. The check for what counts as a finished
part is conservative on purpose, so anything risky (open code blocks,
lists, tables, html blocks, link references) still falls back to a
full render. The visible output is the same.

Co-Authored-By: Charm Crush <crush@charm.land>
2026-05-12 16:09:22 -04:00
..
2026-02-05 12:02:16 +01:00
2025-11-05 16:38:58 -05:00