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.

fix(characters): finish the feed's dev-server route and paging follow-up

nirholas6145383191d0
diff --git a/src/characters.js b/src/characters.js
index 9d731e1ce..cbb61bc74 100644
--- a/src/characters.js
+++ b/src/characters.js
@@ -9,7 +9,10 @@ import { walletChipHTML, wireWalletChips } from './shared/agent-wallet-chip.js';
import './ui-juice.css';
import { enterStagger } from './ui-juice.js';
-let state = { cursor: null, loading: false, sort: 'new', q: '' };
+// `gen` is the request generation: every fetch claims one, and a response whose
+// generation is no longer current is dropped so a slow reply cannot paint over a
+// newer one. `appending` guards only Load more against a double-click.
+let state = { cursor: null, sort: 'new', q: '', gen: 0, appending: false };
function formatNum(n) {
if (!n) return '0';