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(create-video): stop fetching the default avatar the login redirect throws away

nirholas6cc31f9ed395
diff --git a/data/changelog.json b/data/changelog.json
index fd5c726ff..da34af323 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,16 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-08-14",
+ "title": "The video studio stops loading an avatar it is about to throw away",
+ "summary": "Open /create/video signed out and the page did two things at once: it started downloading the default avatar model, and it checked whether you were signed in so it could send you to the login page. The redirect always won, which killed the model download halfway through and left an error in the browser console for the abandoned file, plus one more for every texture the viewer had started unpacking. Nothing was broken on screen, but a signed-out visitor was made to pull down three quarters of a megabyte of 3D model on their way to a login form, on whatever connection they happened to be on. The page now waits until it knows who you are before it loads anything: signed in, the avatar appears exactly as before, picked from your own avatars with the bundled one as the fallback; signed out, nothing is fetched and the console stays clean.",
+ "tags": [
+ "fix",
+ "improvement"
+ ],
+ "link": "/create/video"
+ },
{
"date": "2026-08-14",
"title": "Eight more docs pages audited, and the embed snippet that would have failed on paste is fixed",
diff --git a/pages/create/video.html b/pages/create/video.html
index 691be20e0..c02ffabe4 100644
--- a/pages/create/video.html
+++ b/pages/create/video.html
@@ -713,7 +713,6 @@
<div class="avatar-preview-wrap">
<model-viewer
id="avatar-viewer"
- src="/avatars/default.glb"
alt="Selected avatar preview"
auto-rotate
auto-rotate-delay="500"
diff --git a/src/create-video.js b/src/create-video.js
index 0001b808d..186aa71a2 100644
--- a/src/create-video.js
+++ b/src/create-video.js
@@ -104,6 +104,12 @@ async function fetchSignedGlbUrl(id) {
}
}
+// The viewer starts with no src: this page redirects a signed-out visitor to
+// /login, and a model download started before that check is torn down by the
+// redirect, which model-viewer reports as an uncaught "Failed to fetch" (once
+// more per texture it was mid-way through decoding). Every path out of
+// loadAvatars() selects an avatar, and selectAvatar() sets the src, so the
+// model still loads the moment the account is known.
function addDefaultThumb() {
const url = '/avatars/default.glb';
const thumb = createThumb('default', url, null, 'Default');