fix(web): stop remounting markdown on every activity delta (#9306)
Co-authored-by: Claude Code <[email protected]>
This commit is contained in:
1 parent
ef6cc0b362
commit
355fbd96d5
1 file changed
+6
-1
@@ -623,7 +623,11 @@ export const MessagesTimeline = memo(function MessagesTimeline({
|
||||
listRef,
|
||||
timestampFormat,
|
||||
routeThreadKey,
|
||||
threadRef: parseScopedThreadKey(routeThreadKey),
|
||||
// Must be referentially stable: ChatMarkdown keys its react-markdown
|
||||
// component map on threadRef, and a fresh object here remounts every
|
||||
// rendered markdown node whenever this memo recomputes (e.g. on each
|
||||
// activity delta while the thread is working).
|
||||
threadRef: citationThreadRef,
|
||||
markdownCwd,
|
||||
resolvedTheme,
|
||||
workspaceRoot,
|
||||
@@ -648,6 +652,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({
|
||||
listRef,
|
||||
timestampFormat,
|
||||
routeThreadKey,
|
||||
citationThreadRef,
|
||||
markdownCwd,
|
||||
resolvedTheme,
|
||||
workspaceRoot,
|
||||
|
||||
Reference in new issue
Block a user