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: walk session persistence wiring; remove batch-5 walk specs

miniaturization25d9eeaabf2d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2a1ff89a1..4a20b53ca 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,10 +15,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Authorize $THREE once, then pay with no wallet popups** — The $THREE page now lets you set a spending allowance: approve a cap once, and paid actions across the platform — forge, skills, names, cosmetics — debit it automatically without asking you to sign every time. It's non-custodial and built on Solana's native, audited Subscriptions & Allowances program: your tokens stay in your own wallet until a charge pulls them, never more than the cap you set. You can see what your remaining cap covers, get a heads-up when it runs low, top it up, or revoke it in one click anytime. Prefer to sign each payment? Just leave it off. (`/three-token`) `[feature]`
- **Authorize $THREE once, then pay with no wallet popups** — The $THREE page now lets you set a spending allowance: approve a cap once, and paid actions across the platform — forge, skills, names, cosmetics — debit it automatically without asking you to sign every time. It's non-custodial and built on Solana's native, audited Subscriptions & Allowances program: your tokens stay in your own wallet until a charge pulls them, never more than the cap you set, and you can let it expire or revoke it anytime. Set a cap, top it up, or leave it off and keep signing each payment — your choice. (`/three-token`) `[feature]`
- **Clearer empty state on the $THREE live-trades feed** — Before the next trade lands, the live-trades panel on the $THREE token page now reads in plain language — 'Live trades will appear here' — with a short note on what it shows, and the technical detail tucked behind an info tooltip. Screen readers announce new trades as they stream in. (`/three-token`) `[improvement]`
+- **Coin pages stay fast when pump.fun is having a moment** — The /launches coin page pulls creator fee-sharing earnings live from pump.fun. We put that call behind a circuit breaker (built on the well-tested cockatiel library rather than home-grown code): if pump.fun slows down or errors, the breaker trips after a few failures and the page instantly skips that one enrichment instead of every visitor waiting out the timeout. The earnings simply show as unavailable until pump.fun recovers, and the rest of the page — registry, intel, outcome, trader record — was never affected. Same approach is now available platform-wide for other third-party data sources. (`/launches`) `[infra, improvement]`
- **Discover and character feeds load faster under heavy traffic** — The Discover grid and the published-agents (Characters) feed now serve from the edge cache, so a surge of visitors is absorbed at the CDN instead of re-running a database scan on every request. Pages stay fast and consistent even during a rush, and a stale-while-revalidate window keeps them warm between refreshes. (`/discover`) `[improvement, infra]`
- **Discover and Marketplace now browse the same way** — Searching, filtering, and sorting agents now work identically on /discover and /marketplace. Both pages share one polished control bar — debounced search, filter chips, and sort — and your choices are saved in the page address, so a filtered view is shareable and the browser back button restores it. Loading, empty, and error states were unified too: a search that matches nothing shows a clear 'no results' panel with a one-click 'Clear filters', and a failed load offers a retry instead of a blank grid. (`/discover`) `[improvement]`
- **Empty pages now guide you instead of going blank** — Across the dashboard and marketplace, anywhere a list can be empty now explains what belongs there, why it's useful, and the next step — instead of a bare 'No data' line. Your Agents, Avatars, Analytics, Brain, embed policies, the marketplace, and My Agents each greet a fresh account with a short plain-language intro and a clear button to create your first one (plus a 'What's an agent?' link). Filtered searches that return nothing now say so and offer to clear the filter. It's the same designed component everywhere, so the whole platform feels consistent and never abandoned. (`/dashboard`) `[improvement]`
- **Every Forge quality tier now runs on free engines** — Forge's quality tiers — Draft, Standard, and High — all generate on zero-cost engines now: Draft and Standard on the fast free NVIDIA lane, and High on the higher-fidelity, fully textured free HuggingFace engine. Higher tiers buy you genuinely better geometry and textures, not a different bill behind the scenes. Photo-to-3D at any tier routes straight to a free engine too, so a generation never quietly falls back to a paid lane. The High tier stays a $THREE holder perk (or a one-off pay-per-use) — that's the price of premium quality, not a cost we're passing through. (`/forge`) `[improvement, feature]`
+- **Follows and reviews now ring the notification bell** — Following someone now actually reaches them: when a new follower arrives, it shows up in your notification bell with a link straight to their profile. And when someone reviews one of your agents, you get a notification with their rating. Both flow through the same in-app notification center you already use for payments and sales — no new place to check. Re-following or editing an existing review won't re-notify, so the bell stays signal, not noise. (`/feed`) `[feature, improvement]`
- **Forge hardened for a traffic surge — faster loads, protected free lanes** — We scaled Forge for the influx of new users. The engine catalog and live health status now serve from the edge cache, so the page loads instantly even under heavy traffic instead of recomputing on every visit. We also added a platform-wide safety valve on paid generation: if demand ever spikes past the shared paid budget, the free engines (NVIDIA and Hugging Face) stay fully open and you get a clear 'try a free engine' message instead of a hard failure — your own bring-your-own-key engines are never affected. Net result: Forge stays fast and available as we grow, and free 3D generation never gets crowded out. (`/forge`) `[infra, improvement]`
- **Forge scales further — duplicate generations collapse, free lane protected, prices shown up front** — More headroom for the influx. Forge now recognizes when the same prompt or photo set is already generating and quietly hands everyone the same result instead of paying to build it twice — so a viral prompt or a double-click no longer multiplies cost or wait. The free Hugging Face engine is now capped to a safe number of simultaneous jobs so a rush can't tie up the servers and stall everyone; over the cap, your generation cleanly falls back to another engine instead of hanging. The composer now shows the real price before you generate — 'Free' for Draft and Standard, the exact dollar amount (or 'Free, you hold $THREE') for High, and 'billed to your own key' for bring-your-own-key engines — so there are no surprises. The engine picker also gained a small legend explaining the badges at a glance — which engines are free, which use your own key, and which are busy or unavailable. And the 3D viewer now shows a loading shimmer instead of a dark void while your model paints in. (`/forge`) `[improvement, infra]`
- **Forge stays calm under a crowd: live countdown, graceful high-demand handling, one-tap model retry** — Generating a 3D model now feels steadier when lots of people are forging at once. The progress meter shows a real "~Ns left" countdown instead of a static estimate, so you can see it moving. If the free engines are momentarily at capacity during a rush, you get a friendly "high demand" notice with a live retry countdown that re-arms itself the moment a slot frees up — your spot in line, not a dead-end error — and you can keep refining a model you already have while you wait. And if a finished model ever fails to paint because of a brief network blip, a new Retry button reloads it in place instead of forcing a download. Behind the scenes, generation success rate and latency are now tracked so we can catch slowdowns before they reach you. (`/forge`) `[improvement, fix]`
@@ -28,6 +30,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Grind an agent's vanity wallet right on its page — with your CPU cores** — Giving an agent a custom wallet address used to run on our servers, so it was capped at short patterns and would time out and error on anything harder. Now the agent's Wallet → Vanity tab grinds the address in your own browser, exactly like the standalone /vanity-wallet tool: choose how many CPU cores to spend, match case-insensitively for a faster find, watch the live tries-per-second and ETA, and pause or resume anytime. Longer, rarer patterns are now possible with no timeouts. When a match is found, any SOL or tokens in the old wallet are still automatically swept to the new address before the key is swapped — funds are never stranded — and the server verifies the new address truly matches your pattern before storing it. `[fix, feature, improvement]`
- **Hardened on-chain confirmations and faster profile loads** — Two reliability fixes for everyone trading, launching, and browsing. First: every on-chain action that moves funds — coin launches, buys and sells, buybacks, payouts, transfers — now treats a transaction that lands but reverts as a real failure instead of quietly reporting success. You'll see an accurate error and your spending limit won't be charged for a trade that didn't go through. Second: public profile and creator pages are now cacheable at the edge, so they load noticeably faster under load. No action needed — these apply automatically. `[fix, security, improvement]`
- **Live market feed stays up through provider blips** — The trending-tokens feed that powers the home card, communities, the token constellation, and the 3D visualizer is now resilient to upstream outages. If a market data provider goes down or rate-limits us, we transparently fall back to a second source; if both are briefly unavailable, the surfaces keep showing the last good data (clearly marked as a moment stale) instead of going blank. We also added a fast-fail circuit breaker so a slow provider can't drag the feed down during a traffic spike. Net effect: the live market views stay populated and snappy even when a data provider hiccups. `[infra, improvement]`
+- **Our paid services are properly discoverable by AI agents again** — Every three.ws paid endpoint and MCP tool is published to the x402 discovery indexes (Coinbase's Bazaar, x402scan, agentic.market) so AI agents can find and pay for them automatically. A stray invisible character in the published Solana receiving address was making indexers reject the entire catalog, and our MCP tools weren't flagged as discoverable — both are fixed, service names were tidied to meet listing limits, and we added a checker that catches these issues before they ship. Result: agents can discover and call our services across the ecosystem. `[improvement]`
- **Pay-per-call endpoints accept Solana USDC payments again** — Paying for any x402 endpoint with Solana USDC was failing the moment the wallet tried to build the payment — the platform's receiving address was being published with a stray invisible character, so a correctly-built payment got rejected as going to the wrong recipient. Payment addresses are now cleaned before they're ever advertised, so Solana USDC payments to paid endpoints go through and settle as expected. `[fix]`
- **Payment hardening and a steadier holder leaderboard** — Two behind-the-scenes reliability and safety fixes. Agent payment invoices now verify that the wallet paying is actually linked to your account before an invoice is created, closing a gap that let bogus payment requests be generated against any agent. And the $THREE holder leaderboard, its share card, and the token stats panel no longer each kick off a full on-chain holder scan during a traffic spike — one scan now serves everyone and refreshes the shared snapshot, so the leaderboard stays fast and responsive under load. Nothing to do on your end. (`/leaderboard`) `[security, fix, infra]`
- **Platform-wide hardening: payment integrity, security, and scale** — A broad reliability pass across the parts of three.ws that move real money and serve heavy traffic. On the money side: bundle purchases and agent payments are now verified on-chain before anything unlocks, each payment is credited exactly once, withdrawals can't be processed twice, and recurring subscriptions can't be double-billed. On the security side: a set of input-handling and link-safety fixes across pages, stronger protection for custodial keys at rest, and tighter checks on outbound agent payments so funds only ever move in the expected asset. On the scale side: the busiest directory, profile, and feed pages now ride a short cache and run far fewer database queries, so they stay fast as the community grows. Most of this is invisible by design — it's the plumbing that keeps the platform correct and quick under load. `[security, improvement, infra]`
@@ -38,6 +41,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Solana is now the default payment network** — Solana is now the default everywhere you pick a chain — the dashboard's Default payment network setting, x402 merchant settlement, and the monetization payout wallet all default to Solana for every user, with Solana listed first. Base and Polygon remain available if you prefer an EVM chain. (`/dashboard`) `[improvement]`
- **The $THREE page now spells out why to hold — four real utility pillars** — The $THREE page leads with a clear "Why hold $THREE" section: revenue buybacks (a fixed, live share of platform revenue buys $THREE on the open market), holder rewards (every paid action reflects $THREE back to holders pro-rata), hold-to-access (discounts, higher quotas, and pro perks), and real usage (deploying agents, forging avatars, and trading the marketplace all run on $THREE). Each pillar maps to a mechanism that actually exists on the platform, and the buyback figure is wired to the live commitment. The page's market data also now rides a shared cache, so it stays fast and reliable under heavy traffic. (`/three-token`) `[feature, improvement]`
- **The guided tour, now yours to steer** — The 3D guided tour got a major upgrade. Pick how deep to go: a new “Quick highlights” track samples the best of every chapter in a few minutes, or take the full feature-by-feature walk. A new tour map (open it from the ☰ button or press C) lists every chapter and stop, marks where you are, and lets you search and jump anywhere instantly. You can now change the narrator's voice and set the playback speed (0.75×–1.5×) on the fly, and the tour remembers your spot, voice, and pace across sessions — come back later and pick up right where you left off. (`/tour`) `[feature, improvement]`
+- **Walk picks up where you left off, plus click-to-walk** — The walk now remembers your avatar, environment, camera, and position across visits (synced to your account when signed in, cached locally otherwise) and greets you with a “Welcome back” you can dismiss or reset. Click anywhere on the page and your site-wide companion walks there, routing around blocked elements. The features page also gained a live walking-avatar demo. (`/walk`) `[feature, improvement]`
- **Walk with any agent, and leave a trail** — Every agent profile now has a “Walk with this agent” action and a live preview that renders that specific agent walking — the walk embed can now load any agent’s avatar by id. And the walking avatar leaves an aesthetic trail behind it (footprints, a glow, or a fading line, your pick) both in the full walk scene and the site-wide companion. (`/walk`) `[feature, improvement]`
- **Your avatar now walks anywhere — new Walk hub, leaderboard, and creator analytics** — There's a dedicated home for the walking avatar at /walk with live demos across six environments, an embeddable one-tag widget, and a Chrome-extension CTA. A new global leaderboard ranks walkers by distance, sites visited, and time (daily / weekly / all-time), and creators who embed an avatar get a private analytics dashboard — sessions, average duration, distance, top embed origins, and custom conversion events. Page-to-page navigation also gained themed, motion-aware transitions. (`/walk`) `[feature]`
diff --git a/data/changelog.json b/data/changelog.json
index cafcd7934..bcf9fdaa8 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,44 @@
{
"$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-21",
+ "title": "Walk picks up where you left off, plus click-to-walk",
+ "summary": "The walk now remembers your avatar, environment, camera, and position across visits (synced to your account when signed in, cached locally otherwise) and greets you with a “Welcome back” you can dismiss or reset. Click anywhere on the page and your site-wide companion walks there, routing around blocked elements. The features page also gained a live walking-avatar demo.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/walk"
+ },
+ {
+ "date": "2026-06-21",
+ "title": "Coin pages stay fast when pump.fun is having a moment",
+ "summary": "The /launches coin page pulls creator fee-sharing earnings live from pump.fun. We put that call behind a circuit breaker (built on the well-tested cockatiel library rather than home-grown code): if pump.fun slows down or errors, the breaker trips after a few failures and the page instantly skips that one enrichment instead of every visitor waiting out the timeout. The earnings simply show as unavailable until pump.fun recovers, and the rest of the page — registry, intel, outcome, trader record — was never affected. Same approach is now available platform-wide for other third-party data sources.",
+ "tags": [
+ "infra",
+ "improvement"
+ ],
+ "link": "/launches"
+ },
+ {
+ "date": "2026-06-21",
+ "title": "Follows and reviews now ring the notification bell",
+ "summary": "Following someone now actually reaches them: when a new follower arrives, it shows up in your notification bell with a link straight to their profile. And when someone reviews one of your agents, you get a notification with their rating. Both flow through the same in-app notification center you already use for payments and sales — no new place to check. Re-following or editing an existing review won't re-notify, so the bell stays signal, not noise.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/feed"
+ },
+ {
+ "date": "2026-06-21",
+ "title": "Our paid services are properly discoverable by AI agents again",
+ "summary": "Every three.ws paid endpoint and MCP tool is published to the x402 discovery indexes (Coinbase's Bazaar, x402scan, agentic.market) so AI agents can find and pay for them automatically. A stray invisible character in the published Solana receiving address was making indexers reject the entire catalog, and our MCP tools weren't flagged as discoverable — both are fixed, service names were tidied to meet listing limits, and we added a checker that catches these issues before they ship. Result: agents can discover and call our services across the ecosystem.",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-21",
"title": "The guided tour, now yours to steer",
diff --git a/public/changelog.json b/public/changelog.json
index ea8e5668b..853044f2f 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-21T07:29:27.432Z",
+ "generated_at": "2026-06-21T07:38:52.775Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -97,6 +97,17 @@
"improvement"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Coin pages stay fast when pump.fun is having a moment",
+ "summary": "The /launches coin page pulls creator fee-sharing earnings live from pump.fun. We put that call behind a circuit breaker (built on the well-tested cockatiel library rather than home-grown code): if pump.fun slows down or errors, the breaker trips after a few failures and the page instantly skips that one enrichment instead of every visitor waiting out the timeout. The earnings simply show as unavailable until pump.fun recovers, and the rest of the page — registry, intel, outcome, trader record — was never affected. Same approach is now available platform-wide for other third-party data sources.",
+ "link": "/launches",
+ "tags": [
+ "infra",
+ "improvement"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
@@ -139,6 +150,17 @@
"feature"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Follows and reviews now ring the notification bell",
+ "summary": "Following someone now actually reaches them: when a new follower arrives, it shows up in your notification bell with a link straight to their profile. And when someone reviews one of your agents, you get a notification with their rating. Both flow through the same in-app notification center you already use for payments and sales — no new place to check. Re-following or editing an existing review won't re-notify, so the bell stays signal, not noise.",
+ "link": "/feed",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
@@ -239,6 +261,16 @@
"improvement"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Our paid services are properly discoverable by AI agents again",
+ "summary": "Every three.ws paid endpoint and MCP tool is published to the x402 discovery indexes (Coinbase's Bazaar, x402scan, agentic.market) so AI agents can find and pay for them automatically. A stray invisible character in the published Solana receiving address was making indexers reject the entire catalog, and our MCP tools weren't flagged as discoverable — both are fixed, service names were tidied to meet listing limits, and we added a checker that catches these issues before they ship. Result: agents can discover and call our services across the ecosystem.",
+ "link": null,
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
@@ -347,6 +379,17 @@
"improvement"
]
},
+ {
+ "date": "2026-06-21",
+ "type": "update",
+ "title": "Walk picks up where you left off, plus click-to-walk",
+ "summary": "The walk now remembers your avatar, environment, camera, and position across visits (synced to your account when signed in, cached locally otherwise) and greets you with a “Welcome back” you can dismiss or reset. Click anywhere on the page and your site-wide companion walks there, routing around blocked elements. The features page also gained a live walking-avatar demo.",
+ "link": "/walk",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-06-21",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index acff8cd9e..383be0ad9 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -78,6 +78,14 @@
<category>improvement</category>
<description>Before the next trade lands, the live-trades panel on the $THREE token page now reads in plain language — 'Live trades will appear here' — with a short note on what it shows, and the technical detail tucked behind an info tooltip. Screen readers announce new trades as they stream in.</description>
</item>
+ <item>
+ <title>Coin pages stay fast when pump.fun is having a moment</title>
+ <link>https://three.ws/launches</link>
+ <guid isPermaLink="false">2026-06-21:Coin pages stay fast when pump.fun is having a moment</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>infra</category>
+ <description>The /launches coin page pulls creator fee-sharing earnings live from pump.fun. We put that call behind a circuit breaker (built on the well-tested cockatiel library rather than home-grown code): if pump.fun slows down or errors, the breaker trips after a few failures and the page instantly skips that one enrichment instead of every visitor waiting out the timeout. The earnings simply show as unavailable until pump.fun recovers, and the rest of the page — registry, intel, outcome, trader record — was never affected. Same approach is now available platform-wide for other third-party data sources.</description>
+ </item>
<item>
<title>Discover and character feeds load faster under heavy traffic</title>
<link>https://three.ws/discover</link>
@@ -110,6 +118,14 @@
<category>improvement</category>
<description>Forge's quality tiers — Draft, Standard, and High — all generate on zero-cost engines now: Draft and Standard on the fast free NVIDIA lane, and High on the higher-fidelity, fully textured free HuggingFace engine. Higher tiers buy you genuinely better geometry and textures, not a different bill behind the scenes. Photo-to-3D at any tier routes straight to a free engine too, so a generation never quietly falls back to a paid lane. The High tier stays a $THREE holder perk (or a one-off pay-per-use) — that's the price of premium quality, not a cost we're passing through.</description>
</item>
+ <item>
+ <title>Follows and reviews now ring the notification bell</title>
+ <link>https://three.ws/feed</link>
+ <guid isPermaLink="false">2026-06-21:Follows and reviews now ring the notification bell</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Following someone now actually reaches them: when a new follower arrives, it shows up in your notification bell with a link straight to their profile. And when someone reviews one of your agents, you get a notification with their rating. Both flow through the same in-app notification center you already use for payments and sales — no new place to check. Re-following or editing an existing review won't re-notify, so the bell stays signal, not noise.</description>
+ </item>
<item>
<title>Forge hardened for a traffic surge — faster loads, protected free lanes</title>
<link>https://three.ws/forge</link>
@@ -182,6 +198,14 @@
<category>infra</category>
<description>The trending-tokens feed that powers the home card, communities, the token constellation, and the 3D visualizer is now resilient to upstream outages. If a market data provider goes down or rate-limits us, we transparently fall back to a second source; if both are briefly unavailable, the surfaces keep showing the last good data (clearly marked as a moment stale) instead of going blank. We also added a fast-fail circuit breaker so a slow provider can't drag the feed down during a traffic spike. Net effect: the live market views stay populated and snappy even when a data provider hiccups.</description>
</item>
+ <item>
+ <title>Our paid services are properly discoverable by AI agents again</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-21:Our paid services are properly discoverable by AI agents again</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Every three.ws paid endpoint and MCP tool is published to the x402 discovery indexes (Coinbase's Bazaar, x402scan, agentic.market) so AI agents can find and pay for them automatically. A stray invisible character in the published Solana receiving address was making indexers reject the entire catalog, and our MCP tools weren't flagged as discoverable — both are fixed, service names were tidied to meet listing limits, and we added a checker that catches these issues before they ship. Result: agents can discover and call our services across the ecosystem.</description>
+ </item>
<item>
<title>Pay-per-call endpoints accept Solana USDC payments again</title>
<link>https://three.ws/changelog</link>
@@ -262,6 +286,14 @@
<category>feature</category>
<description>The 3D guided tour got a major upgrade. Pick how deep to go: a new “Quick highlights” track samples the best of every chapter in a few minutes, or take the full feature-by-feature walk. A new tour map (open it from the ☰ button or press C) lists every chapter and stop, marks where you are, and lets you search and jump anywhere instantly. You can now change the narrator's voice and set the playback speed (0.75×–1.5×) on the fly, and the tour remembers your spot, voice, and pace across sessions — come back later and pick up right where you left off.</description>
</item>
+ <item>
+ <title>Walk picks up where you left off, plus click-to-walk</title>
+ <link>https://three.ws/walk</link>
+ <guid isPermaLink="false">2026-06-21:Walk picks up where you left off, plus click-to-walk</guid>
+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The walk now remembers your avatar, environment, camera, and position across visits (synced to your account when signed in, cached locally otherwise) and greets you with a “Welcome back” you can dismiss or reset. Click anywhere on the page and your site-wide companion walks there, routing around blocked elements. The features page also gained a live walking-avatar demo.</description>
+ </item>
<item>
<title>Walk with any agent, and leave a trail</title>
<link>https://three.ws/walk</link>
diff --git a/public/features.json b/public/features.json
index 32c00d06a..8b11091e7 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-21T07:29:27.407Z",
+ "generated_at": "2026-06-21T07:38:52.762Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/walk.js b/src/walk.js
index f1309e0d2..043c6e69c 100644
--- a/src/walk.js
+++ b/src/walk.js
@@ -593,6 +593,7 @@ function setCameraMode(mode) {
localStorage.setItem(CAMERA_MODE_KEY, mode);
} catch {}
updateCameraModeIndicator();
+ walkSession?.save();
}
function cycleCameraMode() {
@@ -1321,6 +1322,9 @@ function applyLocalCosmetics(wire) {
async function loadAvatar() {
setLoadingText('Resolving avatar...');
const avatarUrl = await resolveAvatarUrl();
+ // Record the booted avatar's URL so a session snapshot captures the current
+ // avatar even before any in-page swap (id is already seeded from ?avatar).
+ selectedAvatarUrl = avatarUrl;
setLoadingText('Loading 3D model...');
const loader = new GLTFLoader();
const gltf = await loader.loadAsync(avatarUrl);
@@ -1472,6 +1476,17 @@ function setupGestures() {
gestures.buildTray(emoteTrayEl);
gestures.attachTouchButton(document.getElementById('walk-touch-gesture'));
+ // Track the user's recent gestures for session persistence. Wrapping play()
+ // here (rather than editing walk-gestures.js) records every user-initiated
+ // gesture — wheel, tray, quick keys, programmatic — without touching the
+ // gesture module. Remote echoes pass { silent: true } and are not recorded.
+ const _origPlay = gestures.play.bind(gestures);
+ gestures.play = (name, opts = {}) => {
+ const ok = _origPlay(name, opts);
+ if (ok && !opts.silent) recordRecentGesture(name);
+ return ok;
+ };
+
// Programmatic API for the narrator / chat / TTS and embedding hosts.
window.walk = window.walk || {};
window.walk.playGesture = (name) => (gestures ? gestures.play(name) : false);
@@ -2351,6 +2366,107 @@ function recordRecentGesture(name) {
let walkSession = null;
+// Read the live scene into a plain, serialisable snapshot. Everything captured is
+// state walk.js genuinely owns; companion/room are mirrored when present so the
+// document is complete. Returns null only if the avatar isn't placed yet.
+function captureWalkState() {
+ const p = avatarRig?.position;
+ return {
+ avatarId: selectedAvatarId || null,
+ avatarUrl: selectedAvatarUrl || null,
+ envId: currentEnvName || null,
+ cameraMode,
+ position: p ? { x: round3(p.x), y: round3(p.y), z: round3(p.z) } : null,
+ heading: round3(avatarYaw),
+ trailStyle: trailSetting.get(),
+ recentGestures: [...recentGestures],
+ // Multiplayer room — the coin mint doubles as the matchmaking key. Recorded
+ // so the snapshot is complete; rejoining is URL-driven so it is informational.
+ roomCode: COIN_PARAMS.coin || null,
+ };
+}
+
+function round3(n) {
+ return typeof n === 'number' && Number.isFinite(n) ? Math.round(n * 1000) / 1000 : 0;
+}
+
+// Apply a restored snapshot to the live scene. Each field is applied defensively
+// (a missing/invalid field is skipped) so a partial or older snapshot still
+// restores what it can. Avatar swaps run async; the rest applies synchronously.
+async function restoreWalkState(state) {
+ if (!state || typeof state !== 'object') return;
+
+ // Environment — only if it differs from what initEnvironments already staged.
+ if (state.envId && walkManifest && state.envId !== currentEnvName) {
+ const meta = getEnvironment(walkManifest, state.envId);
+ if (meta) await applyEnvironment(meta.name, { initial: true });
+ }
+
+ // Camera mode.
+ if (state.cameraMode && CAMERA_MODES.includes(state.cameraMode)) {
+ cameraMode = state.cameraMode;
+ try {
+ localStorage.setItem(CAMERA_MODE_KEY, cameraMode);
+ } catch {}
+ if (avatar) avatar.visible = cameraMode !== 'firstperson';
+ applyCameraImmediate();
+ }
+
+ // Position + heading. Clamp inside the walkable disc and re-snap the physics
+ // body next frame so the controller starts from the restored spot, not spawn.
+ if (state.position && Number.isFinite(state.position.x) && Number.isFinite(state.position.z)) {
+ let x = state.position.x;
+ let z = state.position.z;
+ const r = Math.hypot(x, z);
+ const maxR = GROUND_RADIUS - 0.5;
+ if (r > maxR) {
+ const k = maxR / r;
+ x *= k;
+ z *= k;
+ }
+ const y = terrain ? terrain.heightAt(x, z) : Number(state.position.y) || 0;
+ avatarRig.position.set(x, y, z);
+ physicsActivePrev = false; // force the character controller to re-sync to here
+ }
+ if (Number.isFinite(state.heading)) {
+ avatarYaw = state.heading;
+ avatarRig.quaternion.setFromAxisAngle(upY, avatarYaw);
+ }
+
+ // Trail style.
+ if (state.trailStyle && TRAIL_STYLE_LABELS[state.trailStyle]) {
+ trailSetting.set(state.trailStyle);
+ trails?.setStyle(state.trailStyle);
+ if (trailToggle) {
+ trailToggle.textContent = TRAIL_STYLE_LABELS[state.trailStyle];
+ trailToggle.style.background =
+ state.trailStyle === 'off' ? 'rgba(255,255,255,0.08)' : 'var(--accent,#7c5cff)';
+ }
+ }
+
+ // Recent gestures — seed the most-recent-first ring for quick re-use.
+ if (Array.isArray(state.recentGestures)) {
+ recentGestures.length = 0;
+ for (const g of state.recentGestures.slice(0, 5)) {
+ if (typeof g === 'string' && !recentGestures.includes(g)) recentGestures.push(g);
+ }
+ }
+
+ // Avatar — swap last so it lands on the restored ground position. Only when it
+ // differs from the booted avatar and resolves to a loadable URL.
+ const wantUrl = state.avatarUrl || null;
+ if (wantUrl && wantUrl !== resolvedAvatarUrl && isLoadableAvatarUrl(wantUrl)) {
+ try {
+ await applyAvatarSwap(wantUrl, state.avatarId || null);
+ } catch (err) {
+ log.warn('[walk] session avatar restore failed:', err?.message || err);
+ }
+ }
+
+ frameAvatarCamera({ snap: true });
+ updateCameraModeIndicator();
+}
+
// Per-session accumulators. `pending*` hold metrics earned since the last flush;
// `session*` hold lifetime-of-session totals used for achievement thresholds and
// the distinct-environment set.
@@ -3420,6 +3536,9 @@ async function applyEnvironment(name, { initial = false } = {}) {
if (!meta) return;
const token = ++envApplyToken;
currentEnvName = meta.name;
+ // Persist the scene choice (debounced) so a return visit reloads it. Skipped on
+ // the initial stage so a restore-driven first apply doesn't echo a redundant save.
+ if (!initial) walkSession?.save();
if (initial) {
applyEnvironmentMeta(meta);
await loadEnvScenery(meta, token);
@@ -4059,6 +4178,41 @@ loadAvatar()
// synchronously, scenery + HDR streamed in). Degrades to the default
// ground/lighting if the manifest can't be reached.
await initEnvironments();
+
+ // Resume where you left off: restore the last walk snapshot (server for
+ // signed-in users, else localStorage), apply it to the staged scene, and
+ // surface a "Welcome back" toast with a "Start fresh" action. An explicit
+ // deep-link (?env / ?avatar) is honoured over the saved value.
+ const params = new URLSearchParams(location.search);
+ const hasEnvParam = params.has('env');
+ const hasAvatarParam = params.has('avatar');
+ walkSession = createWalkSession({
+ capture: () => captureWalkState(),
+ restore: (state) => {
+ const s = { ...state };
+ if (hasEnvParam) delete s.envId; // URL deep-link wins
+ if (hasAvatarParam) {
+ delete s.avatarUrl;
+ delete s.avatarId;
+ }
+ return restoreWalkState(s);
+ },
+ });
+ walkSession.ready
+ .then((result) => {
+ if (result?.restored) {
+ const meta = getEnvironment(walkManifest, currentEnvName);
+ showWelcomeBackToast({
+ sceneLabel: meta?.label || null,
+ onStartFresh: () => {
+ walkSession.startFresh();
+ setStatus('Started a fresh walk');
+ },
+ });
+ }
+ })
+ .catch(() => {});
+
// Bring up the physics solver (async WASM); legacy movement runs until ready.
initWalkPhysics();
// Show camera mode if not default
@@ -4114,7 +4268,9 @@ if (import.meta.env?.DEV) {
const pickerClose = document.getElementById('walk-avatar-picker-close');
let pickerOpen = false;
let pickerLoaded = false;
- let currentAvatarId = new URLSearchParams(location.search).get('avatar') || null;
+ // Mirror the module-level selection (seeded from ?avatar, updated by session
+ // restore + swaps) so the active row reflects a restored avatar.
+ let currentAvatarId = selectedAvatarId || new URLSearchParams(location.search).get('avatar') || null;
function togglePicker() {
pickerOpen = !pickerOpen;
@@ -4176,37 +4332,12 @@ if (import.meta.env?.DEV) {
.forEach((b) => b.classList.remove('is-active'));
btn.classList.add('is-active');
currentAvatarId = btn.dataset.avatarId || null;
- setWalkMetricsAvatarId(currentAvatarId);
-
setStatus('Switching avatar...');
try {
- const loader = new GLTFLoader();
- const gltf = await loader.loadAsync(url);
- if (avatar) avatarRig.remove(avatar);
- avatar = gltf.scene;
- avatarTemplate = gltf.scene;
- avatar.traverse((n) => {
- if (n.isMesh) {
- n.castShadow = true;
- n.receiveShadow = false;
- }
- });
- const box = new Box3().setFromObject(avatar);
- avatar.position.y -= box.min.y;
- avatarRig.add(avatar);
- const height = Math.max(0.5, box.max.y - box.min.y);
- avatarHeight = height;
- CAM_OFFSET.set(0, height * 1.05, height * 1.95);
- CAM_LOOK_OFFSET.set(0, height * 0.6, 0);
- // Respect current camera mode visibility
- if (cameraMode === 'firstperson') avatar.visible = false;
- animationManager.attach(avatar);
- animationManager.crossfadeTo(motionToClipName(currentMotion), 0);
- // Broadcast the new avatar so everyone else in the room re-renders us
- // as our real avatar live, without a rejoin. Keep resolvedAvatarUrl in
- // sync so remote-template caching stays correct.
- resolvedAvatarUrl = url;
- net?.sendAvatar(url, currentAvatarId || '');
+ // Shared swap path (build + frame + animate + broadcast) which also
+ // updates the session-tracked selection, then persist the choice.
+ await applyAvatarSwap(url, currentAvatarId);
+ walkSession?.save();
setStatus('Avatar switched');
} catch (err) {
setStatus('Failed to load avatar', { error: true });
diff --git a/tasks/CLEANUP-MANIFEST.md b/tasks/CLEANUP-MANIFEST.md
index 965b20a30..45efdf95c 100644
--- a/tasks/CLEANUP-MANIFEST.md
+++ b/tasks/CLEANUP-MANIFEST.md
@@ -178,3 +178,11 @@ Retired (feature verified shipped):
| tasks/walk/24-agent-embed-walking-mode.md | DELETE | Built: "Walking avatar" mode in src/agent-embed-modal.js (options, live preview, copy snippet → /walk-embed?agent=). |
| tasks/walk/27-dashboard-topbar-walking-avatar.md | DELETE | Built: 64x80 live walking avatar in src/dashboard-next/components/topbar.js from /api/avatars/mine + unread badge (fixed unread_count) + wave-on-notification. |
| tasks/walk/28-profile-page-walking-avatar.md | DELETE | Built: src/profile-walk-hero.js walking hero in pages/profile.html with Say hi (real chat surface) + Walk with me, all states. |
+
+## 2026-06-21 built-and-shipped (walk batch 5)
+
+| spec file | decision | evidence |
+|---|---|---|
+| tasks/walk/38-walk-session-persistence.md | DELETE | Built: src/walk-session.js + api/walk/session.js (GET/PUT) + migration 20260621170000_walk_session.sql + src/walk.js capture/restore + Welcome-back toast. |
+| tasks/walk/35-click-to-walk-navigation.md | DELETE | Built: src/walk-companion-click-to-walk.js (empty-space click / long-press, data-walk-block routing, persisted toggle) wired into src/walk-companion.js. |
+| tasks/walk/25-features-page-walking-demo.md | DELETE | Built: walking-avatar-inline demoType + renderer + live /walk-embed demo in pages/features.html. |
diff --git a/tasks/walk/25-features-page-walking-demo.md b/tasks/walk/25-features-page-walking-demo.md
deleted file mode 100644
index ee42c715a..000000000
--- a/tasks/walk/25-features-page-walking-demo.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# Task 25 — Features Page: Walking Avatar Demo Section
-
-## Priority: MEDIUM
-
-## Objective
-Add a dedicated section on the features page (`pages/features.html`) that showcases the walking avatar capability: live, interactive demo embedded inline, plus benefit copy and a CTA.
-
-## Scope
-- Files: `pages/features.html`, `public/features.json`
-- Add a new feature entry to `public/features.json`:
- ```json
- {
- "id": "walking-avatar",
- "title": "Walking Avatars",
- "tagline": "Your avatar walks. Anywhere on the web.",
- "description": "Embed a fully animated, voice-capable, walking 3D avatar on any page — or browse the web with your own avatar as your guide via our Chrome extension.",
- "demoType": "walking-avatar-inline",
- "ctaLabel": "Try Walking →",
- "ctaHref": "/walk"
- }
- ```
-- Renderer in `pages/features.html` already handles `demoType` values; add handler for `walking-avatar-inline` that injects an iframe to `/walk-embed?avatar=<featured>&controls=joystick`
-- Section layout:
- - Left: heading, tagline, 3-bullet feature list (Walk anywhere · Voice chat · Chrome extension), CTA
- - Right: 360×480 walking avatar iframe with rounded corners
-- Below the section: three smaller cards linking to (a) `/walk` page, (b) Chrome extension store page, (c) embed snippet copy
-- Mobile: stacks vertically, iframe shrinks to viewport width
-
-## Definition of Done
-- Visit `/features` → walking avatar section appears with a real, interactive walking avatar
-- Joystick works inside the embedded iframe on the features page
-- All three sub-CTAs link to real destinations (extension link points to the Web Store URL once published; until then, link to `/extension` info page)
-- No console errors
-- Mobile layout clean
-
-## Rules
-Complete 100%. No stubs. No fake data. Real iframe, real demo. Wire end-to-end.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/walk/25-features-page-walking-demo.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/walk/35-click-to-walk-navigation.md b/tasks/walk/35-click-to-walk-navigation.md
deleted file mode 100644
index bc463210f..000000000
--- a/tasks/walk/35-click-to-walk-navigation.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# Task 35 — Click-to-Walk: Navigate by Pointing Where Avatar Should Go
-
-## Priority: MEDIUM
-
-## Objective
-Add a navigation mode where the user clicks anywhere on a page and the avatar physically walks to that spot before any further action. Clicking a link makes the avatar walk to the link first, then triggers the navigation.
-
-## Scope
-- Module: `src/walk-companion-click-to-walk.js`
-- Mode toggle: held key `Alt` (desktop) or long-press (mobile) puts the avatar into "directable" mode
-- In directable mode:
- - Cursor changes to a footstep icon
- - Click anywhere → avatar walks to that screen position (translated to canvas coords)
- - During walk: a faint dotted path renders showing the route (using canvas overlay or SVG)
-- Smart link interaction:
- - Click on a link while directable → avatar walks there, plays `point` gesture, opens link 200ms later
- - Click on a button → avatar walks there, plays `tap` gesture, fires real click event 200ms later
-- Obstacle avoidance:
- - Avatar avoids walking over images and major UI cards — use a simple grid pathfinder around blocking elements (treat elements with `data-walk-block` as walls)
-- Visual feedback:
- - Brief ripple on click point
- - Footprint trail fades after 2 seconds
-
-## Definition of Done
-- Hold Alt, click anywhere on a page → avatar walks to that point
-- Click on a link in directable mode → avatar walks to it, then link opens
-- Obstacle avoidance works (avatar routes around `data-walk-block` elements)
-- Footprint trail renders and fades
-- No console errors
-
-## Rules
-Complete 100%. No stubs. No fake data. Real pathfinding, real click delegation. Wire end-to-end.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/walk/35-click-to-walk-navigation.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/walk/38-walk-session-persistence.md b/tasks/walk/38-walk-session-persistence.md
deleted file mode 100644
index 8f01a215d..000000000
--- a/tasks/walk/38-walk-session-persistence.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# Task 38 — Walk Session Persistence: Resume Where You Left Off
-
-## Priority: MEDIUM
-
-## Objective
-Persist walk session state — avatar position, rotation, environment, camera mode, gestures recently used — so that returning to `/walk` resumes from the last known state instead of starting over.
-
-## Scope
-- Module: `src/walk-session.js`
-- State persisted:
- - Avatar ID, environment, camera mode
- - Position (x, y, z), rotation (yaw)
- - Last 5 gestures used (most recent first; surfaces them in the gesture wheel for quick re-use)
- - Companion preferences (size, walk speed)
- - Multiplayer room code if in multiplayer
-- Storage:
- - `localStorage` for unauthenticated sessions
- - `/api/walk/session` PUT/GET endpoint for authenticated users (real, persisted to the existing user database)
-- Save triggers:
- - On `beforeunload`: snapshot current state
- - Every 30s while active (throttled): snapshot
-- Restore on page load:
- - If state exists and is < 7 days old, restore avatar to last position/rotation, load same environment, restore camera mode
- - Show a small "Welcome back" toast with "Start fresh" button (clears state)
-- Cross-device sync: for authed users, latest state syncs across browsers
-
-## Definition of Done
-- Walk for 30s, close tab, reopen `/walk` → avatar resumes at last position
-- Auth users: walk on laptop, open `/walk` on phone → same state restored
-- "Start fresh" toast button wipes state
-- No console errors
-- State endpoint returns 200 with correct payload (verify with real curl)
-
-## Rules
-Complete 100%. No stubs. No fake data. Real DB persistence for authed users. Wire end-to-end.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/walk/38-walk-session-persistence.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.