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 <cursoragent@cursor.com>
This commit is contained in:
Xubin Ren
2026-05-16 01:42:42 +08:00
committed by Xubin Ren
co-authored by Cursor
parent 52a9300d9e
commit 0f96ab7e70
2 changed files with 3 additions and 3 deletions
-2
View File
@@ -157,8 +157,6 @@ export default function App() {
return bootstrapWithSecret(saved); return bootstrapWithSecret(saved);
}, [bootstrapWithSecret]); }, [bootstrapWithSecret]);
if (state.status === "loading") { if (state.status === "loading") {
return ( return (
<div className="flex h-full w-full items-center justify-center"> <div className="flex h-full w-full items-center justify-center">
+3 -1
View File
@@ -10,7 +10,9 @@ interface MarkdownTextProps {
const loadMarkdownRenderer = () => import("@/components/MarkdownTextRenderer"); const loadMarkdownRenderer = () => import("@/components/MarkdownTextRenderer");
const LazyMarkdownRenderer = lazy(loadMarkdownRenderer); const LazyMarkdownRenderer = lazy(loadMarkdownRenderer);
export function preloadMarkdownText(): void {
void loadMarkdownRenderer();
}
/** /**
* Lightweight markdown renderer mirroring agent-chat-ui: GFM + math via * Lightweight markdown renderer mirroring agent-chat-ui: GFM + math via