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-screen): stop the i18n placeholder overwriting the resolved agent name

nirholas0e896faad426
diff --git a/src/agent-screen.js b/src/agent-screen.js
index 47c4a7c6e..7b868cd88 100644
--- a/src/agent-screen.js
+++ b/src/agent-screen.js
@@ -109,6 +109,17 @@ const toastWrap = document.getElementById('asc-toast-wrap');
const clamp = (n, lo, hi) => Math.max(lo, Math.min(hi, n));
+// The header name ships as `data-i18n="agent_screen.loading"` so it reads
+// "Loading…" in the viewer's language before anything resolves. The i18n
+// runtime re-applies that binding whenever it re-translates the document,
+// which overwrote every real value we wrote here: the setup view's header sat
+// on "Loading…" permanently, and a resolved agent name could be reverted to it
+// mid-session. Dropping the binding as we write retires the placeholder.
+function setAgentNameText(text) {
+ agentNameEl.removeAttribute('data-i18n');
+ agentNameEl.textContent = text;
+}
+
// ── transient toast ─────────────────────────────────────────────────────────
function toast(msg, ms = 2200) {
const el = document.createElement('div');