What version of Kimi Code is running?
kimi --version: 0.20.1
Which open platform/subscription were you using?
N/A (local kimi-web dev mode or 0.20.1).
Which model were you using?
Any model, e.g. kimi-k2.7.
What platform is your computer?
macOS, Chrome / Safari.
What issue are you seeing?
In the kimi-web chat UI, when the model streams a reply that contains a code block, the code block is rendered as plain text without syntax highlighting after streaming finishes. Refreshing the browser window makes the same code block highlight correctly.
What steps can reproduce the bug?
- Start the local
apps/kimi-web dev server.
- Send the message: "Give me 20 lines of TypeScript code".
- Wait for the streaming reply to finish.
- Observe the code block: it is likely plain black text on a light background, with no syntax highlighting.
- Refresh the browser window; the code block now highlights correctly.
What is the expected behavior?
After streaming finishes, the code block should be syntax-highlighted by Shiki on the first render, without requiring a page refresh.
Additional information
- The bug is intermittent but reproduces frequently during local debugging.
- Highlighting works after refresh, so Shiki itself is functional; the issue is in the transition from streaming to final render.

What version of Kimi Code is running?
kimi --version:0.20.1Which open platform/subscription were you using?
N/A (local
kimi-webdev mode or 0.20.1).Which model were you using?
Any model, e.g.
kimi-k2.7.What platform is your computer?
macOS, Chrome / Safari.
What issue are you seeing?
In the
kimi-webchat UI, when the model streams a reply that contains a code block, the code block is rendered as plain text without syntax highlighting after streaming finishes. Refreshing the browser window makes the same code block highlight correctly.What steps can reproduce the bug?
apps/kimi-webdev server.What is the expected behavior?
After streaming finishes, the code block should be syntax-highlighted by Shiki on the first render, without requiring a page refresh.
Additional information