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.

feat: avatar walks alongside chat text during streaming

nirholas546ecaacd16b
diff --git a/src/element.js b/src/element.js
index 9f38cfbf6..25f3ffb21 100644
--- a/src/element.js
+++ b/src/element.js
@@ -1743,7 +1743,8 @@ class Agent3DElement extends HTMLElement {
}
this._streamingMsgEl = msg.querySelector('.body');
this._chatAutoScroll = true;
- if (!this._walkMovedX && this._scene?.viewer?.content) {
+ if (!this._walkMovedX && this._scene?.viewer?.content &&
+ !window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
this._walkHomeX = this._scene.viewer.content.position.x;
this._walkMovedX = true;
this._scene.moveTo({ x: this._walkHomeX + 0.35 }, { duration: 900 });