From 0f96ab7e70b6efa5bbdefe4bf941d2cf81f5a2a6 Mon Sep 17 00:00:00 2001 From: Xubin Ren Date: Fri, 15 May 2026 17:40:54 +0000 Subject: [PATCH] fix(webui): drop App markdown warmup; keep preloadMarkdownText export Startup no longer triggers preloadMarkdownText (#3746). Restore the named export so MessageBubble can still warm the lazy markdown chunk when the reasoning panel opens (compatible with current main). Co-authored-by: Cursor --- webui/src/App.tsx | 2 -- webui/src/components/MarkdownText.tsx | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webui/src/App.tsx b/webui/src/App.tsx index 600cc802d..e8dc0722c 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -157,8 +157,6 @@ export default function App() { return bootstrapWithSecret(saved); }, [bootstrapWithSecret]); - - if (state.status === "loading") { return (
diff --git a/webui/src/components/MarkdownText.tsx b/webui/src/components/MarkdownText.tsx index fd92873b3..111158968 100644 --- a/webui/src/components/MarkdownText.tsx +++ b/webui/src/components/MarkdownText.tsx @@ -10,7 +10,9 @@ interface MarkdownTextProps { const loadMarkdownRenderer = () => import("@/components/MarkdownTextRenderer"); const LazyMarkdownRenderer = lazy(loadMarkdownRenderer); - +export function preloadMarkdownText(): void { + void loadMarkdownRenderer(); +} /** * Lightweight markdown renderer mirroring agent-chat-ui: GFM + math via