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(clip-director): keep a copy button's real label across a double click
nirholas1b1bf1bc6b45
diff --git a/src/clip-director-page.js b/src/clip-director-page.jsindex 00954c5ee..e7dd43a96 100644--- a/src/clip-director-page.js+++ b/src/clip-director-page.js@@ -173,9 +173,12 @@ function renderClips(agent, data) {<div class="cd-note"><b>Honest by design.</b> Wins and losses both get a card, always with a verifiable on-chain angle. The number you see is a real closed round-trip, never a screenshot.</div>`;for (const btn of resultEl.querySelectorAll('.cd-copy')) {+ // The label is captured once, before any click can overwrite it: reading it+ // back inside the handler would restore "Copied ✓" on a double click.const original = btn.textContent;+ let revert = 0;btn.addEventListener('click', async () => {- clearTimeout(btn.dataset.timer);+ clearTimeout(revert);try {await copyText(btn.dataset.payload);btn.textContent = 'Copied ✓';@@ -184,7 +187,7 @@ function renderClips(agent, data) {btn.textContent = 'Copy blocked by browser';btn.classList.remove('done');}- btn.dataset.timer = setTimeout(() => { btn.textContent = original; btn.classList.remove('done'); }, 1600);+ revert = setTimeout(() => { btn.textContent = original; btn.classList.remove('done'); }, 1600);});}}