mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-19 16:12:30 +00:00
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:
parent
52a9300d9e
commit
0f96ab7e70
@ -157,8 +157,6 @@ export default function App() {
|
||||
return bootstrapWithSecret(saved);
|
||||
}, [bootstrapWithSecret]);
|
||||
|
||||
|
||||
|
||||
if (state.status === "loading") {
|
||||
return (
|
||||
<div className="flex h-full w-full items-center justify-center">
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user