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.

Avatar studio and selfie capture, IRL marker mode; feature tour and payment modal tests

nirholas136e31c46d81
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 816f8d3a3..a363f4771 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,9 +18,13 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Improvement: Base USDC payments confirm even when an RPC provider is flaky** — When you pay for a skill or asset in USDC on Base, the platform double-checks your payment landed on-chain before unlocking it. That check used to read from a single blockchain provider — so if that one provider was briefly slow or rate-limited, a payment that had genuinely gone through could look stuck as 'pending' until you retried. It now reads through the same multi-provider failover the rest of the platform already uses: if one provider is down it automatically tries the next, and a momentary outage degrades to a safe, retryable state instead of stranding a confirmed payment. Your funds were never at risk either way; this makes the confirmation itself resilient. `[improvement, infra]`
- **Improvement: every server error now hands you a support reference code** — When something fails on our side, the response no longer just says 'something went wrong' — it now carries a short reference code (e.g. 'quote ref a1b2c3d4 to support'). That same code is attached to the exact server log line, our error tracker, and the ops alert that pages the team, so one code maps to one incident. This was already true for most API responses; we extended it to the remaining surfaces that previously failed silently — the RSS announcements feed, sitemaps, the MCP payment flow, on-chain permission checks, and the Solana RPC proxy — so any failure you hit is traceable. Nothing changes when things work; this only makes the rare error far faster to diagnose. `[improvement, infra]`
- **New: a server error now lands you on a real page — with your support code ready to copy** — On the rare occasion something breaks on our side, you used to get the host's blank error screen — a dead end. Now you land on a proper three.ws page: your agent facepalms at the glitch, the page tells you plainly it's on us (and that the team was alerted the instant it happened), and it shows a one-tap 'Copy' support reference. 'Try again' retries the exact page that failed, not a generic home redirect. Real API and agent callers still receive the precise JSON error they expect with that same reference — only humans get routed to the friendly page. It's keyboard-accessible, fully responsive, and respects reduced-motion settings. `[feature, improvement]`
+- **New: pin an agent to a real place indoors with a QR marker — your friend finds it standing there** — IRL agents could be dropped at a GPS spot, but GPS is useless inside a home — it's off by whole rooms and never agrees between two phones, so a friend could never find the agent you placed in your living room. Marker mode fixes that. Open /irl on Android Chrome, tap Marker, and point your camera at a QR — your own, or one you generate right there to print or show on another screen. Once it locks, the QR becomes a shared anchor both phones agree on with no GPS and no compass: walk to a spot, tap 'Place here', and the agent stands exactly where you are. Anyone who opens /irl and scans the same marker sees that agent standing in the same physical place — point at the bathroom and it's not there, sweep back to the middle of the living room and there it is. It reuses the same exact room-frame math the platform already trusts, hides the agent honestly when the marker isn't in view (there's no guessing where it went), and only appears on phones that can actually scan, so it's never a dead button. (`/irl`) `[feature]`
+- **New: the Money Pulse — a live, platform-wide feed of real wallet activity** — Money moving through three.ws agents used to be invisible to everyone but the owner. The new Money Pulse turns it into a living, public layer: a real-time feed of tips landing, coins launching, agents trading, and agents paying each other — every beat a real on-chain event you can open on an explorer. Visit /pulse for the full feed with filters (tips, launches, trades, payments), a live-updating ticker, and money intelligence: 24-hour tip volume, the top-earning agents this week, and the busiest wallets right now. A compact ticker rides along the launches page, and each agent's profile and Wallet hub now carry that wallet's own story — tips received, biggest tip, public outflow, and launches, all from the real ledger. Privacy is strict by construction: private withdrawals, spend-limit changes and security events never appear, only already-public activity does, and owners get a one-tap toggle to include or hide their wallet from the global feed (enforced server-side). When you tip an agent, the transfer is independently verified on-chain before it ever shows up — so there is never a fake event. The feed pauses when it's off-screen or the tab is hidden, animates new beats as they land, and offers an opt-in money sound. (`/pulse`) `[feature]`
- **New: your agent's avatar now physically wears its wallet** — Funded agents now visibly look funded. Every avatar carries a live aura whose glow, palette, and energy are driven entirely by its real on-chain net worth — dormant wallets sit as a clean, quiet baseline, and the body brightens through honest tiers (Spark, Ember, Glow, Radiant, Luminous) as real value grows. The accent colour shifts with your real asset mix, with $THREE earning its own warm tint, and the same agent looks identical wherever it appears: the 3D viewer, its profile, the marketplace stage, and the character page. When a real tip, trade fill, or deposit confirms on-chain, the model plays a one-shot flourish — never on a timer, only on a real balance change. In the galaxy star-map, wealthier agents now burn brighter and bias toward wallet-violet, so a single glance tells you who's funded. It's all real chain data, capped tastefully for whales, runs at 60fps with off-screen avatars paused, and respects reduced-motion (a richer static treatment instead of animation). (`/galaxy`) `[feature, improvement]`
- **New: your avatar comes alive in iOS AR — it breathes and idles in your room** — Placing an avatar in AR on iPhone or iPad used to drop a frozen mannequin into your space. Now it arrives animated — a gentle idle/breathing loop plays and repeats on its own, so the figure standing on your table actually feels alive. We do this without any extra app or converter: the avatar is driven through a real animation, sampled frame by frame, and written straight into the AR file that Apple's Quick Look plays. If a particular avatar can't be animated, it still places perfectly as a clean static pose — animation is a bonus, never a blocker. `[feature, improvement]`
- **Security: CSRF protection extended to sniper arming and trade limits** — Arming an autonomous sniper strategy and changing an agent's discretionary trade limits both commit or unlock real custodial funds, so both writes now require the same one-time CSRF token every other money-moving action already enforced (withdraw, vanity grind, spend limits, trade execution). Ownership was always re-checked server-side on these endpoints; this closes the remaining gap so a forged cross-site request can't arm a sniper or loosen a trade cap. No change to how you use them — the dashboard already sends the token. `[security]`
+- **The in-chat skill purchase card is smoother, fully keyboard-friendly, and shows the right price every time** — The payment card that appears when you unlock a paid skill inside an embedded agent got a polish-and-correctness pass. It now glides in with a soft fade-and-scale instead of snapping open, dims the page behind it, and stays fully usable on small screens (it scrolls inside itself rather than overflowing). It's now properly keyboard-accessible: press Escape to close it, Tab stays trapped inside the card so focus can't slip behind it, the pay button is focused the moment it opens, and when you close it focus returns exactly where you were. While the dollar equivalent of the price loads it shows a gentle shimmer instead of jumping the layout, every button has a clear focus ring, and all of it respects reduced-motion. We also fixed a display bug where a larger dollar receipt could be shown a million times too small — the amount on every receipt is now always correct. (`/marketplace`) `[improvement, fix]`
+- **The walking companion, page narrator, and 3D tour are smoother, kinder to your battery, and never start on a blank canvas** — The three avatars that walk and talk over a page got a polish pass focused on the moments before and around them. The corner companion now greets you with a soft loading shimmer instead of an empty box while its 3D body streams in, and the guided tour opens with an honest 'waking your guide' loader — a real readiness cue, never a fake bar — instead of a frozen page. All four 3D surfaces (the corner companion, the full-page walk playground, the drop-in page narrator, and the feature tour) now pause their animation the instant you switch to another tab, and the page narrator also pauses when it scrolls out of view — so a living avatar never quietly burns your laptop battery in a background tab. The narrator's mute button now shows the correct state from the very first frame, the tour's loader always clears cleanly when you exit, and several small resource leaks (timers and drag handlers left running after a companion or narrator was dismissed) are fixed. Reduced-motion preferences are honored throughout. (`/walk`) `[improvement, fix]`
- **Your agent's wallet is now a living identity on every surface** — The little wallet badge under every agent and avatar grew up. Wherever an agent appears — its profile, the marketplace, the galaxy star-map, trending, your dashboard, the launches feed — its wallet now shows the real, live portfolio value in USD, a colour-coded 24-hour change, and a clear ownership marker: a 'Yours' badge on wallets you own, and 'by @creator' on everyone else's. Hover, focus, or tap the badge and it expands into a rich preview: your balance broken out into SOL, USDC, $THREE and your top holdings, a real value sparkline, both your Solana and EVM addresses with one-click copy, and the right actions for who's looking — Open wallet and Vanity for owners, Tip and Fork-to-own for visitors. The same agent's wallet looks identical everywhere because it all comes from one shared component, every number is real on-chain data, and the value gently pulses when a tip lands or a trade fills. Balances load lazily as you scroll and pause when you switch tabs, so even long lists stay fast. (`/marketplace`) `[feature, improvement]`
## 2026-06-22
diff --git a/data/changelog.json b/data/changelog.json
index f74876aec..14994905f 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,34 @@
{
"$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-23",
+ "title": "The in-chat skill purchase card is smoother, fully keyboard-friendly, and shows the right price every time",
+ "summary": "The payment card that appears when you unlock a paid skill inside an embedded agent got a polish-and-correctness pass. It now glides in with a soft fade-and-scale instead of snapping open, dims the page behind it, and stays fully usable on small screens (it scrolls inside itself rather than overflowing). It's now properly keyboard-accessible: press Escape to close it, Tab stays trapped inside the card so focus can't slip behind it, the pay button is focused the moment it opens, and when you close it focus returns exactly where you were. While the dollar equivalent of the price loads it shows a gentle shimmer instead of jumping the layout, every button has a clear focus ring, and all of it respects reduced-motion. We also fixed a display bug where a larger dollar receipt could be shown a million times too small — the amount on every receipt is now always correct.",
+ "tags": ["improvement", "fix"],
+ "link": "/marketplace"
+ },
+ {
+ "date": "2026-06-23",
+ "title": "The walking companion, page narrator, and 3D tour are smoother, kinder to your battery, and never start on a blank canvas",
+ "summary": "The three avatars that walk and talk over a page got a polish pass focused on the moments before and around them. The corner companion now greets you with a soft loading shimmer instead of an empty box while its 3D body streams in, and the guided tour opens with an honest 'waking your guide' loader — a real readiness cue, never a fake bar — instead of a frozen page. All four 3D surfaces (the corner companion, the full-page walk playground, the drop-in page narrator, and the feature tour) now pause their animation the instant you switch to another tab, and the page narrator also pauses when it scrolls out of view — so a living avatar never quietly burns your laptop battery in a background tab. The narrator's mute button now shows the correct state from the very first frame, the tour's loader always clears cleanly when you exit, and several small resource leaks (timers and drag handlers left running after a companion or narrator was dismissed) are fixed. Reduced-motion preferences are honored throughout.",
+ "tags": ["improvement", "fix"],
+ "link": "/walk"
+ },
+ {
+ "date": "2026-06-23",
+ "title": "New: pin an agent to a real place indoors with a QR marker — your friend finds it standing there",
+ "summary": "IRL agents could be dropped at a GPS spot, but GPS is useless inside a home — it's off by whole rooms and never agrees between two phones, so a friend could never find the agent you placed in your living room. Marker mode fixes that. Open /irl on Android Chrome, tap Marker, and point your camera at a QR — your own, or one you generate right there to print or show on another screen. Once it locks, the QR becomes a shared anchor both phones agree on with no GPS and no compass: walk to a spot, tap 'Place here', and the agent stands exactly where you are. Anyone who opens /irl and scans the same marker sees that agent standing in the same physical place — point at the bathroom and it's not there, sweep back to the middle of the living room and there it is. It reuses the same exact room-frame math the platform already trusts, hides the agent honestly when the marker isn't in view (there's no guessing where it went), and only appears on phones that can actually scan, so it's never a dead button.",
+ "tags": ["feature"],
+ "link": "/irl"
+ },
+ {
+ "date": "2026-06-23",
+ "title": "New: the Money Pulse — a live, platform-wide feed of real wallet activity",
+ "summary": "Money moving through three.ws agents used to be invisible to everyone but the owner. The new Money Pulse turns it into a living, public layer: a real-time feed of tips landing, coins launching, agents trading, and agents paying each other — every beat a real on-chain event you can open on an explorer. Visit /pulse for the full feed with filters (tips, launches, trades, payments), a live-updating ticker, and money intelligence: 24-hour tip volume, the top-earning agents this week, and the busiest wallets right now. A compact ticker rides along the launches page, and each agent's profile and Wallet hub now carry that wallet's own story — tips received, biggest tip, public outflow, and launches, all from the real ledger. Privacy is strict by construction: private withdrawals, spend-limit changes and security events never appear, only already-public activity does, and owners get a one-tap toggle to include or hide their wallet from the global feed (enforced server-side). When you tip an agent, the transfer is independently verified on-chain before it ever shows up — so there is never a fake event. The feed pauses when it's off-screen or the tab is hidden, animates new beats as they land, and offers an opt-in money sound.",
+ "tags": ["feature"],
+ "link": "/pulse"
+ },
{
"date": "2026-06-23",
"title": "New: your agent's avatar now physically wears its wallet",
diff --git a/pages/avatar-studio.html b/pages/avatar-studio.html
index 1671a714b..f1bc3da56 100644
--- a/pages/avatar-studio.html
+++ b/pages/avatar-studio.html
@@ -473,6 +473,26 @@
color: var(--text-3);
font-size: 14px;
}
+ .as-error-actions {
+ margin-top: 16px; display: flex; gap: 12px; justify-content: center; align-items: center;
+ }
+ .as-error-actions button, .as-error-actions a {
+ padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
+ cursor: pointer; text-decoration: none; border: 1px solid var(--border, rgba(255,255,255,0.16));
+ color: var(--text, #e8e8e8); background: transparent; transition: background 0.18s, border-color 0.18s;
+ }
+ .as-error-actions button { background: var(--accent); color: #08111e; border-color: transparent; }
+ .as-error-actions button:hover { filter: brightness(1.08); }
+ .as-error-actions a:hover { border-color: var(--text-3); }
+ .as-error-actions button:focus-visible, .as-error-actions a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
+ .as-skel {
+ width: 86px; height: 210px; border-radius: 44px 44px 28px 28px;
+ background: linear-gradient(100deg, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 70%);
+ background-size: 220% 100%; animation: as-shimmer 1.4s ease-in-out infinite; margin-bottom: 14px;
+ }
+ @keyframes as-shimmer { to { background-position: -120% 0; } }
+ #as-loading { flex-direction: column; }
+ @media (prefers-reduced-motion: reduce) { .as-spin, .as-skel { animation: none; } }
@media (max-width: 980px) {
/* Stacked layout: let the document scroll, but keep the avatar
@@ -952,7 +972,10 @@
</header>
<main class="as-shell" id="as-shell">
<div class="as-stage" id="as-stage">
- <div class="as-stage-loading" id="as-loading">Loading avatar...</div>
+ <div class="as-stage-loading" id="as-loading">
+ <div class="as-skel" aria-hidden="true"></div>
+ <span>Loading avatar…</span>
+ </div>
</div>
<aside class="as-side">
<div class="as-name-row">
diff --git a/pages/create-selfie.html b/pages/create-selfie.html
index 8edc5b49a..7f61c7c2f 100644
--- a/pages/create-selfie.html
+++ b/pages/create-selfie.html
@@ -1843,6 +1843,12 @@
text-decoration: underline;
}
.byok-alt a:hover { color: #e8e8e8; }
+ /* Reduced-motion: stop the build/preview/done loops and the countdown
+ pop. model-viewer auto-rotate is removed in JS when this matches. */
+ @media (prefers-reduced-motion: reduce) {
+ .build-ring, .build-preview, .bstep .dot, .done-viewer::after,
+ .done-viewer::before, .cd-num { animation: none !important; }
+ }
</style>
<div class="byok-card">
@@ -1897,7 +1903,7 @@
— it takes under a minute. The key stays in your browser and is never stored on our servers.
</p>
- <p class="byok-error" id="byok-key-error"></p>
+ <p class="byok-error" id="byok-key-error" role="alert" aria-live="assertive"></p>
<div class="byok-actions">
<button type="button" class="byok-submit" id="byok-submit-btn" disabled>
@@ -2194,6 +2200,9 @@
},
{ once: true },
);
+ if (window.matchMedia?.('(prefers-reduced-motion: reduce)').matches) {
+ modelEl.removeAttribute('auto-rotate');
+ }
modelEl.setAttribute('src', modelUrl);
} else {
// Materialized but no GLB URL — don't leave a silent black void.
diff --git a/public/changelog.json b/public/changelog.json
index 1febbf15a..c7c9cfaa5 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-23T03:05:40.876Z",
+ "generated_at": "2026-06-23T03:11:42.433Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -130,6 +130,26 @@
"improvement"
]
},
+ {
+ "date": "2026-06-23",
+ "type": "update",
+ "title": "New: pin an agent to a real place indoors with a QR marker — your friend finds it standing there",
+ "summary": "IRL agents could be dropped at a GPS spot, but GPS is useless inside a home — it's off by whole rooms and never agrees between two phones, so a friend could never find the agent you placed in your living room. Marker mode fixes that. Open /irl on Android Chrome, tap Marker, and point your camera at a QR — your own, or one you generate right there to print or show on another screen. Once it locks, the QR becomes a shared anchor both phones agree on with no GPS and no compass: walk to a spot, tap 'Place here', and the agent stands exactly where you are. Anyone who opens /irl and scans the same marker sees that agent standing in the same physical place — point at the bathroom and it's not there, sweep back to the middle of the living room and there it is. It reuses the same exact room-frame math the platform already trusts, hides the agent honestly when the marker isn't in view (there's no guessing where it went), and only appears on phones that can actually scan, so it's never a dead button.",
+ "link": "/irl",
+ "tags": [
+ "feature"
+ ]
+ },
+ {
+ "date": "2026-06-23",
+ "type": "update",
+ "title": "New: the Money Pulse — a live, platform-wide feed of real wallet activity",
+ "summary": "Money moving through three.ws agents used to be invisible to everyone but the owner. The new Money Pulse turns it into a living, public layer: a real-time feed of tips landing, coins launching, agents trading, and agents paying each other — every beat a real on-chain event you can open on an explorer. Visit /pulse for the full feed with filters (tips, launches, trades, payments), a live-updating ticker, and money intelligence: 24-hour tip volume, the top-earning agents this week, and the busiest wallets right now. A compact ticker rides along the launches page, and each agent's profile and Wallet hub now carry that wallet's own story — tips received, biggest tip, public outflow, and launches, all from the real ledger. Privacy is strict by construction: private withdrawals, spend-limit changes and security events never appear, only already-public activity does, and owners get a one-tap toggle to include or hide their wallet from the global feed (enforced server-side). When you tip an agent, the transfer is independently verified on-chain before it ever shows up — so there is never a fake event. The feed pauses when it's off-screen or the tab is hidden, animates new beats as they land, and offers an opt-in money sound.",
+ "link": "/pulse",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-06-23",
"type": "update",
@@ -162,6 +182,28 @@
"security"
]
},
+ {
+ "date": "2026-06-23",
+ "type": "update",
+ "title": "The in-chat skill purchase card is smoother, fully keyboard-friendly, and shows the right price every time",
+ "summary": "The payment card that appears when you unlock a paid skill inside an embedded agent got a polish-and-correctness pass. It now glides in with a soft fade-and-scale instead of snapping open, dims the page behind it, and stays fully usable on small screens (it scrolls inside itself rather than overflowing). It's now properly keyboard-accessible: press Escape to close it, Tab stays trapped inside the card so focus can't slip behind it, the pay button is focused the moment it opens, and when you close it focus returns exactly where you were. While the dollar equivalent of the price loads it shows a gentle shimmer instead of jumping the layout, every button has a clear focus ring, and all of it respects reduced-motion. We also fixed a display bug where a larger dollar receipt could be shown a million times too small — the amount on every receipt is now always correct.",
+ "link": "/marketplace",
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
+ {
+ "date": "2026-06-23",
+ "type": "update",
+ "title": "The walking companion, page narrator, and 3D tour are smoother, kinder to your battery, and never start on a blank canvas",
+ "summary": "The three avatars that walk and talk over a page got a polish pass focused on the moments before and around them. The corner companion now greets you with a soft loading shimmer instead of an empty box while its 3D body streams in, and the guided tour opens with an honest 'waking your guide' loader — a real readiness cue, never a fake bar — instead of a frozen page. All four 3D surfaces (the corner companion, the full-page walk playground, the drop-in page narrator, and the feature tour) now pause their animation the instant you switch to another tab, and the page narrator also pauses when it scrolls out of view — so a living avatar never quietly burns your laptop battery in a background tab. The narrator's mute button now shows the correct state from the very first frame, the tour's loader always clears cleanly when you exit, and several small resource leaks (timers and drag handlers left running after a companion or narrator was dismissed) are fixed. Reduced-motion preferences are honored throughout.",
+ "link": "/walk",
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
{
"date": "2026-06-23",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 3b59b8d49..3f1a83ca8 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -102,6 +102,22 @@
<category>feature</category>
<description>On the rare occasion something breaks on our side, you used to get the host's blank error screen — a dead end. Now you land on a proper three.ws page: your agent facepalms at the glitch, the page tells you plainly it's on us (and that the team was alerted the instant it happened), and it shows a one-tap 'Copy' support reference. 'Try again' retries the exact page that failed, not a generic home redirect. Real API and agent callers still receive the precise JSON error they expect with that same reference — only humans get routed to the friendly page. It's keyboard-accessible, fully responsive, and respects reduced-motion settings.</description>
</item>
+ <item>
+ <title>New: pin an agent to a real place indoors with a QR marker — your friend finds it standing there</title>
+ <link>https://three.ws/irl</link>
+ <guid isPermaLink="false">2026-06-23:New: pin an agent to a real place indoors with a QR marker — your friend finds it standing there</guid>
+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>IRL agents could be dropped at a GPS spot, but GPS is useless inside a home — it's off by whole rooms and never agrees between two phones, so a friend could never find the agent you placed in your living room. Marker mode fixes that. Open /irl on Android Chrome, tap Marker, and point your camera at a QR — your own, or one you generate right there to print or show on another screen. Once it locks, the QR becomes a shared anchor both phones agree on with no GPS and no compass: walk to a spot, tap 'Place here', and the agent stands exactly where you are. Anyone who opens /irl and scans the same marker sees that agent standing in the same physical place — point at the bathroom and it's not there, sweep back to the middle of the living room and there it is. It reuses the same exact room-frame math the platform already trusts, hides the agent honestly when the marker isn't in view (there's no guessing where it went), and only appears on phones that can actually scan, so it's never a dead button.</description>
+ </item>
+ <item>
+ <title>New: the Money Pulse — a live, platform-wide feed of real wallet activity</title>
+ <link>https://three.ws/pulse</link>
+ <guid isPermaLink="false">2026-06-23:New: the Money Pulse — a live, platform-wide feed of real wallet activity</guid>
+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Money moving through three.ws agents used to be invisible to everyone but the owner. The new Money Pulse turns it into a living, public layer: a real-time feed of tips landing, coins launching, agents trading, and agents paying each other — every beat a real on-chain event you can open on an explorer. Visit /pulse for the full feed with filters (tips, launches, trades, payments), a live-updating ticker, and money intelligence: 24-hour tip volume, the top-earning agents this week, and the busiest wallets right now. A compact ticker rides along the launches page, and each agent's profile and Wallet hub now carry that wallet's own story — tips received, biggest tip, public outflow, and launches, all from the real ledger. Privacy is strict by construction: private withdrawals, spend-limit changes and security events never appear, only already-public activity does, and owners get a one-tap toggle to include or hide their wallet from the global feed (enforced server-side). When you tip an agent, the transfer is independently verified on-chain before it ever shows up — so there is never a fake event. The feed pauses when it's off-screen or the tab is hidden, animates new beats as they land, and offers an opt-in money sound.</description>
+ </item>
<item>
<title>New: your agent's avatar now physically wears its wallet</title>
<link>https://three.ws/galaxy</link>
@@ -126,6 +142,22 @@
<category>security</category>
<description>Arming an autonomous sniper strategy and changing an agent's discretionary trade limits both commit or unlock real custodial funds, so both writes now require the same one-time CSRF token every other money-moving action already enforced (withdraw, vanity grind, spend limits, trade execution). Ownership was always re-checked server-side on these endpoints; this closes the remaining gap so a forged cross-site request can't arm a sniper or loosen a trade cap. No change to how you use them — the dashboard already sends the token.</description>
</item>
+ <item>
+ <title>The in-chat skill purchase card is smoother, fully keyboard-friendly, and shows the right price every time</title>
+ <link>https://three.ws/marketplace</link>
+ <guid isPermaLink="false">2026-06-23:The in-chat skill purchase card is smoother, fully keyboard-friendly, and shows the right price every time</guid>
+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The payment card that appears when you unlock a paid skill inside an embedded agent got a polish-and-correctness pass. It now glides in with a soft fade-and-scale instead of snapping open, dims the page behind it, and stays fully usable on small screens (it scrolls inside itself rather than overflowing). It's now properly keyboard-accessible: press Escape to close it, Tab stays trapped inside the card so focus can't slip behind it, the pay button is focused the moment it opens, and when you close it focus returns exactly where you were. While the dollar equivalent of the price loads it shows a gentle shimmer instead of jumping the layout, every button has a clear focus ring, and all of it respects reduced-motion. We also fixed a display bug where a larger dollar receipt could be shown a million times too small — the amount on every receipt is now always correct.</description>
+ </item>
+ <item>
+ <title>The walking companion, page narrator, and 3D tour are smoother, kinder to your battery, and never start on a blank canvas</title>
+ <link>https://three.ws/walk</link>
+ <guid isPermaLink="false">2026-06-23:The walking companion, page narrator, and 3D tour are smoother, kinder to your battery, and never start on a blank canvas</guid>
+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The three avatars that walk and talk over a page got a polish pass focused on the moments before and around them. The corner companion now greets you with a soft loading shimmer instead of an empty box while its 3D body streams in, and the guided tour opens with an honest 'waking your guide' loader — a real readiness cue, never a fake bar — instead of a frozen page. All four 3D surfaces (the corner companion, the full-page walk playground, the drop-in page narrator, and the feature tour) now pause their animation the instant you switch to another tab, and the page narrator also pauses when it scrolls out of view — so a living avatar never quietly burns your laptop battery in a background tab. The narrator's mute button now shows the correct state from the very first frame, the tour's loader always clears cleanly when you exit, and several small resource leaks (timers and drag handlers left running after a companion or narrator was dismissed) are fixed. Reduced-motion preferences are honored throughout.</description>
+ </item>
<item>
<title>Your agent's wallet is now a living identity on every surface</title>
<link>https://three.ws/marketplace</link>
diff --git a/public/features.json b/public/features.json
index 842c4d5e8..76e22d362 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-23T03:05:40.704Z",
+ "generated_at": "2026-06-23T03:11:42.392Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/avatar-page.js b/src/avatar-page.js
index 89bb52dce..9bf2feb61 100644
--- a/src/avatar-page.js
+++ b/src/avatar-page.js
@@ -445,13 +445,17 @@ function renderShell(glbUrl) {
$('av-stage-loading')?.remove();
positionThoughtHotspot(viewer);
setupAnimationControls(viewer);
- mountNetWorthAura();
});
viewer?.addEventListener('error', () => {
const ld = $('av-stage-loading');
if (ld) ld.textContent = 'Failed to load 3D model.';
});
+ // The wallet aura is an independent sibling layer over the stage — mount it
+ // right away (the stage already has its CSS size) so the agent wears its
+ // wallet even before the GLB finishes loading, and even if the model fails.
+ mountNetWorthAura();
+
$('av-use')?.addEventListener('click', startAgentWithAvatar);
$('av-talk')?.addEventListener('click', () => enterTalkMode());
$('av-download')?.addEventListener('click', openDownloadMenu);
diff --git a/src/avatar-studio.js b/src/avatar-studio.js
index c99b6f8a4..3fe9aa8e1 100644
--- a/src/avatar-studio.js
+++ b/src/avatar-studio.js
@@ -143,9 +143,24 @@ const EYE_OFF =
init().catch((err) => {
log.error('[avatar-studio] init', err);
- $('as-shell').innerHTML = `<div class="as-error">${esc(err.message || 'Failed to load')}</div>`;
+ renderStageError($('as-shell'), 'Character Studio couldn’t load. Check your connection and try again.');
});
+// Render an actionable error (Retry + Back) into a container, replacing whatever
+// loading/spinner content was there. Used by both the top-level init failure and
+// the in-stage base-avatar load failure so neither is a silent dead end.
+function renderStageError(container, message) {
+ if (!container) return;
+ container.innerHTML =
+ `<div class="as-error" role="alert">` +
+ `<p>${esc(message)}</p>` +
+ `<div class="as-error-actions">` +
+ `<button type="button" data-as-retry>Retry</button>` +
+ `<a href="/create">Back to Create</a>` +
+ `</div></div>`;
+ container.querySelector('[data-as-retry]')?.addEventListener('click', () => location.reload());
+}
+
async function init() {
const params = new URLSearchParams(location.search);
editAvatarId = parseEditId(params);
@@ -403,8 +418,8 @@ async function bootScene(glbUrl, editAvatar) {
? 'Loaded your saved avatar. Make changes and save to update it.'
: 'Choose a style below to get started.');
} catch (err) {
- const loadingEl = $('as-loading');
- if (loadingEl) loadingEl.textContent = `Could not load base avatar: ${err.message}`;
+ log.error('[avatar-studio] bootScene', err);
+ renderStageError($('as-loading'), 'We couldn’t load the avatar. Check your connection and try again.');
}
}
diff --git a/src/irl/marker-mode.js b/src/irl/marker-mode.js
index 41f361310..ba2e3f498 100644
--- a/src/irl/marker-mode.js
+++ b/src/irl/marker-mode.js
@@ -313,7 +313,8 @@ export function initMarkerMode(deps) {
sheet.classList.add('is-open');
closeBtn.focus();
try {
- const QR = (await import('qrcode')).default;
+ const mod = await import('qrcode');
+ const QR = mod.default ?? mod; // CJS/ESM interop: qrcode ships CommonJS
const canvas = document.createElement('canvas');
await QR.toCanvas(canvas, markerUrl(madeToken), { width: 240, margin: 1, errorCorrectionLevel: 'M' });
qrHolder.appendChild(canvas);
@@ -333,7 +334,8 @@ export function initMarkerMode(deps) {
};
if (canvas) { finish(canvas.toDataURL('image/png')); return; }
try {
- const QR = (await import('qrcode')).default;
+ const mod = await import('qrcode');
+ const QR = mod.default ?? mod;
finish(await QR.toDataURL(markerUrl(madeToken), { width: 512, margin: 2 }));
} catch { status('Could not generate the marker image.', { warn: true }); }
}
diff --git a/src/marketplace-detail.js b/src/marketplace-detail.js
index 220a726e7..300488e81 100644
--- a/src/marketplace-detail.js
+++ b/src/marketplace-detail.js
@@ -155,14 +155,16 @@ export function renderDetailModelStage(a) {
clearTimeout(loadTimeout);
progressEl.remove();
mv.style.opacity = '1';
- // Net-Worth-Reactive Avatar: the model now wears its real wallet here
- // exactly as on its profile and in the galaxy.
- hydrateAvatarWallet(stage, a, { lod: 'full', live: true, network: 'mainnet' })
- .then((c) => { detailStageAura = c; })
- .catch(() => { /* dormant baseline already shown */ });
},
{ once: true },
);
+
+ // Net-Worth-Reactive Avatar: the model wears its real wallet here exactly as on
+ // its profile and in the galaxy. Mounted as an independent sibling layer right
+ // away (not gated on the GLB load) so it's robust to a slow or failed model.
+ hydrateAvatarWallet(stage, a, { lod: 'full', live: true, network: 'mainnet' })
+ .then((c) => { detailStageAura = c; })
+ .catch(() => { /* dormant baseline already shown */ });
mv.addEventListener(
'error',
() => {
diff --git a/src/selfie-capture.js b/src/selfie-capture.js
index bcabacccb..284cb2ed3 100644
--- a/src/selfie-capture.js
+++ b/src/selfie-capture.js
@@ -394,11 +394,13 @@ async function openCamera(slot) {
} catch (err) {
log.warn('[selfie] camera error:', err);
const denied = err?.name === 'NotAllowedError' || err?.name === 'PermissionDeniedError';
- showCamError(
- denied
- ? 'Camera access was denied. Grant permission in your browser settings, or use Upload instead.'
- : 'Could not access camera. Check permissions and try again.',
- );
+ const msg = denied
+ ? 'Camera access was denied. Grant permission in your browser settings, or use Upload instead.'
+ : 'Could not access camera. Check permissions and try again, or use Upload.';
+ // Closing the overlay hides #cam-error the same frame, so the user would
+ // see "nothing happened". Surface the reason on the persistent page banner
+ // (next to the Upload affordance) instead, then close the overlay.
+ showPageNotice(msg);
closeCamera();
return;
}
@@ -568,6 +570,15 @@ function showCamError(msg) {
camError.removeAttribute('hidden');
}
+// Surface an actionable notice on the persistent page banner (the same element
+// used for unsupported browsers). Used when the camera can't open — its message
+// must outlive the overlay being closed.
+function showPageNotice(msg) {
+ if (!unsupportedMsg) return;
+ unsupportedMsg.textContent = msg;
+ unsupportedMsg.classList.add('show');
+}
+
camOverlay?.addEventListener('click', (e) => {
const target = /** @type {HTMLElement} */ (e.target);
const action = target.closest('[data-cam-action]')?.getAttribute('data-cam-action');
@@ -581,6 +592,15 @@ camOverlay?.addEventListener('click', (e) => {
} else if (action === 'use') confirmCamShot();
});
+// Escape closes the camera dialog (it's role="dialog" aria-modal) — keyboard
+// parity with the Cancel button so the overlay is never a mouse-only trap.
+document.addEventListener('keydown', (e) => {
+ if (e.key === 'Escape' && camOverlay?.classList.contains('open')) {
+ e.preventDefault();
+ closeCamera();
+ }
+});
+
function startCountdown() {
if (!camShutter || camShutter.hasAttribute('disabled')) return;
if (cam.countdownTimers.length) return;
diff --git a/tests/feature-tour-loading.test.js b/tests/feature-tour-loading.test.js
new file mode 100644
index 000000000..39fb62120
--- /dev/null
+++ b/tests/feature-tour-loading.test.js
@@ -0,0 +1,89 @@
+/**
+ * Feature Tour loading state — unit tests.
+ *
+ * The director shows an honest "preparing" overlay while the curriculum manifest
+ * and the guide GLB stream in (no fake progress bar), and clears it the moment
+ * the real assets mount. These tests pin the lifecycle and the teardown invariant
+ * a stuck overlay would otherwise violate:
+ * 1. _showLoading() mounts a single, accessible (role=status / aria-live) overlay.
+ * 2. _hideLoading() begins removing it.
+ * 3. exit() never leaves a lingering overlay behind (the tour-exit failure mode).
+ */
+
+import { describe, it, expect, beforeAll, afterAll, afterEach } from 'vitest';
+import { JSDOM } from 'jsdom';
+
+let TourDirector;
+let dom;
+
+beforeAll(async () => {
+ dom = new JSDOM('<!doctype html><html><body></body></html>', { url: 'http://localhost/' });
+ global.window = dom.window;
+ global.document = dom.window.document;
+ global.localStorage = dom.window.localStorage;
+ global.requestAnimationFrame = (cb) => setTimeout(() => cb(Date.now()), 0);
+ global.cancelAnimationFrame = (id) => clearTimeout(id);
+ // jsdom has no matchMedia; the director/guide read prefers-reduced-motion.
+ global.matchMedia = (q) => ({
+ matches: false, media: q,
+ addEventListener() {}, removeEventListener() {}, addListener() {}, removeListener() {},
+ });
+ dom.window.matchMedia = global.matchMedia;
+ ({ TourDirector } = await import('../src/feature-tour/director.js'));
+});
+
+afterEach(() => {
+ // _hideLoading() detaches the overlay on a fade timer; isolate tests so a
+ // still-fading element from one case can't be counted by the next.
+ document.body.innerHTML = '';
+});
+
+afterAll(() => {
+ delete global.window;
+ delete global.document;
+ delete global.localStorage;
+ delete global.requestAnimationFrame;
+ delete global.cancelAnimationFrame;
+ delete global.matchMedia;
+});
+
+describe('feature tour loading state', () => {
+ it('mounts a single, accessible loading overlay', () => {
+ const d = new TourDirector();
+ d._showLoading();
+ const els = document.querySelectorAll('.tws-tour-loading');
+ expect(els.length).toBe(1);
+ const el = els[0];
+ expect(el.getAttribute('role')).toBe('status');
+ expect(el.getAttribute('aria-live')).toBe('polite');
+ // Honest copy — no progress percentage / fake bar.
+ expect(el.querySelector('.tws-tour-loading__label')?.textContent).toBeTruthy();
+ expect(el.innerHTML).not.toMatch(/%/);
+ d.exit();
+ });
+
+ it('does not duplicate the overlay when shown twice', () => {
+ const d = new TourDirector();
+ d._showLoading();
+ d._showLoading();
+ expect(document.querySelectorAll('.tws-tour-loading').length).toBe(1);
+ d.exit();
+ });
+
+ it('_hideLoading() removes the visible (is-in) overlay', () => {
+ const d = new TourDirector();
+ d._showLoading();
+ document.querySelector('.tws-tour-loading')?.classList.add('is-in');
+ d._hideLoading();
+ expect(document.querySelector('.tws-tour-loading.is-in')).toBeNull();
+ d.exit();
+ });
+
+ it('exit() clears a lingering loading overlay (no stuck state)', () => {
+ const d = new TourDirector();
+ d._showLoading();
+ expect(document.querySelectorAll('.tws-tour-loading').length).toBe(1);
+ expect(() => d.exit()).not.toThrow();
+ expect(document.querySelectorAll('.tws-tour-loading').length).toBe(0);
+ });
+});
diff --git a/tests/payment-modal.test.js b/tests/payment-modal.test.js
new file mode 100644
index 000000000..713ede088
--- /dev/null
+++ b/tests/payment-modal.test.js
@@ -0,0 +1,90 @@
+// @vitest-environment jsdom
+//
+// DOM smoke tests for the embed SkillPaymentModal's UX/accessibility behavior:
+// it reveals with the is-open class (drives the fade/scale transition), Escape
+// dismisses it (resolving false), and a stray keypress does not. These guard the
+// keyboard/dismiss contract added for the payment flow. Wallet/on-chain steps
+// are out of scope here (they require a wallet + Solana SDK).
+
+import { describe, it, expect, beforeEach, vi } from 'vitest';
+import { SkillPaymentModal } from '../src/payment-modal.js';
+
+function nextFrame() {
+ return new Promise((r) => requestAnimationFrame(() => r()));
+}
+
+const PAYLOAD = {
+ skill: 'translate-text',
+ price: { amount: '10000', currency_mint: 'mint', chain: 'solana' },
+};
+
+describe('SkillPaymentModal', () => {
+ let modal;
+
+ beforeEach(() => {
+ document.body.innerHTML = '';
+ modal = new SkillPaymentModal(document.body, 'agent-123');
+ });
+
+ it('injects a hidden, accessible dialog on construction', () => {
+ const overlay = document.querySelector('.skill-pay-overlay');
+ expect(overlay).toBeTruthy();
+ expect(overlay.hasAttribute('hidden')).toBe(true);
+ const box = overlay.querySelector('.skill-pay-box');
+ expect(box.getAttribute('role')).toBe('dialog');
+ expect(box.getAttribute('aria-modal')).toBe('true');
+ });
+
+ it('reveals with the is-open class and renders the skill + amount', async () => {
+ modal.show(PAYLOAD);
+ await nextFrame();
+ const overlay = document.querySelector('.skill-pay-overlay');
+ expect(overlay.hasAttribute('hidden')).toBe(false);
+ expect(overlay.classList.contains('is-open')).toBe(true);
+ expect(document.querySelector('.skill-pay-skill').textContent).toBe('translate-text');
+ expect(document.querySelector('.skill-pay-amount').textContent).toContain('USDC');
+ });
+
+ it('resolves false and starts closing when Escape is pressed', async () => {
+ const result = modal.show(PAYLOAD);
+ await nextFrame();
+ const overlay = document.querySelector('.skill-pay-overlay');
+ overlay.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true }));
+ await expect(result).resolves.toBe(false);
+ // The fade-out begins immediately (is-open removed); display:none follows the transition.
+ expect(overlay.classList.contains('is-open')).toBe(false);
+ });
+
+ it('resolves false when the backdrop is clicked', async () => {
+ const result = modal.show(PAYLOAD);
+ await nextFrame();
+ const overlay = document.querySelector('.skill-pay-overlay');
+ overlay.dispatchEvent(new MouseEvent('click', { bubbles: true }));
+ await expect(result).resolves.toBe(false);
+ });
+
+ it('does not dismiss on an unrelated keypress', async () => {
+ const result = modal.show(PAYLOAD);
+ await nextFrame();
+ const overlay = document.querySelector('.skill-pay-overlay');
+ overlay.dispatchEvent(new KeyboardEvent('keydown', { key: 'a', bubbles: true }));
+ const settled = await Promise.race([result, Promise.resolve('pending')]);
+ expect(settled).toBe('pending');
+ expect(overlay.classList.contains('is-open')).toBe(true);
+ });
+
+ it('restores focus to the previously focused element on close', async () => {
+ const trigger = document.createElement('button');
+ document.body.appendChild(trigger);
+ trigger.focus();
+ expect(document.activeElement).toBe(trigger);
+
+ const result = modal.show(PAYLOAD);
+ await nextFrame();
+ document
+ .querySelector('.skill-pay-overlay')
+ .dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true }));
+ await result;
+ expect(document.activeElement).toBe(trigger);
+ });
+});