The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 12:45 UTC
fix(web): stop remounting markdown on every activity delta (#9306)
Co-authored-by: Claude Code <noreply@anthropic.com>
Julius Marminge committed
Sep 2, 2026 at 19:01 UTC
355fbd96d5e90b52961ac5f1e035112fc3bad4a9
1 file changed
+6
-1
apps/web/src/components/chat/MessagesTimeline.tsx
+6
-1
@@ -623,7 +623,11 @@ export const MessagesTimeline = memo(function MessagesTimeline({
623
listRef,
624
timestampFormat,
625
routeThreadKey,
626
- threadRef: parseScopedThreadKey(routeThreadKey),
626
+ // Must be referentially stable: ChatMarkdown keys its react-markdown
627
+ // component map on threadRef, and a fresh object here remounts every
628
+ // rendered markdown node whenever this memo recomputes (e.g. on each
629
+ // activity delta while the thread is working).
630
+ threadRef: citationThreadRef,
631
markdownCwd,
632
resolvedTheme,
633
workspaceRoot,
@@ -648,6 +652,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({
652
listRef,
653
timestampFormat,
654
routeThreadKey,
655
+ citationThreadRef,
656
markdownCwd,
657
resolvedTheme,
658
workspaceRoot,