Skip to content

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.

test(embodiment): pin the embed's resolved-name wiring in the page contract test

nirholasce4430354940
diff --git a/tests/api/embodiment-embed-page.test.js b/tests/api/embodiment-embed-page.test.js
index d9278e1fa..c6beff7d7 100644
--- a/tests/api/embodiment-embed-page.test.js
+++ b/tests/api/embodiment-embed-page.test.js
@@ -45,6 +45,15 @@ describe('embodiment embed page — wiring contract', () => {
expect(html).toContain('if (showWallet && personaId)');
});
+ it('keeps the resolved persona name on every later state change', () => {
+ // The overlay label is tracked separately from the ?name param, so a
+ // loading/idle/speaking transition after the resolve cannot revert the
+ // persona's real name to the generic default.
+ expect(html).toContain('let displayName');
+ expect(html).toContain('{ ...detail, name: displayName }');
+ expect(html).toContain('displayName = resolved.name;');
+ });
+
it('is sandboxable: noindex + framable by any host', () => {
expect(html).toContain('name="robots" content="noindex"');
});