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(play): clear the console noise and layout shift a /play load leaves behind

nirholasf2e2001e126b
diff --git a/pages/create.html b/pages/create.html
index 12da447e8..00240e265 100644
--- a/pages/create.html
+++ b/pages/create.html
@@ -1182,7 +1182,7 @@
</head>
<body>
<div id="page-loading" aria-hidden="true">
- <img src="/three.svg" alt="" />
+ <img src="/three.svg" alt="" width="64" height="64" />
<div class="dots">...</div>
</div>
<a href="#main-content" class="skip-link" data-i18n="create.skip_to_main_content">Skip to main content</a>
diff --git a/pages/home.html b/pages/home.html
index b213c573b..6afeb92af 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -2590,7 +2590,7 @@
<button class="bento-action-btn studio-webcam-btn" id="studio-webcam-btn" type="button" data-i18n="home.webcam">Webcam</button>
</div>
<div class="studio-ready" id="studio-ready">
- <img class="studio-preview-img" id="studio-preview-img" alt="The photo you just captured" />
+ <img class="studio-preview-img" id="studio-preview-img" alt="The photo you just captured" width="44" height="44" />
<div class="studio-ready-body">
<span class="studio-ready-title" data-i18n="home.photo_ready">Photo ready.</span>
<span class="studio-ready-sub" data-i18n="home.finish_in_avatar_studio_we_ll_build">Finish in Avatar Studio — we'll build a rigged 3D avatar from it. Add side angles, a personality, and a voice.</span>
diff --git a/pages/marketplace.html b/pages/marketplace.html
index 7e7bcb46c..900ec5275 100644
--- a/pages/marketplace.html
+++ b/pages/marketplace.html
@@ -3135,7 +3135,7 @@
<aside class="market-sidebar" id="market-sidebar">
<a href="/" class="market-logo">
- <img src="/three.svg" alt="three.ws" />
+ <img src="/three.svg" alt="three.ws" width="22" height="22" />
<span data-i18n="marketplace.community">Community</span>
</a>
<!-- Persistent Solana wallet connect. Shares the same connectedWallet
diff --git a/scripts/audit-play-failure-modes.mjs b/scripts/audit-play-failure-modes.mjs
index f50774140..7ca6430c1 100644
--- a/scripts/audit-play-failure-modes.mjs
+++ b/scripts/audit-play-failure-modes.mjs
@@ -361,8 +361,12 @@ async function runScenario(base, sc) {
// it as a goto failure, which reads identically to "the site hung" and would
// put a fabricated outage in the report. Hand it back as `infra` so the
// caller can retry it and, if it never runs, count it as NOT RUN rather than
- // as a pass or a finding.
- if (/Page crashed|Target (page|closed)|browser has been closed|Target crashed/i.test(m)) {
+ // as a pass or a finding. ERR_NETWORK_CHANGED is the same class: this dev
+ // box's interfaces churn (other agents' docker containers add and remove
+ // veths), and Chromium reacts by aborting every in-flight request, even to
+ // localhost. Product code cannot cause it, and a page it hit is half-loaded,
+ // so nothing observed afterwards means anything.
+ if (/Page crashed|Target (page|closed)|browser has been closed|Target crashed|ERR_NETWORK_CHANGED/i.test(m)) {
return { infra: m, findings: [], consoleIssues: [], pageErrors: [] };
}
findings.push(`navigation failed: ${m}`);
@@ -371,6 +375,14 @@ async function runScenario(base, sc) {
await page.waitForTimeout(SETTLE_MS);
+ // Network churn mid-scenario aborts subresource loads wholesale (see the
+ // infra note above), so every observation below would describe a page the
+ // harness broke, not one /play broke. Surrender the scenario for a retry.
+ if (consoleIssues.some((t) => t.includes('ERR_NETWORK_CHANGED'))) {
+ await teardown();
+ return { infra: 'host network changed mid-scenario (ERR_NETWORK_CHANGED)', findings: [], consoleIssues: [], pageErrors: [] };
+ }
+
const o = await page.evaluate(() => {
const loader = document.getElementById('kx-loading');
const hidden = !loader || loader.classList.contains('kx-hidden');
@@ -465,12 +477,15 @@ async function main() {
// run this audit, not a verdict on /play.
let res = await runScenario(server.base, sc);
if (res.infra) {
- console.log(` ${C.y('↻')} ${C.d(`browser died (${res.infra.split('\n')[0]}), retrying`)}`);
+ console.log(` ${C.y('↻')} ${C.d(`harness infra failure (${res.infra.split('\n')[0]}), retrying`)}`);
+ // A network-change storm usually settles within seconds; give it a
+ // moment so the retry does not land inside the same churn window.
+ await new Promise((r) => setTimeout(r, 3000));
res = await runScenario(server.base, sc);
}
if (res.infra) {
notRun.push({ sc, why: res.infra.split('\n')[0] });
- console.log(` ${C.y('!')} ${C.y('NOT RUN')} ${C.d('browser crashed twice, host out of resources')}`);
+ console.log(` ${C.y('!')} ${C.y('NOT RUN')} ${C.d('two harness infra failures in a row (starved browser or network churn)')}`);
continue;
}
const { findings, consoleIssues, pageErrors, o } = res;
@@ -499,7 +514,7 @@ async function main() {
// audit that says "all clear" while a third of it never executed is worse than
// one that says nothing.
if (notRun.length) {
- console.log(C.y(` ${notRun.length} of ${scenarios.length} scenario(s) NOT RUN (host out of resources):`));
+ console.log(C.y(` ${notRun.length} of ${scenarios.length} scenario(s) NOT RUN (harness infra: starved browser or network churn):`));
for (const { sc, why } of notRun) console.log(` ${C.y('!')} ${sc.id}: ${why}`);
console.log('');
}
diff --git a/scripts/lib/console-noise.mjs b/scripts/lib/console-noise.mjs
index 9cc06a0d6..eed9080bf 100644
--- a/scripts/lib/console-noise.mjs
+++ b/scripts/lib/console-noise.mjs
@@ -55,6 +55,9 @@ export const IGNORE_CONSOLE = [
/X-Amz-Signature.*404/i,
// Three.js / WebGL expected notices
/THREE\.WebGLRenderer: WebGL 1 is not supported/i,
+ // SwiftShader (headless CI GL) lacks this optional extension; three.js notes
+ // it once per renderer. Real GPUs have it, and our code never emits this.
+ /KHR_parallel_shader_compile extension not supported/i,
/THREE\.BufferGeometry\.computeBoundingSphere/i,
/WebGL.*swiftshader/i,
/Automatic fallback to software WebGL/i,
diff --git a/src/agi.js b/src/agi.js
index 8a6cbc385..7bfa21818 100644
--- a/src/agi.js
+++ b/src/agi.js
@@ -111,6 +111,11 @@ function mountBody(agent) {
el.setAttribute('background', 'transparent');
el.setAttribute('name-plate', 'off');
el.setAttribute('avatar-chat', 'off');
+ // `chat="off"` keeps the element a bare body. Without it, binding an
+ // agent-id builds the chat shell (focusable log, suggestion chips, send
+ // button) inside a host we label role="img", and axe rightly flags that
+ // as nested-interactive: role="img" makes every descendant presentational.
+ el.setAttribute('chat', 'off');
el.setAttribute('responsive', '');
el.setAttribute('eager', '');
// The body is a graphic: name it for screen readers, since the canvas inside
diff --git a/src/game/coincommunities.js b/src/game/coincommunities.js
index b83d78c3e..60d4787a6 100644
--- a/src/game/coincommunities.js
+++ b/src/game/coincommunities.js
@@ -773,7 +773,9 @@ export class CoinCommunities {
// A malformed mint means the link is broken, not that the world is empty.
// Say so and leave them in the lobby, where every real world is one tap
// away, instead of building a convincing world nobody else can join.
- log.warn('[coincommunities] ignoring a malformed ?coin= mint:', mint);
+ // The toast is the signal; this line is telemetry for a designed path,
+ // so it stays below warn level.
+ log.info('[coincommunities] ignoring a malformed ?coin= mint:', mint);
this.ui.toast('That world link looks broken, so we left you in the lobby. Pick a community below.', 'warn');
} else if (mint) {
const tier = p.get('tier') === 'holders' ? 'holders' : 'general';
@@ -854,7 +856,9 @@ export class CoinCommunities {
const raw = await r.json();
this.ui.setCoins(mapCoins(raw));
} catch (err) {
- log.warn('[coincommunities] coin load failed:', err?.message);
+ // Designed failure state: the lobby shows its manual-retry error card,
+ // so this is expected-path telemetry, not a warning.
+ log.info('[coincommunities] coin load failed:', err?.message);
this.ui.setCoinsError(() => this._loadCoins());
}
}
@@ -872,7 +876,7 @@ export class CoinCommunities {
if (coin?.mint) this.ui.setFeatured({ ...HOME_TOWN, ...coin, official: true });
} catch (err) {
// Non-fatal: the static pin from above stands in until next load.
- log.warn('[coincommunities] home town refresh failed:', err?.message);
+ log.info('[coincommunities] home town refresh failed:', err?.message);
}
}
@@ -902,7 +906,13 @@ export class CoinCommunities {
marketCap: c.usd_market_cap || c.market_cap_usd || c.marketCap || 0,
};
} catch (err) {
- log.warn('[coincommunities] coin identity lookup failed:', err?.message);
+ // A designed miss: our own deadline fired, /api is blocked, or the feed
+ // blipped. The world takes its generated-art fallback either way, so
+ // this is expected-path telemetry, not a warning.
+ const why = err?.name === 'AbortError'
+ ? `timed out after ${COIN_IDENTITY_TIMEOUT_MS}ms`
+ : (err?.message || String(err));
+ log.info('[coincommunities] coin identity lookup missed, using generated art:', why);
return null;
} finally {
clearTimeout(timer);