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.

feat: fix live agents wall crashing on load and update changelog entries

zprve42ea9c0bfed
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e6aebb55..ccdcf7a8b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -28,6 +28,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Create an agent by describing it — the wizard now builds itself** — Spinning up an agent no longer means filling out five steps of fields. At the top of the Create flow there's now a single box: describe your agent in a sentence — "a witty crypto market analyst that explains charts in plain English" — and we generate the whole thing for you: name, description, tags, the right skills, a fitting 3D body, a marketplace category, a greeting, and its personality. No idea where to start? Tap an example or hit "Surprise me" and get a complete agent with zero typing. Everything lands on the Review step pre-filled, so you read it over, tweak anything you like, and ship. The by-hand form is still right there for anyone who wants it. (`/create-agent`) `[feature]`
- **Five pages that were returning 404 are reachable again** — The Gaussian-splat viewer (/splat), the capture tool (/capture), the integrations directory (/integrations), partners (/partners), and the live-agents board (/agents-live) were all returning a 404 in production even though the pages existed and were linked from the nav. Our routing pins every clean URL explicitly, and these five were missing their entry, so the request fell through to the not-found page. We added the missing routes and tightened the route audit so a new page can no longer ship without one. (`/splat`) `[fix]`
- **Fixed strategy backtesting failing to find candidate coins** — Running a strategy backtest (and live strategy runs) could fail with a server error while scanning for candidate coins. The scan and trading steps rely on several bundled trading skills, but only one of them was being shipped to production — so the moment a backtest tried to pull trending or new coins, it hit a missing-module error. All of the required skills now deploy together, and backtests source their candidate coins and replay normally again. `[fix]`
+- **Fixed the live agents wall crashing on load** — The /agents-live page — the wall of agents working in real time — was throwing an error the moment it tried to start its frames-per-second ticker, which froze the live counters and stat bar. The page now starts cleanly and the live FPS, active, and total counts update every second as agents stream in. (`/agents-live`) `[fix]`
- **Fixed: "Generate API key" in the Agent Screen worker setup** — The Launch your browser agent wizard (/agent-screen) has a Generate button that mints the API key the worker uses to authenticate. The button was failing with a permission error because it wasn't attaching the security token the server requires, so you couldn't get past step 2. It now reads and sends that token correctly, so generating the key — and starting a live agent screen stream — works again. The same token-handling fix was applied to one-click agent wallet provisioning. (`/agent-screen`) `[fix]`
- **Forge Content Health — the platform canaries its own generation engine every 10 minutes** — Every 3D generation the Forge produces begins by running a prompt through the platform's generative AI lane, so if that lane slows down or goes dark, creations stall before a mesh is ever built. The platform now watches for this automatically. Every ten minutes an autonomous agent makes a real on-chain payment to a new lightweight health_check mode on /api/x402/forge, which runs one fast text completion over the same free-first model chain Forge depends on — no expensive 3D reconstruction — and reports back whether content was generated, how long it took, and the token count. A completion slower than five seconds, or an outright generator outage, raises a Forge performance alert that an on-call dashboard reads in a single lookup and that clears itself once generation is healthy again. The new health_check mode is also available to any x402 agent on the bazaar for a fraction of a cent, far cheaper than a full generation, for callers that just want to confirm the engine is live. `[infra, feature]`
- **Forge Image Generation Canary — the platform validates its own image pipeline every 5 minutes** — Every Forge job that reconstructs a 3D mesh starts with a text-to-image call. If the image provider chain is down or hung, every paid Forge generation silently fails — before users even hit the paywall. The platform now detects this automatically. Every five minutes an autonomous agent makes a real on-chain $0.001 USDC payment to /api/x402/forge with body { mode: "health_check", type: "image", prompt: "A simple blue circle." }. The endpoint runs one real text-to-image call through the free-first provider chain (NIM FLUX → Vertex Imagen → Replicate backstop) and uploads the result to R2 CDN — proving the full image generation and CDN upload path end-to-end. The extracted signal { generated, url, latency_ms } lands in x402_autonomous_log.signal_data. When generation fails or latency exceeds 30 seconds, a Redis alert (x402:forge-image-health:alert) is raised so ops can investigate before users see broken generations. The image alert key is separate from the existing text LLM canary alert so both lanes can degrade independently. `[infra, feature]`
diff --git a/data/changelog.json b/data/changelog.json
index 8aec4b22f..cf46d63a5 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$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-06-28",
+ "title": "Fixed the live agents wall crashing on load",
+ "summary": "The /agents-live page — the wall of agents working in real time — was throwing an error the moment it tried to start its frames-per-second ticker, which froze the live counters and stat bar. The page now starts cleanly and the live FPS, active, and total counts update every second as agents stream in.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/agents-live"
+ },
{
"date": "2026-06-28",
"title": "Coin worlds now have a billboard you can feature content on",
diff --git a/public/changelog.json b/public/changelog.json
index f22b4cda0..282e6db0a 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-28T22:56:12.840Z",
+ "generated_at": "2026-06-28T23:30:20.151Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -235,6 +235,16 @@
"fix"
]
},
+ {
+ "date": "2026-06-28",
+ "type": "update",
+ "title": "Fixed the live agents wall crashing on load",
+ "summary": "The /agents-live page — the wall of agents working in real time — was throwing an error the moment it tried to start its frames-per-second ticker, which froze the live counters and stat bar. The page now starts cleanly and the live FPS, active, and total counts update every second as agents stream in.",
+ "link": "/agents-live",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-28",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 2fd7bfe2b..54b2020e2 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -182,6 +182,14 @@
<category>fix</category>
<description>Running a strategy backtest (and live strategy runs) could fail with a server error while scanning for candidate coins. The scan and trading steps rely on several bundled trading skills, but only one of them was being shipped to production — so the moment a backtest tried to pull trending or new coins, it hit a missing-module error. All of the required skills now deploy together, and backtests source their candidate coins and replay normally again.</description>
</item>
+ <item>
+ <title>Fixed the live agents wall crashing on load</title>
+ <link>https://three.ws/agents-live</link>
+ <guid isPermaLink="false">2026-06-28:Fixed the live agents wall crashing on load</guid>
+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>The /agents-live page — the wall of agents working in real time — was throwing an error the moment it tried to start its frames-per-second ticker, which froze the live counters and stat bar. The page now starts cleanly and the live FPS, active, and total counts update every second as agents stream in.</description>
+ </item>
<item>
<title>Fixed: &quot;Generate API key&quot; in the Agent Screen worker setup</title>
<link>https://three.ws/agent-screen</link>
diff --git a/public/features.json b/public/features.json
index 7f0d30223..bc938060d 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-28T22:56:12.827Z",
+ "generated_at": "2026-06-28T23:30:20.129Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/agents-live.js b/src/agents-live.js
index c3f44204c..c9a74df44 100644
--- a/src/agents-live.js
+++ b/src/agents-live.js
@@ -29,6 +29,10 @@ let _cursor = null;
let _hasMore = true;
let _loading = false;
+// Interval handles for the FPS ticker and idle repaint loops.
+let _fpsInterval = null;
+let _idleRepaint = null;
+
const FRAME_STALE_MS = 6000; // no frame within this window ⇒ fall back to activity
const WATCH_PING_MS = 20000; // re-assert watch intent while a card is on screen
diff --git a/src/walk-agent-desk.js b/src/walk-agent-desk.js
index c0e98b64a..87ef43956 100644
--- a/src/walk-agent-desk.js
+++ b/src/walk-agent-desk.js
@@ -145,7 +145,6 @@ function createDesk(scene, opts = {}) {
// ── avatar seated behind desk ────────────────────────────────────────
let avatar = null;
- let avatarMixer = null;
let avatarManager = null;
if (avatarUrl) {
@@ -166,12 +165,26 @@ function createDesk(scene, opts = {}) {
group.add(model);
avatar = model;
- avatarManager = new AnimationManager(model, { loop: true });
- if (gltf.animations?.length) {
- avatarMixer = avatarManager.init(gltf.animations);
- // Try sit clip, fall back to idle
- const hasSit = gltf.animations.some((a) => /sit/i.test(a.name));
- avatarManager.play(hasSit ? 'sit' : 'idle');
+ // Drive idle via the universal canonical clip library, which retargets the
+ // pre-baked idle onto ANY humanoid rig (Mixamo, Avaturn, VRM, …). The GLB's
+ // own gltf.animations are intentionally ignored — most avatars ship without
+ // animation, so the shared clip is what gives the desk figure presence. A rig
+ // that can't be skeleton-driven keeps its authored bind pose.
+ avatarManager = new AnimationManager();
+ avatarManager.attach(model, { avatarUrl });
+ if (avatarManager.supportsCanonicalClips()) {
+ fetch('/animations/manifest.json', { cache: 'force-cache' })
+ .then((r) => {
+ if (!r.ok) throw new Error(`HTTP ${r.status} fetching animation manifest`);
+ return r.json();
+ })
+ .then((manifest) => {
+ const needed = manifest.filter((d) => d.name === 'idle');
+ if (!needed.length) return;
+ avatarManager.setAnimationDefs(needed);
+ return avatarManager.loadAll().then(() => avatarManager.play('idle'));
+ })
+ .catch((err) => log.warn('[agent-desk] idle clip load failed:', err));
}
}).catch((err) => log.warn('[agent-desk] avatar load failed:', err));
}
@@ -272,7 +285,7 @@ function createDesk(scene, opts = {}) {
// ── public interface ──────────────────────────────────────────────────
function update(dt, playerPos) {
if (destroyed) return;
- if (avatarMixer) avatarMixer.update(dt);
+ if (avatarManager) avatarManager.update(dt);
if (!isDark && canvasAnimFrame) {
cancelAnimationFrame(canvasAnimFrame);
canvasAnimFrame = null;
@@ -287,6 +300,7 @@ function createDesk(scene, opts = {}) {
client.disconnect();
hideLabel();
if (canvasAnimFrame) cancelAnimationFrame(canvasAnimFrame);
+ avatarManager?.detach();
scene.remove(group);
// Dispose geometries, materials, textures
group.traverse((o) => {