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(discover): distinguish an indexer failure from an agent with no history

nirholas06996cb5e4d8
diff --git a/public/discover/detail.js b/public/discover/detail.js
index 8bf9bbf8e..bb87caade 100644
--- a/public/discover/detail.js
+++ b/public/discover/detail.js
@@ -497,9 +497,14 @@ async function fetchOnchainHistory(query, $) {
$('history-count').textContent = String(events.length);
if (!events.length) {
- list.innerHTML = data.indexLag?.crawled
- ? '<li class="detail-history-empty">No on-chain events recorded for this agent yet. The indexer has looked and found nothing beyond its registration.</li>'
- : '<li class="detail-history-empty">This agent has not been crawled yet. Its history will appear here after the next indexer pass.</li>';
+ // Three genuinely different states, and conflating them is how an outage
+ // gets read as "this agent has done nothing".
+ const lagState = data.indexLag || {};
+ list.innerHTML = lagState.error
+ ? '<li class="detail-history-empty">The indexer could not read this agent on its last pass, so this list is not a statement about the agent. It retries automatically.</li>'
+ : lagState.crawled
+ ? '<li class="detail-history-empty">No on-chain events recorded for this agent yet. The indexer has looked and found nothing beyond its registration.</li>'
+ : '<li class="detail-history-empty">This agent has not been crawled yet. Its history will appear here after the next indexer pass.</li>';
} else {
list.innerHTML = events
.map((ev) => {