Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Guard lang-switcher against reconnect double-attachShadow
nirholas7e86449c7adb
diff --git a/src/i18n.js b/src/i18n.jsindex 9adb967c6..176f4cfcf 100644--- a/src/i18n.js+++ b/src/i18n.js@@ -225,6 +225,13 @@ function registerLangSwitcher() {if (customElements.get('lang-switcher')) return;class LangSwitcher extends HTMLElement {async connectedCallback() {+ // connectedCallback re-fires whenever the element is moved to a new slot+ // (pages re-parent the switcher into footers/overflow menus), and a second+ // attachShadow on the same host throws. The sync flag also covers the+ // race where two rapid reconnects both clear the manifest await before+ // either has attached the shadow root.+ if (this._booted) return;+ this._booted = true;const manifest = await loadManifest();if (!manifest.locales || manifest.locales.length < 2) return;