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: update changelog with new multiplayer world synchronization fix and improve schema handling in client connections

zprvccf73a406032
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 73cc83ea9..17e160c94 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -39,6 +39,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **The Avatar Engines Atlas page is now reachable** — The link to the Avatar Engines Atlas — the curated rundown of the open-source and commercial engines behind high-quality, photoreal 3D human avatars — was returning a 404 because the page was never wired into routing. The route is now in place, so the page opens from navigation as intended. (`/avatar-engines`) `[fix]`
- **The main menu is now organized — no more walls of links** — The top navigation kept everything but had become hard to scan: the Launch menu alone listed 25 features in one long single-column drop-down, and nearly every item shouted a "New" badge, so the badge meant nothing. Each menu — Build, Discover, Launch, Learn — is now split into clearly labelled columns grouped by what you're trying to do (Launch, for example, splits into Launch / Terminal & trade / Intelligence / Compete & earn). Every feature is still one click away, on desktop and in the mobile drawer; nothing was removed or moved off-platform. The only badge left is the green "Live" dot, which now genuinely means the page is running right now. `[improvement]`
- **The Money Pulse now sits on a pure-black canvas** — The Money Pulse page (/pulse) now renders on a true black background in every theme, so the live feed of tips, launches, trades and agent-to-agent payments reads as one calm, high-contrast field. Previously the page could pick up a lighter surface or near-black tone depending on your theme; it's now consistently black with the monochrome ink ramp pinned for readability. (`/pulse`) `[improvement]`
+- **The shared 3D world stays in sync through server updates** — After we shipped an update to the multiplayer world, players who hadn't reloaded the page could land in a broken session — other people stopped appearing, movement froze, and the browser console filled with decode errors — until a hard refresh. The cause: the page read the world using its own bundled copy of the world's data layout, which fell out of step with the freshly updated server. The client now reads the layout the server itself describes when you join, so it always matches the live server. Joining the walk world and coin community worlds survives a server update without a forced refresh. `[fix]`
- **Trending and the agent directory now actually show agents** — The Trending leaderboard (/trending) and the public agent directory were coming up empty no matter how busy the platform was — every list rendered "No trending agents yet." Both feeds ranked agents by chat activity using a column that doesn't exist in the database, so the query failed silently and returned nothing. They now count real chat activity (LLM usage events) the same way the rest of the site does, so the 24h, 7d, and all-time rankings — and the directory's "popular" sort — populate with the agents people are actually using. (`/trending`) `[fix]`
- **User Activity Analytics — DAU, WAU, and top features now tracked every 6 hours via x402** — The platform now monitors its own engagement metrics automatically. Every six hours an autonomous agent pays the /api/x402/analytics endpoint for a live user_activity report — computing DAU, WAU, stickiness (DAU/WAU ratio), the top ten features by event volume, the platform error rate, and session-length distribution (average, median, and p90). All figures are read live from the real metered tables; an empty window returns zeros, never fabricated numbers. The extracted signal — dau, wau, top_feature — is recorded to x402_autonomous_log for the status surface to read, and every snapshot is persisted to a user_activity_snapshots time series for trend alerting and the engagement dashboard. The same report is available to any x402 agent on the bazaar for $0.005 per call. `[feature, infra]`
- **x402 Volume Analytics — the platform measures its own payment economy every 30 minutes** — The autonomous loop now pays /api/x402/analytics every 30 minutes with { report: "x402_volume", period: "24h" } for a live read of x402 transaction volume across every paid endpoint. The report comes straight from the settled-payment ledger and returns the totals that prove ecosystem growth — total settled calls, total USDC paid, and unique paying wallets — alongside a per-endpoint breakdown and the least-active ("underused") endpoints, so the platform can see at a glance which services are thriving and which need a push or a rethink. The headline totals and the underused-endpoint list are recorded as an actionable signal, and the same report is available to any x402 agent on the bazaar for $0.005 per call. `[feature, infra]`
diff --git a/data/changelog.json b/data/changelog.json
index c6c511eba..01e5d9e5f 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,14 @@
{
"$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": "The shared 3D world stays in sync through server updates",
+ "summary": "After we shipped an update to the multiplayer world, players who hadn't reloaded the page could land in a broken session — other people stopped appearing, movement froze, and the browser console filled with decode errors — until a hard refresh. The cause: the page read the world using its own bundled copy of the world's data layout, which fell out of step with the freshly updated server. The client now reads the layout the server itself describes when you join, so it always matches the live server. Joining the walk world and coin community worlds survives a server update without a forced refresh.",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-28",
"title": "Animation previews no longer show the emote hotkey bar",
diff --git a/public/changelog.json b/public/changelog.json
index dd42e27f9..b4e148868 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-28T10:12:31.380Z",
+ "generated_at": "2026-06-28T10:29:00.826Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -352,6 +352,16 @@
"improvement"
]
},
+ {
+ "date": "2026-06-28",
+ "type": "update",
+ "title": "The shared 3D world stays in sync through server updates",
+ "summary": "After we shipped an update to the multiplayer world, players who hadn't reloaded the page could land in a broken session — other people stopped appearing, movement froze, and the browser console filled with decode errors — until a hard refresh. The cause: the page read the world using its own bundled copy of the world's data layout, which fell out of step with the freshly updated server. The client now reads the layout the server itself describes when you join, so it always matches the live server. Joining the walk world and coin community worlds survives a server update without a forced refresh.",
+ "link": null,
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-06-28",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index e437180fc..644e0f10c 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -270,6 +270,14 @@
<category>improvement</category>
<description>The Money Pulse page (/pulse) now renders on a true black background in every theme, so the live feed of tips, launches, trades and agent-to-agent payments reads as one calm, high-contrast field. Previously the page could pick up a lighter surface or near-black tone depending on your theme; it's now consistently black with the monochrome ink ramp pinned for readability.</description>
</item>
+ <item>
+ <title>The shared 3D world stays in sync through server updates</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-28:The shared 3D world stays in sync through server updates</guid>
+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>After we shipped an update to the multiplayer world, players who hadn't reloaded the page could land in a broken session — other people stopped appearing, movement froze, and the browser console filled with decode errors — until a hard refresh. The cause: the page read the world using its own bundled copy of the world's data layout, which fell out of step with the freshly updated server. The client now reads the layout the server itself describes when you join, so it always matches the live server. Joining the walk world and coin community worlds survives a server update without a forced refresh.</description>
+ </item>
<item>
<title>Trending and the agent directory now actually show agents</title>
<link>https://three.ws/trending</link>
diff --git a/public/features.json b/public/features.json
index f0a85380c..c30c184f6 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-28T10:12:31.365Z",
+ "generated_at": "2026-06-28T10:29:00.806Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/game/community-net.js b/src/game/community-net.js
index ef524c128..d24a9cece 100644
--- a/src/game/community-net.js
+++ b/src/game/community-net.js
@@ -10,7 +10,6 @@
// untouched.
import { Client, getStateCallbacks } from 'colyseus.js';
-import { WalkState } from '../../multiplayer/src/schemas.js';
import { log } from '../shared/log.js';
import { joinRoomWithTimeout } from '../shared/colyseus-connect.js';
@@ -256,7 +255,10 @@ export class CommunityNet {
// room, proxy holding the upgrade) would otherwise strand us in 'connecting'
// forever — joinOrCreate has no timeout of its own. On timeout this throws
// 'connect_timeout', falling through to the catch → reconnect with backoff.
- const room = await joinRoomWithTimeout(this.client, ROOM_NAME, options, WalkState);
+ // No root-schema class passed on purpose: decode from the server's reflected
+ // schema (handshake) so the client never desyncs when a deployed server adds an
+ // append-only field this bundle predates. See joinRoomWithTimeout for the why.
+ const room = await joinRoomWithTimeout(this.client, ROOM_NAME, options);
if (this._destroyed || gen !== this._connectGen) {
try { room.leave(); } catch {}
return;
diff --git a/src/shared/colyseus-connect.js b/src/shared/colyseus-connect.js
index 590c4b324..09526e2fc 100644
--- a/src/shared/colyseus-connect.js
+++ b/src/shared/colyseus-connect.js
@@ -37,7 +37,16 @@ export const CONNECT_TIMEOUT_MS = 15_000;
* @param {import('colyseus.js').Client} client a live Colyseus client
* @param {string} roomName matchmaking room name
* @param {Record<string, unknown>} options join options (filterBy keys, identity…)
- * @param {T} schema the room state schema class
+ * @param {T} [schema] optional concrete root-state schema class.
+ * Prefer omitting it: when absent, colyseus.js decodes state from the schema the
+ * SERVER reflects during the join handshake (SchemaSerializer.handshake →
+ * Reflection.decode), so the client's field layout always tracks the running
+ * server. Passing a statically-bundled class instead forces the client to decode
+ * with its own copy — which silently desyncs the instant the deployed server adds
+ * an (append-only) field the bundle predates, flooding the console with
+ * `@colyseus/schema: field not defined` / `definition mismatch` / `Invalid byte`
+ * and rendering a broken world until the front-end is redeployed. Reflection has
+ * no such failure mode; the field-name callbacks (getStateCallbacks) work either way.
* @param {number} [timeoutMs] join deadline; defaults to CONNECT_TIMEOUT_MS
* @returns {Promise<import('colyseus.js').Room>} the joined room
* @throws {Error} `connect_timeout` if the handshake doesn't complete in time
diff --git a/src/walk-net.js b/src/walk-net.js
index a3e9e03be..f30d8f417 100644
--- a/src/walk-net.js
+++ b/src/walk-net.js
@@ -13,7 +13,6 @@
// (handled in walk.js).
import { Client, getStateCallbacks } from 'colyseus.js';
-import { WalkState } from '../multiplayer/src/schemas.js';
import { log } from './shared/log.js';
import { joinRoomWithTimeout } from './shared/colyseus-connect.js';
@@ -188,7 +187,10 @@ export class WalkNet {
coinImage: this.coinImage,
cosmetics: this.cosmetics,
...(presence ? { presence } : {}),
- }, WalkState);
+ // No root-schema class passed on purpose: decode state from the server's
+ // reflected schema (handshake) so the client never desyncs when a deployed
+ // server adds an append-only field this bundle predates. See joinRoomWithTimeout.
+ });
if (this._destroyed || gen !== this._connectGen) {
try { room.leave(); } catch {}
return;