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.

fix(agent-trade): stop the delivering timeout wiping a fast delivered card

nirholasebaf9b81e7c2
diff --git a/src/agent-trade.js b/src/agent-trade.js
index d9b15d06e..ca610b713 100644
--- a/src/agent-trade.js
+++ b/src/agent-trade.js
@@ -665,11 +665,11 @@ function handleEvent(ev) {
case 'delivering': {
setChip('delivering', 'active');
- setTimeout(() => {
- hideBubble('seller');
- showBubble('seller', `Analyzing with ${ev.model}…`);
- hideCard();
- }, 200);
+ // Hide the receipt now, not on a timer: a fast stream landed the
+ // `delivered` card first and then this timeout wiped it off the screen.
+ hideBubble('seller');
+ hideCard();
+ setTimeout(() => showBubble('seller', `Analyzing with ${ev.model}…`), 200);
// Fly back to a wide view
stage?.flyCamera(vec3(0, 3.0, 9.5), vec3(0, 1.2, 0), 1100);
break;