task(CAD-14 audit): registry effect idempotent (main.tsx init is the single source, no double-register warnings)

This commit is contained in:
Agent Zero
2026-09-18 11:41:10 +02:00
parent 170fd54b2c
commit 94050fb371
+2 -2
View File
@@ -150,8 +150,8 @@ const CADEditor: React.FC<CADEditorProps> = ({ projectId, token, onNavigateBack
useEffect(() => {
pluginRegistry.setContext(createPluginContext());
registerBuiltinPlugins();
pluginRegistry.initDefaults();
// CAD-14 Audit-Fix: main.tsx initialisiert die Registry bereits vor dem
// Render — hier nur Context nachziehen, kein Doppel-Register (Warnungen).
}, [createPluginContext]);
// Status bar only count self as online when actually connected