Commit Graph
2 Commits
Author SHA1 Message Date
陈大猫 ac885e2a36 perf(ai): replace full @streamdown/code bundle with fine-grained shiki/core highlighter (#4390)
* perf(ai): replace full @streamdown/code bundle with fine-grained shiki/core highlighter

* fix(deps): preserve peer dependencies in package-lock.json
2026-11-25 22:04:36 +08:00
bincxz b02d52516c fix(ai): load Streamdown without Shiki until a code fence is idle
messageResponse pulled @streamdown/code on first markdown import, so
opening a chat with history paid for the full highlighter even when
the reply was just prose.

Render with CJK only first. When a fence exists and the composer is
idle, lazily import the isolated Shiki plugin.
2026-08-15 03:03:38 +08:00