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): log designed fail-open paths through the gated logger instead of console.warn

nirholas692dd08822e8
diff --git a/src/game/avatar-thumb.js b/src/game/avatar-thumb.js
index b9afadfbb..c155ac4a6 100644
--- a/src/game/avatar-thumb.js
+++ b/src/game/avatar-thumb.js
@@ -111,7 +111,11 @@ export function renderAvatarThumb(url) {
if (!url) return Promise.resolve(null);
if (_cache.has(url)) return _cache.get(url);
const p = enqueueSnapshot(url).catch((err) => {
- log.warn('[avatar-thumb] preview failed:', url, err?.message);
+ // A preview that never renders is a designed outcome, not a fault: the
+ // caller puts the chip's glyph back (_renderChipPreview), so the picker
+ // stays complete. An ad blocker on the avatar CDN, or a venue with no
+ // route to it, makes this the normal path rather than the rare one.
+ log.info('[avatar-thumb] preview failed:', url, err?.message);
return null;
});
_cache.set(url, p);
diff --git a/src/game/play-gate.js b/src/game/play-gate.js
index 60e6c4115..ed4e222ec 100644
--- a/src/game/play-gate.js
+++ b/src/game/play-gate.js
@@ -13,6 +13,7 @@
// no visible interruption.
import { fetchPlayConfig, signInToPlay, loadStoredPass, clearStoredPass, hasWallet, PlayAuthError } from './play-auth.js';
+import { log } from '../shared/log.js';
const PHANTOM_INSTALL = 'https://phantom.app/download';
@@ -62,7 +63,11 @@ class Gate {
// the real authority — a genuinely-gated world refuses any unsigned room
// join, so the worst case here is an honest bounce at join, not free entry.
// This honors the self-healing contract documented at _ensurePlayAccess.
- console.warn('[play-gate] gate probe failed, opening /play:', err?.message || err);
+ // Telemetry for a designed path, so it logs at info through the gated
+ // logger: a raw console.warn here announced our own fail-open branch as a
+ // defect in every visitor's console, including the ones this branch exists
+ // to serve (a venue filter or an ad blocker eating /api/play/config).
+ log.info('[play-gate] gate probe failed, opening /play:', err?.message || err);
this._finish({ required: false });
return;
}