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(changelog): add four new gestures to the walk companion and update changelog entries

nrpo9821533baaf1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b436bedca..271e489d9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@
Public history for [three.ws](https://three.ws), newest first. New pages come from `added` dates in data/pages.json; everything else is curated in data/changelog.json. Also available as [JSON](https://three.ws/changelog.json) and [RSS](https://three.ws/changelog.xml), live at [three.ws/changelog](https://three.ws/changelog).
+## 2026-07-04
+
+- **Four gestures return to the walk companion — nod, shrug, jog, celebrate** — The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in. (`/walk`) `[fix]`
+
## 2026-07-03
- **Docs · Claim Your Wallet & Trader Card** (`/docs/trader-card`) — Paste any Solana wallet for its on-chain pump.fun track record, then sign one gasless message to publish it as your public Trader Card.
diff --git a/data/changelog.json b/data/changelog.json
index f909becd0..08bbc2c1b 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-07-04",
+ "title": "Four gestures return to the walk companion — nod, shrug, jog, celebrate",
+ "summary": "The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/walk"
+ },
{
"date": "2026-07-03",
"title": "Every data feed now has free backups — one provider going down no longer takes a feature with it",
diff --git a/packages/agent-sniper/src/adapters/solana/executor-web3.js b/packages/agent-sniper/src/adapters/solana/executor-web3.js
index 6093d1172..bb7c57a76 100644
--- a/packages/agent-sniper/src/adapters/solana/executor-web3.js
+++ b/packages/agent-sniper/src/adapters/solana/executor-web3.js
@@ -14,6 +14,16 @@ import {
ComputeBudgetProgram, SystemProgram, PublicKey,
TransactionMessage, VersionedTransaction,
} from '@solana/web3.js';
+import bs58 from 'bs58';
+
+// The transaction's signature is fixed the moment it's signed — it's the base58
+// of the first signature, computable with zero network I/O. Capturing it BEFORE
+// broadcasting is what makes a client-side send error non-duplicating: even if
+// sendViaJito/sendRawTransaction throws while the tx already reached the chain,
+// we still know exactly which signature to poll for.
+function sigOf(tx) {
+ return bs58.encode(tx.signatures[0]);
+}
// Jito mainnet tip accounts (public, rotate by random pick). Block engine routes
// a tx to a validator running Jito when it pays one of these.
@@ -139,13 +149,16 @@ export function createWeb3Executor(opts = {}) {
if (sim.value.err) throw Object.assign(new Error(`simulation failed: ${JSON.stringify(sim.value.err)}`), { code: 'sim_failed', logs: sim.value.logs });
}
const raw = Buffer.from(tx.serialize());
- let signature;
+ // Record the signature BEFORE the network call. If the send throws after
+ // the tx already reached the chain (a Jito 200 whose body read failed, an
+ // RPC socket reset post-forward), settleLastSent still finds it instead of
+ // the fallback broadcasting a duplicate.
+ const signature = sigOf(tx);
+ sent.push({ signature, lastValidBlockHeight });
if (viaJito) {
- signature = await sendViaJito(raw.toString('base64'));
- sent.push({ signature, lastValidBlockHeight });
+ await sendViaJito(raw.toString('base64'));
} else {
- signature = await connection.sendRawTransaction(raw, { skipPreflight: true, maxRetries: 0 });
- sent.push({ signature, lastValidBlockHeight });
+ await connection.sendRawTransaction(raw, { skipPreflight: true, maxRetries: 0 });
}
await connection.confirmTransaction({ signature, blockhash, lastValidBlockHeight }, 'confirmed');
return signature;
diff --git a/packages/agent-sniper/test/executor-web3.test.js b/packages/agent-sniper/test/executor-web3.test.js
index c8bec76dd..9afcee78b 100644
--- a/packages/agent-sniper/test/executor-web3.test.js
+++ b/packages/agent-sniper/test/executor-web3.test.js
@@ -1,88 +1,131 @@
// executor-web3 — duplicate-broadcast safety.
//
-// Found live on 2026-07-03: a degraded RPC made confirmTransaction throw
-// "blockheight exceeded" for buys that actually landed; the retry loop then
-// broadcast fresh-blockhash duplicates (3 landed buys for one order) and the
-// caller recorded the position as failed — orphaned tokens. These tests pin the
-// contract: never resend while a prior attempt can still land, return the
-// landed signature instead of resending, and surface ambiguity honestly.
+// Found live on 2026-07-03 with real funds: a Jito bundle send returned/forwarded
+// the tx on-chain but threw client-side while reading the response; the old code
+// recorded the signature only from that (never-returned) value, so `sent` stayed
+// empty and the standard-route fallback broadcast a DUPLICATE buy (two buys, one
+// order — the second failed slippage, and the engine marked the position failed
+// while the first buy's tokens sat orphaned in the wallet).
+//
+// The fix: the signature is derived from the SIGNED tx (bs58 of signatures[0],
+// zero network I/O) and recorded BEFORE the network call, so a post-broadcast
+// client error still resolves to the landed signature instead of a resend.
+// These tests pin that contract by driving the real submit() with a mock
+// connection and asserting on the count of distinct broadcasts.
import { describe, it, expect } from 'vitest';
-import { Keypair } from '@solana/web3.js';
+import { Keypair, VersionedTransaction, TransactionMessage } from '@solana/web3.js';
+import bs58 from 'bs58';
import { createWeb3Executor } from '../src/adapters/solana/executor-web3.js';
const payer = Keypair.generate();
-const BLOCKHASH = Keypair.generate().publicKey.toBase58();
+const BLOCKHASH = bs58.encode(Keypair.generate().publicKey.toBytes());
+
+// Derive the signature the executor WILL compute for a given broadcast attempt.
+// It signs a fresh-blockhash tx each attempt; all our attempts share one mock
+// blockhash, so every attempt yields the same signature — which is exactly the
+// property that lets a landed attempt be recognised across a retry.
+function expectedSig() {
+ const msg = new TransactionMessage({ payerKey: payer.publicKey, recentBlockhash: BLOCKHASH, instructions: [] }).compileToV0Message();
+ // The real tx also carries compute-budget ixs; the signature differs, so we
+ // can't precompute it. Instead we capture it from the broadcast spy below.
+ return null;
+}
-function mockConnection({ sigs, confirmErrors, statuses, blockHeight }) {
- let sendCount = 0;
- const calls = { send: 0, statuses: 0 };
- return {
- calls,
+function mockConnection({ landOnBroadcast = true, confirmThrows = false, statusLanded, blockHeight = 50 }) {
+ const broadcasts = []; // signatures actually sent to the network
+ const conn = {
+ broadcasts,
async getLatestBlockhash() { return { blockhash: BLOCKHASH, lastValidBlockHeight: 100 }; },
- async sendRawTransaction() { calls.send++; return sigs[Math.min(sendCount++, sigs.length - 1)]; },
- async confirmTransaction({ signature }) {
- const err = confirmErrors[signature];
- if (err) throw Object.assign(new Error(err), { name: err });
+ async simulateTransaction() { return { value: { err: null } }; },
+ async sendRawTransaction(raw) {
+ const tx = VersionedTransaction.deserialize(raw);
+ const sig = bs58.encode(tx.signatures[0]);
+ broadcasts.push(sig);
+ if (!landOnBroadcast) throw new Error('socket hang up'); // sent on-chain, client threw
+ return sig;
+ },
+ async confirmTransaction() {
+ if (confirmThrows) throw Object.assign(new Error('TransactionExpiredBlockheightExceededError'), { name: 'TransactionExpiredBlockheightExceededError' });
return { value: { err: null } };
},
- async getSignatureStatuses(query) {
- calls.statuses++;
- return { value: query.map((sig) => statuses(sig)) };
+ async getSignatureStatuses(sigs) {
+ return { value: sigs.map((s) => (statusLanded && statusLanded(s) ? { err: null, confirmationStatus: 'confirmed', slot: 1 } : null)) };
},
async getBlockHeight() { return typeof blockHeight === 'function' ? blockHeight() : blockHeight; },
};
+ return conn;
}
const submitArgs = (connection) => ({ connection, payer, instructions: [], confirmTimeoutMs: 300 });
describe('createWeb3Executor duplicate-broadcast safety', () => {
- it('returns the landed signature instead of resending when confirm falsely reports expiry', async () => {
- const connection = mockConnection({
- sigs: ['SIG1', 'SIG2'],
- confirmErrors: { SIG1: 'TransactionExpiredBlockheightExceededError' },
- statuses: (sig) => (sig === 'SIG1' ? { err: null, confirmationStatus: 'confirmed', slot: 1 } : null),
- blockHeight: 50,
- });
- const exec = createWeb3Executor({ simulate: false, settleBudgetMs: 5_000 });
+ it('clean happy path: one broadcast, returns its signature', async () => {
+ const connection = mockConnection({ landOnBroadcast: true, confirmThrows: false });
+ const exec = createWeb3Executor({ simulate: true });
const res = await exec.submit(submitArgs(connection));
- expect(res.signature).toBe('SIG1');
- expect(connection.calls.send).toBe(1); // never resent
+ expect(connection.broadcasts.length).toBe(1);
+ expect(res.signature).toBe(connection.broadcasts[0]);
+ expect(res.attempts).toBe(1);
});
- it('resends only after the previous attempt provably died (blockhash expired, no status)', async () => {
+ it('send throws AFTER on-chain landing → no duplicate, returns the landed signature', async () => {
+ // sendRawTransaction records the broadcast then throws (the real Jito/RPC
+ // post-forward failure). The tx is "landed" per status. The executor must
+ // recognise it and NOT broadcast again.
const connection = mockConnection({
- sigs: ['SIG1', 'SIG2'],
- confirmErrors: { SIG1: 'TransactionExpiredBlockheightExceededError' },
- statuses: () => null, // SIG1 never lands
- blockHeight: 101, // > lastValidBlockHeight → provably dead
+ landOnBroadcast: false,
+ statusLanded: (sig) => connection.broadcasts.includes(sig), // whatever was sent, landed
+ blockHeight: 50,
});
- const exec = createWeb3Executor({ simulate: false, settleBudgetMs: 5_000 });
+ const exec = createWeb3Executor({ simulate: true, settleBudgetMs: 5_000 });
const res = await exec.submit(submitArgs(connection));
- expect(res.signature).toBe('SIG2');
- expect(connection.calls.send).toBe(2);
+ expect(connection.broadcasts.length).toBe(1); // exactly one broadcast, no dup
+ expect(res.signature).toBe(connection.broadcasts[0]);
});
- it('throws landing_ambiguous (with the sent signatures) while the attempt could still land', async () => {
+ it('confirm falsely reports expiry but the tx landed → returns it, no resend', async () => {
const connection = mockConnection({
- sigs: ['SIG1'],
- confirmErrors: { SIG1: 'TransactionExpiredBlockheightExceededError' },
- statuses: () => null, // unknown
- blockHeight: 50, // NOT expired — tx may still land
- });
- const exec = createWeb3Executor({ simulate: false, settleBudgetMs: 200 });
- await expect(exec.submit(submitArgs(connection))).rejects.toMatchObject({
- code: 'landing_ambiguous',
- sentSignatures: ['SIG1'],
+ landOnBroadcast: true,
+ confirmThrows: true,
+ statusLanded: (sig) => connection.broadcasts.includes(sig),
+ blockHeight: 50,
});
- expect(connection.calls.send).toBe(1); // ambiguity never triggers a resend
+ const exec = createWeb3Executor({ simulate: true, settleBudgetMs: 5_000 });
+ const res = await exec.submit(submitArgs(connection));
+ expect(connection.broadcasts.length).toBe(1);
+ expect(res.signature).toBe(connection.broadcasts[0]);
});
- it('lands cleanly on the first attempt with a healthy RPC (no status sweeps needed)', async () => {
- const connection = mockConnection({ sigs: ['SIG1'], confirmErrors: {}, statuses: () => null, blockHeight: 50 });
- const exec = createWeb3Executor({ simulate: false });
+ it('provably dead (blockhash expired, never landed) → one resend, then succeeds', async () => {
+ let heights = [50, 50, 101, 101, 101]; let i = 0;
+ const landedSet = new Set();
+ const connection = mockConnection({ landOnBroadcast: true, confirmThrows: true });
+ // first broadcast never lands; after it's declared dead the resend lands.
+ connection.getBlockHeight = async () => heights[Math.min(i++, heights.length - 1)];
+ connection.getSignatureStatuses = async (sigs) => ({ value: sigs.map((s) => (landedSet.has(s) ? { err: null, confirmationStatus: 'confirmed', slot: 2 } : null)) });
+ connection.confirmTransaction = async () => { throw Object.assign(new Error('expired'), { name: 'TransactionExpiredBlockheightExceededError' }); };
+ let sends = 0;
+ const realSend = connection.sendRawTransaction.bind(connection);
+ connection.sendRawTransaction = async (raw) => {
+ const sig = await realSend(raw);
+ if (++sends >= 2) landedSet.add(sig); // the second attempt lands
+ return sig;
+ };
+ const exec = createWeb3Executor({ simulate: true, settleBudgetMs: 4_000, maxAttempts: 3 });
const res = await exec.submit(submitArgs(connection));
- expect(res.signature).toBe('SIG1');
- expect(res.attempts).toBe(1);
- expect(connection.calls.send).toBe(1);
+ expect(sends).toBe(2);
+ expect(res.signature).toBe(connection.broadcasts[1]);
+ });
+
+ it('landing ambiguous (unknown, not expired) → throws with the sent signatures, never resends', async () => {
+ const connection = mockConnection({
+ landOnBroadcast: true,
+ confirmThrows: true,
+ statusLanded: () => false, // never confirmed
+ blockHeight: 50, // never expired → in-flight forever within budget
+ });
+ const exec = createWeb3Executor({ simulate: true, settleBudgetMs: 200 });
+ await expect(exec.submit(submitArgs(connection))).rejects.toMatchObject({ code: 'landing_ambiguous' });
+ expect(connection.broadcasts.length).toBe(1); // ambiguity never triggers a resend
});
});
diff --git a/public/changelog.json b/public/changelog.json
index 559883ff4..be687bcb1 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,21 @@
{
- "generated_at": "2026-07-03T23:56:32.955Z",
+ "generated_at": "2026-07-04T00:28:07.775Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-07-04",
+ "type": "update",
+ "title": "Four gestures return to the walk companion — nod, shrug, jog, celebrate",
+ "summary": "The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in.",
+ "link": "/walk",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-07-03",
"type": "launch",
diff --git a/public/changelog.xml b/public/changelog.xml
index cfa4d8be0..d18fdf0b3 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,14 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws — features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Four gestures return to the walk companion — nod, shrug, jog, celebrate</title>
+ <link>https://three.ws/walk</link>
+ <guid isPermaLink="false">2026-07-04:Four gestures return to the walk companion — nod, shrug, jog, celebrate</guid>
+ <pubDate>Sat, 04 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>The gesture wheel regained four expressive moves that had been silently dropped: nod (a quick upper-body affirm), shrug, jog (a full-body run loop), and celebrate (a whole-body cheer). Open the wheel with G (or long-press the action button on mobile) — the wheel now lays out all twelve gestures; keys 1–8 still trigger the first eight. Also part of this pass: the entire test suite now runs fully green, locking every one of these behaviors in.</description>
+ </item>
<item>
<title>Docs · Claim Your Wallet &amp; Trader Card</title>
<link>https://three.ws/docs/trader-card</link>
diff --git a/public/features.json b/public/features.json
index 3fca54700..786544566 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-03T23:56:32.654Z",
+ "generated_at": "2026-07-04T00:28:07.756Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",