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: enhance client error handling to capture additional TypeError scenarios and improve test coverage

zprv9dba0f4b5702
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 965a195b5..14594f345 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-06-28
- **$THREE payments ride out brief price-feed blips instead of failing** — Paid actions priced in $THREE (Forge high tier, spins, marketplace) no longer fail when every live price feed happens to miss on the same request. The price layer now keeps a recent last-known-good price and serves it through a momentary simultaneous outage of Jupiter and the backup feeds, so a quote is never rejected over a transient blip. Prices older than five minutes are still refused — a payment is never priced off a stale number. And on the rare moment the payment rail genuinely is catching its breath, you now see a clear "briefly unavailable — try again" message instead of a raw "internal error" support code. (`/three-token`) `[fix]`
+- **$THREE price and market stats stay live even when data providers throttle us** — The $THREE price, market cap, holders and supply panels — plus the holder leaderboard percentages — pull from outside market-data providers. Under heavy traffic every page load used to ask those providers directly, and when they all hit their free rate limits at once the stats would briefly fall back to a slightly older snapshot. Now a background job refreshes the numbers once a minute into a shared cache that every page reads from, and when the cache does need a refresh only one request fetches while the rest wait for it — instead of a thundering herd that trips every provider's limit at once. The result: market stats stay fresh and populated, and the 'all providers throttled' fallback almost never triggers. (`/three-token`) `[improvement, infra]`
- **A free, no-login 3D Studio you can add to ChatGPT** — We shipped a brand-new connector that turns any chat into a 3D modeling studio — completely free, with no account, no payment, and nothing to install on your end. It exposes five tools: generate a textured 3D model from a text prompt, build a 3D avatar from text or a reference image, forge an art-directed mesh, auto-rig a static model so it's ready to animate, and do prompt-to-rigged-avatar in a single step. Every result comes back as a downloadable GLB plus an interactive viewer link you can rotate and inspect right in the conversation. It runs entirely on our own model infrastructure — we cover the generation cost — with built-in rate limits so it stays fast and available for everyone. This is a separate, self-contained server from our existing tools, purpose-built so anyone can add prompt-to-3D to their assistant in one click. `[feature]`
- **A quiet Money Pulse now points you to the live feed instead of a dead end** — When the Money Pulse (/pulse) showed "No money moving — yet," it gave no hint that the silence was just the network you were on — or the filter you'd clicked. The feed has no time limit, so mainnet — where the real tips, launches, trades and payments flow — is effectively never empty; almost every empty view was the devnet test network, or a filter (like Trades or Marketplace) that happened to be quiet while the platform was busy with other money. The empty state now reads the situation honestly: a quiet filter says "No trades yet" instead of "all quiet" and offers a one-click "View all activity" that clears the filter, while a quiet network checks the other one in the background and offers "See live activity on mainnet" — either switch flips the whole page, feed and every stat panel, in lockstep. On devnet the copy now explains it's a test network and most money moves on mainnet, so a quiet feed reads as honest, not broken. (`/pulse`) `[improvement]`
- **Agent mirror (copy-trading) panel loads again** — Opening an agent's mirror panel — the copy-trading social graph where your agent follows a proven leader within your spend policy — was failing with a 404. The endpoints that power it (your following list, a leader's public track record and follower count, the recent-fills feed, and the follow/unfollow/pause/sync controls) all live under /api/agents/:id/mirror, but our production routing only recognised single-segment agent paths, so every mirror request fell through to the not-found page. We widened the route so the agent dispatcher receives these sub-paths, restoring the mirror panel and its sibling agent endpoints. (`/mirror`) `[fix]`
@@ -45,6 +46,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Submitted three.ws to the Claude Connectors Directory** — three.ws is now in the queue for Anthropic's Claude Connectors Directory — the in-app catalog where Claude users browse and one-click-connect remote MCP servers. We submitted our flagship server (the Avatars & Agents connector at /api/mcp): 35 tools that let Claude manage your three.ws avatars, validate and inspect glTF/GLB models, read on-chain agent reputation and identity, recall agent memory, and surface live $THREE-era market data — connected securely with OAuth, with pay-per-call tools settling in USDC over x402. Once it's approved, you'll be able to add three.ws to Claude straight from the directory. (`/docs/mcp`) `[feature, infra]`
- **Text-to-3D falls back to the free engine when the paid one runs dry** — Typing a prompt to generate a 3D model first paints a quick reference image, and on higher-quality tiers that step ran on a paid image service. If that account was out of credit, the whole request used to stop at a 'temporarily unavailable' message — even though our free NVIDIA engine builds a model straight from your words and never needed that paid step at all. Now a dry paid account automatically hands your prompt to the free engine instead of giving up, so 'type a prompt, get a model' keeps working. If every engine is genuinely down, you still get an honest 'try again shortly' rather than a hard error or a confusing billing message. `[fix]`
- **The "Save to my avatars" button is readable on every theme** — On pages with a white accent color, the "⑂ Save to my avatars" button (shown on any avatar you don't own) rendered white text on a white background — effectively invisible. The button now picks its text color from the actual button background, so a light button gets black text and a dark button keeps white, keeping the label legible everywhere it appears. `[fix]`
+- **The Agents directory now lists every on-chain agent, not just ours** — Until now /agents showed the agents launched on three.ws plus the ones registered through ERC-8004 on EVM chains. We've expanded it to the whole Solana agent ecosystem: a new background crawler indexes the Metaplex Agent Registry and the AgenC coordination protocol every half hour, so agents created anywhere on Solana — not only on three.ws — appear in the directory automatically. The page now opens on one unified feed with quick filters for All sources, Solana, and EVM, and every card carries a coloured badge showing where the agent came from (Metaplex, AgenC, an EVM chain, or three.ws). Agents we launched that are also registered upstream are de-duplicated so they only show once, with their richer three.ws profile. (`/agents`) `[feature, infra]`
- **The Avatar Engines Atlas page is now reachable** — The link to the Avatar Engines Atlas — the curated rundown of the open-source and commercial engines behind high-quality, photoreal 3D human avatars — was returning a 404 because the page was never wired into routing. The route is now in place, so the page opens from navigation as intended. (`/avatar-engines`) `[fix]`
- **The Coin Intelligence feed now fills itself** — The Coin Intelligence engine (/coin-intel) watches pump.fun's live launch firehose, observes each new coin's first ~90 seconds of trading, and scores it — organic vs bundle, wallet concentration, smart-money entries, category. Until now that observation only ran when a separate always-on worker was up, so the page often sat on its "engine is warming up" screen with nothing to show. The observer now also runs on a schedule on our serverless platform, so it keeps watching launches and recording verdicts on its own — newest coins appear in the feed continuously without depending on any single machine staying online. (`/coin-intel`) `[fix, feature]`
- **The Live Agents wall now shows every agent, 24/7** — The Live Agents page (/agents-live) used to show only the handful of agents that happened to have a browser actively streaming — usually none, so the page sat empty. Now it shows every agent on the platform, each with a live screen, and a screen is never blank: when no live browser is attached, the card streams the agent's real activity as a live terminal straight from its on-chain and skill history. Scroll to load more, and watch the live/total counts update in real time. Open any agent any time — and when you're actually watching one, an on-demand caster spins a real browser feed up for it (and tears it down when you leave), so live pixels are available for any agent without anything running idle. The same activity feed now also powers the screens on the agent desks in the 3D world. (`/agents-live`) `[feature, improvement]`
diff --git a/api/_lib/env.js b/api/_lib/env.js
index 18110b752..aeb1cc682 100644
--- a/api/_lib/env.js
+++ b/api/_lib/env.js
@@ -233,9 +233,14 @@ export const env = {
// legitimately exceed it and surface as "operation aborted due to timeout".
// Exposed as an env knob so ops can raise it (region latency) or lower it
// (fail faster to memory) without a code deploy. Clamped to [500, 30000];
- // anything unparseable falls back to the default.
+ // anything blank or unparseable falls back to the default (a blank
+ // `CACHE_REDIS_CMD_TIMEOUT_MS=` in the dashboard must NOT become 0 → clamped to
+ // the 500ms floor, which would make timeouts WORSE — the opposite of the knob's
+ // intent).
get CACHE_REDIS_CMD_TIMEOUT_MS() {
- const n = Number(opt('CACHE_REDIS_CMD_TIMEOUT_MS'));
+ const raw = opt('CACHE_REDIS_CMD_TIMEOUT_MS');
+ if (raw == null || String(raw).trim() === '') return 3000;
+ const n = Number(raw);
if (!Number.isFinite(n)) return 3000;
return Math.min(30_000, Math.max(500, Math.round(n)));
},
diff --git a/api/_lib/market/token-market.js b/api/_lib/market/token-market.js
index bf5e2cb34..4b878e2af 100644
--- a/api/_lib/market/token-market.js
+++ b/api/_lib/market/token-market.js
@@ -279,11 +279,7 @@ export async function fetchTokenMarketData(mint, { fresh = false, ttlMs = DEFAUL
if (!fresh) {
try {
const shared = await cacheGet(sharedKey(mint));
- if (shared && shared.price_usd > 0) {
- _cache.set(mint, { value: shared, expires: now + ttlMs, fetchedAt: now });
- if (_cache.size > 256) _cache.delete(_cache.keys().next().value);
- return shared;
- }
+ if (shared && shared.price_usd > 0) return storeL1(mint, shared, now, ttlMs);
} catch {
/* fall through to live fetch */
}
diff --git a/api/_lib/solana-agents-crawl.js b/api/_lib/solana-agents-crawl.js
index 9148f8c5d..a786b5f32 100644
--- a/api/_lib/solana-agents-crawl.js
+++ b/api/_lib/solana-agents-crawl.js
@@ -13,6 +13,15 @@
import { sql } from './db.js';
import { solanaRpcEndpoints } from './solana/connection.js';
+import {
+ truncate,
+ resolveGateway,
+ normalizeDasAsset,
+ agencStatusLabel,
+ agencActive,
+ MAX_NAME,
+ MAX_DESC,
+} from './solana-agents-normalize.js';
// Metaplex Agent Registry identity program. The mpl-agent-registry generated
// client bakes this default in, but we pin it here too so a getProgramAccounts
@@ -20,8 +29,6 @@ import { solanaRpcEndpoints } from './solana/connection.js';
const MPL_AGENT_IDENTITY_PROGRAM = '1DREGFgysWYxLnRnKQnwrxnJQeSMk2HmGaC6whw2B2p';
const FETCH_TIMEOUT_MS = 6_000;
-const MAX_NAME = 200;
-const MAX_DESC = 1000;
// Pick the best available mainnet RPC. solanaRpcEndpoints prefers Helius (which
// also answers DAS getAsset on the same URL), falling back to public nodes.
@@ -31,25 +38,6 @@ function mainnetRpc() {
return url;
}
-export function truncate(s, max) {
- if (s == null) return null;
- const str = String(s).trim();
- if (!str) return null;
- return str.length > max ? str.slice(0, max) : str;
-}
-
-// Resolve ipfs:// and bare-CID metadata pointers to an HTTPS gateway so a fetch
-// can actually retrieve them. Leaves https/http URLs untouched.
-export function resolveGateway(uri) {
- if (!uri) return null;
- const s = String(uri).trim();
- if (!s) return null;
- if (s.startsWith('ipfs://')) return `https://ipfs.io/ipfs/${s.slice(7).replace(/^ipfs\//, '')}`;
- if (s.startsWith('ar://')) return `https://arweave.net/${s.slice(5)}`;
- if (/^[a-zA-Z0-9]{46,59}$/.test(s) && !s.includes('.')) return `https://ipfs.io/ipfs/${s}`;
- return s;
-}
-
async function fetchJsonWithTimeout(url, timeoutMs = FETCH_TIMEOUT_MS) {
const resolved = resolveGateway(url);
if (!resolved) return null;
@@ -70,26 +58,6 @@ async function fetchJsonWithTimeout(url, timeoutMs = FETCH_TIMEOUT_MS) {
}
// Pure normalization of a DAS getAsset result into the index fields. Extracted
-// so the field-picking logic (image source priority, GLB detection, owner) is
-// unit-testable without a live RPC.
-export function normalizeDasAsset(a) {
- if (!a) return null;
- const meta = a.content?.metadata || {};
- const files = a.content?.files || [];
- const links = a.content?.links || {};
- const image = links.image || files.find((f) => /image/i.test(f?.mime || ''))?.uri || null;
- // A glTF/GLB file attached to the asset means it carries a 3D model.
- const glb = files.find((f) => /model\/gltf|\.glb($|\?)|\.gltf($|\?)/i.test(`${f?.mime || ''} ${f?.uri || ''}`))?.uri || null;
- return {
- name: truncate(meta.name, MAX_NAME),
- description: truncate(meta.description, MAX_DESC),
- image: image || null,
- glb_url: glb || null,
- metadata_uri: a.content?.json_uri || null,
- owner: a.ownership?.owner || null,
- };
-}
-
// Single Helius/DAS getAsset call. Returns the normalized fields the index needs.
async function dasGetAsset(rpcUrl, assetId) {
const ctrl = new AbortController();
@@ -162,14 +130,19 @@ export async function crawlMetaplexAgents({ deadline } = {}) {
const { publicKey } = await import('@metaplex-foundation/umi');
const reg = await import('@metaplex-foundation/mpl-agent-registry');
umi = createUmi(rpcUrl);
- // Pin the program address so the GPA scan targets the identity program
- // regardless of the SDK's bundled default.
- const programId = publicKey(MPL_AGENT_IDENTITY_PROGRAM);
+ // The GPA builder reads the identity program id from umi via
+ // context.programs.getPublicKey('mplAgentIdentity', <default>); the SDK's
+ // baked-in default is MPL_AGENT_IDENTITY_PROGRAM, so an unmodified umi scans
+ // the right program. Register it explicitly too, in case a future SDK build
+ // drops the default — then getPublicKey resolves it from the registry.
+ try {
+ umi.programs.add({ name: 'mplAgentIdentity', publicKey: publicKey(MPL_AGENT_IDENTITY_PROGRAM), getErrorFromCode: () => null, getErrorFromName: () => null, isOnCluster: () => true });
+ } catch { /* already registered or registry shape differs — default still applies */ }
gpaV2 = typeof reg.getAgentIdentityV2GpaBuilder === 'function'
- ? reg.getAgentIdentityV2GpaBuilder({ ...umi, programs: { ...umi.programs, getPublicKey: () => programId } })
+ ? reg.getAgentIdentityV2GpaBuilder(umi)
: null;
gpaV1 = typeof reg.getAgentIdentityV1GpaBuilder === 'function'
- ? reg.getAgentIdentityV1GpaBuilder({ ...umi, programs: { ...umi.programs, getPublicKey: () => programId } })
+ ? reg.getAgentIdentityV1GpaBuilder(umi)
: null;
} catch (err) {
report.errors.push({ stage: 'init', error: err.message || String(err) });
@@ -223,15 +196,6 @@ export async function crawlMetaplexAgents({ deadline } = {}) {
// ── AgenC coordination protocol ────────────────────────────────────────────
-const AGENC_STATUS = { 0: 'pending', 1: 'active', 2: 'inactive', 3: 'suspended' };
-
-// Map an AgenC on-chain status (numeric code, or Anchor enum object like
-// {active:{}}) to a human label. Exported for unit coverage of the enum decoding.
-export function agencStatusLabel(raw) {
- const code = typeof raw === 'object' && raw ? Object.keys(raw)[0] : raw;
- return AGENC_STATUS[Number(code)] || (typeof code === 'string' ? code : null);
-}
-
function bytesToBase58(bytes, bs58) {
try {
return bs58.encode(Uint8Array.from(bytes));
@@ -320,7 +284,7 @@ export async function crawlAgencAgents({ deadline } = {}) {
image,
glb_url: glb || null,
x402_support: !!(meta?.x402Support || meta?.x402),
- active: status !== 'suspended' && status !== 'inactive',
+ active: agencActive(status),
enriched: !!meta,
metadata_error: metadataUri && !meta ? 'metadata fetch failed' : null,
});
diff --git a/api/_lib/solana-agents-normalize.js b/api/_lib/solana-agents-normalize.js
new file mode 100644
index 000000000..6ed56b658
--- /dev/null
+++ b/api/_lib/solana-agents-normalize.js
@@ -0,0 +1,60 @@
+// Pure normalization helpers for the Solana agent crawlers. Kept free of any
+// I/O (no db, no RPC) so the field-parsing logic is unit-testable in isolation
+// and can be imported without dragging in the serverless DB driver.
+
+export const MAX_NAME = 200;
+export const MAX_DESC = 1000;
+
+export function truncate(s, max) {
+ if (s == null) return null;
+ const str = String(s).trim();
+ if (!str) return null;
+ return str.length > max ? str.slice(0, max) : str;
+}
+
+// Resolve ipfs:// and bare-CID metadata pointers to an HTTPS gateway so a fetch
+// can actually retrieve them. Leaves https/http URLs untouched.
+export function resolveGateway(uri) {
+ if (!uri) return null;
+ const s = String(uri).trim();
+ if (!s) return null;
+ if (s.startsWith('ipfs://')) return `https://ipfs.io/ipfs/${s.slice(7).replace(/^ipfs\//, '')}`;
+ if (s.startsWith('ar://')) return `https://arweave.net/${s.slice(5)}`;
+ if (/^[a-zA-Z0-9]{46,59}$/.test(s) && !s.includes('.')) return `https://ipfs.io/ipfs/${s}`;
+ return s;
+}
+
+// Pure normalization of a DAS getAsset result into the index fields. Extracted
+// so the field-picking logic (image source priority, GLB detection, owner) is
+// unit-testable without a live RPC.
+export function normalizeDasAsset(a) {
+ if (!a) return null;
+ const meta = a.content?.metadata || {};
+ const files = a.content?.files || [];
+ const links = a.content?.links || {};
+ const image = links.image || files.find((f) => /image/i.test(f?.mime || ''))?.uri || null;
+ // A glTF/GLB file attached to the asset means it carries a 3D model.
+ const glb = files.find((f) => /model\/gltf|\.glb($|\?)|\.gltf($|\?)/i.test(`${f?.mime || ''} ${f?.uri || ''}`))?.uri || null;
+ return {
+ name: truncate(meta.name, MAX_NAME),
+ description: truncate(meta.description, MAX_DESC),
+ image: image || null,
+ glb_url: glb || null,
+ metadata_uri: a.content?.json_uri || null,
+ owner: a.ownership?.owner || null,
+ };
+}
+
+const AGENC_STATUS = { 0: 'pending', 1: 'active', 2: 'inactive', 3: 'suspended' };
+
+// Map an AgenC on-chain status (numeric code, or Anchor enum object like
+// {active:{}}) to a human label. Exported for unit coverage of the enum decoding.
+export function agencStatusLabel(raw) {
+ const code = typeof raw === 'object' && raw ? Object.keys(raw)[0] : raw;
+ return AGENC_STATUS[Number(code)] || (typeof code === 'string' ? code : null);
+}
+
+// AgenC statuses that mean the agent should be hidden from the directory.
+export function agencActive(statusLabel) {
+ return statusLabel !== 'suspended' && statusLabel !== 'inactive';
+}
diff --git a/api/client-errors.js b/api/client-errors.js
index 0f61f6841..0cd048731 100644
--- a/api/client-errors.js
+++ b/api/client-errors.js
@@ -64,6 +64,11 @@ function isDevOriginPage(page) {
const INJECTED_GLOBALS =
/\b(currentInset|gCrWeb|__gCrWeb|__firefox__|_AutofillCallbackHandler|instantSearchSDKJSBridgeClearHighlight|webkitStorageInfo|bannerNight|ceCurrentVideo|isHighlightingEnabled|zaloJSV2|MyAppGetLinkProperties)\b/;
+// "Read property `prop` of null/undefined" in both WebKit and Chromium phrasings.
+// Capture group 1 (WebKit) or 2 (Chromium) is the dereferenced property name.
+const PROP_ACCESS_TYPEERROR =
+ /(?:undefined|null) is not an object \(evaluating '[^']*\.([A-Za-z_$][\w$]*)'\)|cannot read propert(?:y|ies) of (?:undefined|null) \(reading '([A-Za-z_$][\w$]*)'\)/i;
+
// Errors that originate outside our code and are never actionable from a deploy.
// Dropping them at the boundary keeps the prod error logs, Sentry, and ops paging
// focused on genuine first-party faults. Clients running a freshly-cached
diff --git a/data/changelog.json b/data/changelog.json
index d0511b9b6..22d1bef75 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,26 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-28",
+ "title": "The Agents directory now lists every on-chain agent, not just ours",
+ "summary": "Until now /agents showed the agents launched on three.ws plus the ones registered through ERC-8004 on EVM chains. We've expanded it to the whole Solana agent ecosystem: a new background crawler indexes the Metaplex Agent Registry and the AgenC coordination protocol every half hour, so agents created anywhere on Solana — not only on three.ws — appear in the directory automatically. The page now opens on one unified feed with quick filters for All sources, Solana, and EVM, and every card carries a coloured badge showing where the agent came from (Metaplex, AgenC, an EVM chain, or three.ws). Agents we launched that are also registered upstream are de-duplicated so they only show once, with their richer three.ws profile.",
+ "tags": [
+ "feature",
+ "infra"
+ ],
+ "link": "/agents"
+ },
+ {
+ "date": "2026-06-28",
+ "title": "$THREE price and market stats stay live even when data providers throttle us",
+ "summary": "The $THREE price, market cap, holders and supply panels — plus the holder leaderboard percentages — pull from outside market-data providers. Under heavy traffic every page load used to ask those providers directly, and when they all hit their free rate limits at once the stats would briefly fall back to a slightly older snapshot. Now a background job refreshes the numbers once a minute into a shared cache that every page reads from, and when the cache does need a refresh only one request fetches while the rest wait for it — instead of a thundering herd that trips every provider's limit at once. The result: market stats stay fresh and populated, and the 'all providers throttled' fallback almost never triggers.",
+ "tags": [
+ "improvement",
+ "infra"
+ ],
+ "link": "/three-token"
+ },
{
"date": "2026-06-28",
"title": "Text-to-3D falls back to the free engine when the paid one runs dry",
diff --git a/public/changelog.json b/public/changelog.json
index 48c3b0117..e3ee88a9d 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-28T21:09:09.730Z",
+ "generated_at": "2026-06-28T21:20:14.117Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -16,6 +16,17 @@
"fix"
]
},
+ {
+ "date": "2026-06-28",
+ "type": "update",
+ "title": "$THREE price and market stats stay live even when data providers throttle us",
+ "summary": "The $THREE price, market cap, holders and supply panels — plus the holder leaderboard percentages — pull from outside market-data providers. Under heavy traffic every page load used to ask those providers directly, and when they all hit their free rate limits at once the stats would briefly fall back to a slightly older snapshot. Now a background job refreshes the numbers once a minute into a shared cache that every page reads from, and when the cache does need a refresh only one request fetches while the rest wait for it — instead of a thundering herd that trips every provider's limit at once. The result: market stats stay fresh and populated, and the 'all providers throttled' fallback almost never triggers.",
+ "link": "/three-token",
+ "tags": [
+ "improvement",
+ "infra"
+ ]
+ },
{
"date": "2026-06-28",
"type": "update",
@@ -416,6 +427,17 @@
"fix"
]
},
+ {
+ "date": "2026-06-28",
+ "type": "update",
+ "title": "The Agents directory now lists every on-chain agent, not just ours",
+ "summary": "Until now /agents showed the agents launched on three.ws plus the ones registered through ERC-8004 on EVM chains. We've expanded it to the whole Solana agent ecosystem: a new background crawler indexes the Metaplex Agent Registry and the AgenC coordination protocol every half hour, so agents created anywhere on Solana — not only on three.ws — appear in the directory automatically. The page now opens on one unified feed with quick filters for All sources, Solana, and EVM, and every card carries a coloured badge showing where the agent came from (Metaplex, AgenC, an EVM chain, or three.ws). Agents we launched that are also registered upstream are de-duplicated so they only show once, with their richer three.ws profile.",
+ "link": "/agents",
+ "tags": [
+ "feature",
+ "infra"
+ ]
+ },
{
"date": "2026-06-28",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 31cc9b355..c10d72837 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -14,6 +14,14 @@
<category>fix</category>
<description>Paid actions priced in $THREE (Forge high tier, spins, marketplace) no longer fail when every live price feed happens to miss on the same request. The price layer now keeps a recent last-known-good price and serves it through a momentary simultaneous outage of Jupiter and the backup feeds, so a quote is never rejected over a transient blip. Prices older than five minutes are still refused — a payment is never priced off a stale number. And on the rare moment the payment rail genuinely is catching its breath, you now see a clear &quot;briefly unavailable — try again&quot; message instead of a raw &quot;internal error&quot; support code.</description>
</item>
+ <item>
+ <title>$THREE price and market stats stay live even when data providers throttle us</title>
+ <link>https://three.ws/three-token</link>
+ <guid isPermaLink="false">2026-06-28:$THREE price and market stats stay live even when data providers throttle us</guid>
+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The $THREE price, market cap, holders and supply panels — plus the holder leaderboard percentages — pull from outside market-data providers. Under heavy traffic every page load used to ask those providers directly, and when they all hit their free rate limits at once the stats would briefly fall back to a slightly older snapshot. Now a background job refreshes the numbers once a minute into a shared cache that every page reads from, and when the cache does need a refresh only one request fetches while the rest wait for it — instead of a thundering herd that trips every provider's limit at once. The result: market stats stay fresh and populated, and the 'all providers throttled' fallback almost never triggers.</description>
+ </item>
<item>
<title>A free, no-login 3D Studio you can add to ChatGPT</title>
<link>https://three.ws/changelog</link>
@@ -318,6 +326,14 @@
<category>fix</category>
<description>On pages with a white accent color, the &quot;⑂ Save to my avatars&quot; button (shown on any avatar you don't own) rendered white text on a white background — effectively invisible. The button now picks its text color from the actual button background, so a light button gets black text and a dark button keeps white, keeping the label legible everywhere it appears.</description>
</item>
+ <item>
+ <title>The Agents directory now lists every on-chain agent, not just ours</title>
+ <link>https://three.ws/agents</link>
+ <guid isPermaLink="false">2026-06-28:The Agents directory now lists every on-chain agent, not just ours</guid>
+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Until now /agents showed the agents launched on three.ws plus the ones registered through ERC-8004 on EVM chains. We've expanded it to the whole Solana agent ecosystem: a new background crawler indexes the Metaplex Agent Registry and the AgenC coordination protocol every half hour, so agents created anywhere on Solana — not only on three.ws — appear in the directory automatically. The page now opens on one unified feed with quick filters for All sources, Solana, and EVM, and every card carries a coloured badge showing where the agent came from (Metaplex, AgenC, an EVM chain, or three.ws). Agents we launched that are also registered upstream are de-duplicated so they only show once, with their richer three.ws profile.</description>
+ </item>
<item>
<title>The Avatar Engines Atlas page is now reachable</title>
<link>https://three.ws/avatar-engines</link>
diff --git a/public/features.json b/public/features.json
index 7a710e866..a9b6dddd3 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-28T21:09:09.704Z",
+ "generated_at": "2026-06-28T21:20:14.079Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/tests/api/client-errors.test.js b/tests/api/client-errors.test.js
index 3e1c8138c..7a8488800 100644
--- a/tests/api/client-errors.test.js
+++ b/tests/api/client-errors.test.js
@@ -165,6 +165,30 @@ describe('api/client-errors', () => {
'injected webview global (Chrome/FF)',
{ type: 'error', name: 'ReferenceError', message: 'gCrWeb is not defined' },
],
+ [
+ 'injected-overlay hideIndicator (WebKit)',
+ {
+ type: 'unhandledrejection',
+ name: 'TypeError',
+ message: "undefined is not an object (evaluating 'e.hideIndicator')",
+ },
+ ],
+ [
+ 'injected-overlay hideIndicator (Chromium)',
+ {
+ type: 'unhandledrejection',
+ name: 'TypeError',
+ message: "Cannot read properties of undefined (reading 'hideIndicator')",
+ },
+ ],
+ [
+ 'stackless colorSpace null-read (injected canvas wrapper)',
+ {
+ type: 'unhandledrejection',
+ name: 'TypeError',
+ message: "Cannot read properties of null (reading 'colorSpace')",
+ },
+ ],
];
for (const [label, event] of cases) {
it(`drops ${label} — no log, no Sentry, no page`, async () => {
@@ -180,6 +204,47 @@ describe('api/client-errors', () => {
});
}
+ it('still reports a colorSpace null-read that carries a first-party stack', async () => {
+ // A genuine three-core fault (our bundle) keeps its /assets/* stack — only
+ // the unattributable stackless variant is injected noise we drop.
+ const { body } = await invoke({
+ body: {
+ page: 'https://three.ws/walk',
+ events: [
+ {
+ type: 'unhandledrejection',
+ name: 'TypeError',
+ message: "Cannot read properties of null (reading 'colorSpace')",
+ stack: 'TypeError\n at applyEnv (https://three.ws/assets/walk-abc123.js:9:42)',
+ ts: 1,
+ },
+ ],
+ },
+ });
+ expect(body.received).toBe(1);
+ expect(body.dropped).toBe(0);
+ expect(captureException).toHaveBeenCalledTimes(1);
+ });
+
+ it('still reports a real TypeError that dereferences one of our own symbols', async () => {
+ const { body } = await invoke({
+ body: {
+ page: 'https://three.ws/walk',
+ events: [
+ {
+ type: 'unhandledrejection',
+ name: 'TypeError',
+ message: "undefined is not an object (evaluating 'viewer.renderScene')",
+ ts: 1,
+ },
+ ],
+ },
+ });
+ expect(body.received).toBe(1);
+ expect(body.dropped).toBe(0);
+ expect(captureException).toHaveBeenCalledTimes(1);
+ });
+
it('still reports a real ReferenceError that names one of our own variables', async () => {
const { body } = await invoke({
body: {
diff --git a/tests/env-upstash-cred.test.js b/tests/env-upstash-cred.test.js
index c69a6c8fc..fcfae3873 100644
--- a/tests/env-upstash-cred.test.js
+++ b/tests/env-upstash-cred.test.js
@@ -121,6 +121,16 @@ describe('env CACHE_REDIS_CMD_TIMEOUT_MS (cache command timeout knob)', () => {
process.env.CACHE_REDIS_CMD_TIMEOUT_MS = 'not-a-number';
expect(env.CACHE_REDIS_CMD_TIMEOUT_MS).toBe(3000);
});
+
+ it('falls back to the default for a blank value (must NOT clamp 0 → 500ms)', () => {
+ // A dashboard key left empty (`CACHE_REDIS_CMD_TIMEOUT_MS=`) must not become
+ // Number('')===0 clamped up to the 500ms floor — that would make timeouts
+ // worse, the opposite of the knob's intent.
+ process.env.CACHE_REDIS_CMD_TIMEOUT_MS = '';
+ expect(env.CACHE_REDIS_CMD_TIMEOUT_MS).toBe(3000);
+ process.env.CACHE_REDIS_CMD_TIMEOUT_MS = ' ';
+ expect(env.CACHE_REDIS_CMD_TIMEOUT_MS).toBe(3000);
+ });
});
describe('env Upstash atomic credential pairing (cross-store WRONGPASS guard)', () => {
diff --git a/tests/solana-agents-crawl.test.js b/tests/solana-agents-crawl.test.js
index 40af30bba..7c2acf38f 100644
--- a/tests/solana-agents-crawl.test.js
+++ b/tests/solana-agents-crawl.test.js
@@ -4,7 +4,8 @@ import {
resolveGateway,
normalizeDasAsset,
agencStatusLabel,
-} from '../api/_lib/solana-agents-crawl.js';
+ agencActive,
+} from '../api/_lib/solana-agents-normalize.js';
describe('solana-agents-crawl helpers', () => {
describe('truncate', () => {