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
test(wallet): stabilize deposit confirmation regression (#246)
ni3ab5bb9a67526e
diff --git a/src/agent-wallet-hub/tabs/deposit.js b/src/agent-wallet-hub/tabs/deposit.jsindex 4e06a86b1..fe76555bc 100644--- a/src/agent-wallet-hub/tabs/deposit.js+++ b/src/agent-wallet-hub/tabs/deposit.js@@ -19,7 +19,7 @@** Every state is designed: loading skeleton, waiting-for-first-deposit (calm empty* state), received (success), no-wallet (being prepared), and an RPC-unreachable- * state that keeps the address + QR fully usable while live confirmation retries.+ * state that keeps the address visible while all funding controls fail closed.** Balance is read from GET /api/agents/:id/solana (the same live-RPC path with* failover + 60s server cache used across the hub). No hardcoded balances, nodiff --git a/tests/agent-wallet-deposit-tab.test.js b/tests/agent-wallet-deposit-tab.test.jsindex e4c34d092..3d3aef17d 100644--- a/tests/agent-wallet-deposit-tab.test.js+++ b/tests/agent-wallet-deposit-tab.test.js@@ -6,7 +6,7 @@// "funds received" confirmation that fires ONLY on a real on-chain balance// increase (never simulated).-import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';+import { describe, it, expect, vi, beforeEach } from 'vitest';const fetchAgentSolanaWallet = vi.fn();const fetchAgentSolanaActivity = vi.fn();@@ -133,7 +133,9 @@ describe('Deposit tab — public funding surface', () => {it('fires the "received" confirmation only on a real balance increase', async () => {vi.useFakeTimers();try {- fetchAgentSolanaWallet.mockResolvedValueOnce({ status: 'ok', data: { address: ADDR, sol: 0, deposits_enabled: true } });+ // The first pending-timer flush also runs the initial poll interval. Keep+ // returning the baseline until the test explicitly simulates a deposit.+ fetchAgentSolanaWallet.mockResolvedValue({ status: 'ok', data: { address: ADDR, sol: 0, deposits_enabled: true } });const ctx = makeCtx();const { panel, inst } = mountTab(ctx);inst.onShow();