brauliogusmao quietly fixes a chat crash everyone else probably has

A two-step patch to the assistant chat window stops the UI from crashing mid-answer when the AI is still typing.

chat-ui

The bug: while the assistant streams a reply, the chat window tries to render it on the fly through formatting helpers that handle things like math equations and tables. Those helpers don't cope well with half-finished text, and the result was the chat panel crashing in the middle of an answer.

The fix turns the fancy formatting off while the answer is streaming in, so the page stays stable, then switches it back on once the answer is complete so equations and tables still render properly. It's a small, surgical change - but the underlying bug is generic, meaning any other Mike fork using the same chat plumbing is almost certainly hitting it too without realising.

So what If your team runs a Mike-derived chat product and users have reported the assistant occasionally blanking out mid-reply, this is the patch to copy.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

2 commits from brauliogusmao/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
4872c90b fix: corrige removeChild durante streaming do ReactMarkdown Braulio Gabriel Gusmao 2026-05-12 ↗ GitHub
commit body
Adiciona key="streaming"/"done" no ReactMarkdown para forçar remount
ao fim do streaming. Evita que rehypeKatex/remarkGfm produzam árvores
DOM inconsistentes durante reconciliação com markdown parcial.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
78e2b036 fix: desativa plugins do ReactMarkdown durante streaming para evitar conflito de DOM Braulio Gabriel Gusmao 2026-05-12 ↗ GitHub
commit body
Durante streaming usa ReactMarkdown sem plugins (árvore DOM estável).
Ao fim do streaming, key muda para "done" forçando remount único com
rehypeKatex e remarkGfm ativos para renderização final completa.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-386.md from inside the repo you want the changes in.

⬇ Download capture-thread-386.md