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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(rpc): fail over past a thrown Solana RPC attempt instead of crashing the whole rotation
nirholasa38e8e966af5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 97731c2dc..68ad6a691 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -40,6 +40,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Screen caster: stopping your caster no longer posts a phantom error**: The self-hosted agent-screen-caster service (the one that gives your agent a live, watchable browser screen) used to push a scary "Task error" line into your agent's public activity log every time you stopped it with Ctrl-C, because the shutdown looked like a crash from the inside. Stopping the caster is now recognised as a clean shutdown and leaves the log untouched, so watchers only ever see real errors. The whole path was re-verified end to end against production: key minting from the dashboard flow, live JPEG frames on the watch stream, and the retry policy that keeps a long-running caster alive through rate limits and server blips. `[fix]`- **Scrolling back through a DM no longer stops early, and muting a departed account works**: Loading older messages in a direct-message thread used the oldest message on screen as its place marker. If that marker no longer resolved, because the account had left or the marker came from a different conversation, the thread reported that there was no older history at all rather than saying the marker was bad, so the scrollback simply stopped. The place marker is now checked against the conversation it belongs to, and a bad one is reported as such. Muting someone whose account no longer exists used to fail with a generic server error; it now says the account was not found, the same answer a friend request to a missing account already gave. Friend search also turns away absurdly long search terms instead of running them across every account. (`/walk`) `[fix]`- **Sharing a placement and opening a World Line quest both fail cleanly now**: Three fixes to the IRL surfaces. Sharing a placed agent with a pin id that is not a real pin id used to come back as a generic internal error with a support reference, as if something had broken on our side; it now says plainly that the id is not a pin. The refusal you get when you try to share a placement you kept private told you to do the opposite of what actually fixes it, so the copy now tells you to make the pin public first. And the World Line quest feeds (the nearby list and a single quest page) could fail outright on a database that had never held a pin, because they read the pin table without ever creating it; they now share the pin feed’s own setup, along with its content guard, so a quest title is held to exactly the same coin and language rules a pin caption is. (`/irl`) `[fix, improvement]`+- **Solana reads no longer fail when one RPC provider hangs**: A scoping bug in the Solana RPC failover meant that a provider whose connection hung or dropped could crash the whole request instead of handing it to the next provider in the chain. Wallet sign-in for /play and other on-chain balance reads answered with a server error whenever the rotation landed on such a lane. The failover now rotates past a hung or unreachable provider exactly like any other refusal, so one bad node never takes a read down. `[fix, infra]`- **The /play event and swarm guides stopped describing things that are not there**: Two guides told you to edit a config file the platform no longer ships. The live-events and event-souvenir pages were written while an event was scheduled, and when that config was retired the pages kept describing it as present, so anyone following them hunted for a file that was not in the repo and could not tell whether the feature was broken or simply idle. Both now say plainly that no event is scheduled, that writing the file is how you schedule one, and that the preview flag and the browser audit both need it in place before they show anything. The /play hardening guide named five rate-limit buckets that do not exist under those names, sending anyone auditing the limiter to the wrong keys; it now names the real ones. The trading-swarms error table listed nine of the twenty codes the API actually returns, so a client written from it would fall through on a contribution that trips the per-member share cap, an invite-only swarm, or an exit blocked by open positions: all of those are documented now. And the IBM Community catalog picked up the group's fourth blog post and refreshed its snapshot counts. (`/docs/play-live-events`) `[docs, fix]`- **The $THREE tile on the live heatmap shows real buy pressure again**: The 3D market heatmap on agent screens pins $THREE as its anchor tile, and that tile was meant to carry a community pulse alongside price and volume. The pulse read pump.fun's public comments feed, which pump.fun has since removed from its open API, so the tile had been quietly shipping without it: no error, just a signal that never appeared. The anchor now carries its 24h order flow instead, read from the same live market data the tile already fetches: how many of the last day's swaps were buys versus sells, as a percentage and a leaning score. Hovering the anchor shows it, and the screen's spoken market narration calls it out. Two related fixes landed with it. The wallet and coin intel endpoints now reject a malformed address with a clear error instead of answering as though the address simply had no history. And a total market-data outage now returns a proper error rather than an anchor tile with no numbers in it. `[fix, improvement]`- **The 3D sentiment heatmap shows live $THREE order flow again after pump.fun retired its comments API**: The heatmap on agent screens pins $THREE at the centre and used to enrich that tile with a sentiment reading scored from pump.fun coin-page comments. pump.fun removed that public comments feed, so the reading silently disappeared: the tooltip row and the narrator's line about it simply stopped rendering, with nothing to say why. The anchor tile now carries a live 24h order-flow pulse instead, read from the same market data the tile already fetches: how the last day of trades split between buys and sells, shown as a buy percentage in the tooltip and folded into the narrator's read of the tape. It is real observed swap activity and costs no extra upstream call. Two related fixes: a total market-data outage with no cached field now returns a clear error instead of a single lifeless tile, and the wallet and coin intel endpoints answer a mistyped address with a plain bad-request message rather than treating it as a real wallet with no history. (`/docs/api-reference`) `[fix, improvement]`diff --git a/api/_lib/solana/connection.js b/api/_lib/solana/connection.jsindex f0ec2cded..cdcaf893a 100644--- a/api/_lib/solana/connection.js+++ b/api/_lib/solana/connection.js@@ -1134,12 +1134,16 @@ export function makeRotatingFetch(endpoints) {// `StructError`, and the /api/solana-rpc proxy would forward the garbage (an// empty `[]`) straight to the browser.const tryEndpoint = async (url) => {+ // Bound every attempt so one hanging provider can never absorb the whole+ // request budget (undici's default timeouts run to minutes): the attempt+ // aborts, cools briefly, and the rotation moves on. A caller-supplied+ // signal still applies on top via AbortSignal.any. Declared OUTSIDE the+ // try on purpose: the catch reads `attemptSignal.aborted`, and a const+ // inside the try block is not in scope there, so a thrown attempt raised+ // ReferenceError instead of rotating and killed the whole failover chain+ // (the play-gate 502 of 2026-08-13).+ const attemptSignal = AbortSignal.timeout(ATTEMPT_TIMEOUT_MS);try {- // Bound every attempt so one hanging provider can never absorb the whole- // request budget (undici's default timeouts run to minutes): the attempt- // aborts, cools briefly, and the rotation moves on. A caller-supplied- // signal still applies on top via AbortSignal.any.- const attemptSignal = AbortSignal.timeout(ATTEMPT_TIMEOUT_MS);const resp = await fetch(url, {...init,signal: init?.signal ? AbortSignal.any([init.signal, attemptSignal]) : attemptSignal,diff --git a/data/changelog.json b/data/changelog.jsonindex 2f68a35e9..82afa60b7 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-08-13",+ "title": "Solana reads no longer fail when one RPC provider hangs",+ "summary": "A scoping bug in the Solana RPC failover meant that a provider whose connection hung or dropped could crash the whole request instead of handing it to the next provider in the chain. Wallet sign-in for /play and other on-chain balance reads answered with a server error whenever the rotation landed on such a lane. The failover now rotates past a hung or unreachable provider exactly like any other refusal, so one bad node never takes a read down.",+ "tags": [+ "fix",+ "infra"+ ]+ },{"date": "2026-08-13","title": "Rate ceilings on stud listings and inscription status polls",diff --git a/public/changelog.json b/public/changelog.jsonindex 72ecb5f66..9a1a0303f 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-13T16:39:43.927Z",+ "generated_at": "2026-08-13T16:43:11.555Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -365,6 +365,17 @@"improvement"]},+ {+ "date": "2026-08-13",+ "type": "update",+ "title": "Solana reads no longer fail when one RPC provider hangs",+ "summary": "A scoping bug in the Solana RPC failover meant that a provider whose connection hung or dropped could crash the whole request instead of handing it to the next provider in the chain. Wallet sign-in for /play and other on-chain balance reads answered with a server error whenever the rotation landed on such a lane. The failover now rotates past a hung or unreachable provider exactly like any other refusal, so one bad node never takes a read down.",+ "link": null,+ "tags": [+ "fix",+ "infra"+ ]+ },{"date": "2026-08-13","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 368914b84..5959bfa69 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -278,6 +278,14 @@<category>fix</category><description>Three fixes to the IRL surfaces. Sharing a placed agent with a pin id that is not a real pin id used to come back as a generic internal error with a support reference, as if something had broken on our side; it now says plainly that the id is not a pin. The refusal you get when you try to share a placement you kept private told you to do the opposite of what actually fixes it, so the copy now tells you to make the pin public first. And the World Line quest feeds (the nearby list and a single quest page) could fail outright on a database that had never held a pin, because they read the pin table without ever creating it; they now share the pin feed’s own setup, along with its content guard, so a quest title is held to exactly the same coin and language rules a pin caption is.</description></item>+ <item>+ <title>Solana reads no longer fail when one RPC provider hangs</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-08-13:Solana reads no longer fail when one RPC provider hangs</guid>+ <pubDate>Thu, 13 Aug 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>A scoping bug in the Solana RPC failover meant that a provider whose connection hung or dropped could crash the whole request instead of handing it to the next provider in the chain. Wallet sign-in for /play and other on-chain balance reads answered with a server error whenever the rotation landed on such a lane. The failover now rotates past a hung or unreachable provider exactly like any other refusal, so one bad node never takes a read down.</description>+ </item><item><title>The /play event and swarm guides stopped describing things that are not there</title><link>https://three.ws/docs/play-live-events</link>diff --git a/tests/solana-rpc-rotating-fetch.test.js b/tests/solana-rpc-rotating-fetch.test.jsindex 11039be84..eb6865560 100644--- a/tests/solana-rpc-rotating-fetch.test.js+++ b/tests/solana-rpc-rotating-fetch.test.js@@ -90,6 +90,27 @@ describe('makeRotatingFetch — never leaks an unvalidated upstream body', () =>expect((await out.json()).result).toEqual({ ok: true });});+ // A lane whose fetch THROWS (connection refused, DNS failure, or the 10s+ // attempt bound aborting a hung provider) must rotate to the next lane like+ // any other failure. Regression: `attemptSignal` was declared inside the try+ // block but read in the catch, where a try-scoped const is not visible, so+ // every thrown attempt raised ReferenceError out of the rotation instead of+ // failing over. That is how one hung free lane turned the /play balance gate+ // into a hard 502 (2026-08-13).+ it('fails over past a lane whose fetch throws, instead of leaking the throw', async () => {+ const eps = ['https://throw-e1.test/', 'https://throw-e2.test/'];+ global.fetch = vi.fn(async (url) => {+ if (url === eps[0]) throw new TypeError('fetch failed');+ return resp(VALID);+ });+ const out = await makeRotatingFetch(eps)(null, {+ method: 'POST',+ body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'getTokenAccountsByOwner', params: [] }),+ });+ expect((await out.json()).result).toEqual({ ok: true });+ expect(global.fetch).toHaveBeenCalledTimes(2);+ });+// The mirror-image guard: a genuinely absent method is deterministic across every// provider, so rotating on it would just retry a guaranteed failure on each lane.// It must reach the caller untouched.