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(agents): stop featuring an unpublished starter agent that every follow-up read answers 404

nirholas08d27d4d9376
diff --git a/api/agents/featured.js b/api/agents/featured.js
index 2d6e29fca..0126cf8eb 100644
--- a/api/agents/featured.js
+++ b/api/agents/featured.js
@@ -2,10 +2,18 @@
// -------------------------
// Public, read-only. Picks ONE real agent to feature on the pump dashboard,
// chosen deterministically from real data — never a hardcoded id or sample:
-// 1. The public, non-deleted agent with the highest aggregate
+// 1. The published, public, non-deleted agent with the highest aggregate
// agent_revenue_events.net_amount over the last 30 days.
// 2. If no revenue events fall in that window, the most-recently-created
-// public, non-deleted agent.
+// published, public, non-deleted agent.
+//
+// Both `is_public` and `is_published` are required, and the second one is not
+// redundant. Every signup is seeded a starter agent (api/_lib/seed-default-agent.js)
+// that is public but deliberately unpublished, so a visibility test that reads
+// `is_public` alone can feature a draft its owner never published. Downstream
+// readers gate on `is_published` (api/agents/alpha.js, the marketplace), so such
+// a pick answers 404 to every follow-up call: on 2026-09-07 that is what put
+// /alpha-copilot into its "Live feed hiccup" error state for every visitor.
// Both rules collapse into a single ORDER BY (net_total DESC, created_at DESC)
// so a zero-revenue platform still surfaces the newest agent.
//
@@ -47,6 +55,7 @@ export default wrap(async (req, res) => {
LEFT JOIN avatars a ON a.id = i.avatar_id AND a.deleted_at IS NULL
WHERE i.deleted_at IS NULL
AND i.is_public = true
+ AND i.is_published = true
ORDER BY net_total DESC, i.created_at DESC
LIMIT 1
`;
diff --git a/data/changelog.json b/data/changelog.json
index faafab15b..98da01b4c 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -26869,6 +26869,14 @@
"tags": [
"fix"
]
+ },
+ {
+ "date": "2026-09-07",
+ "title": "The featured agent is one you can actually open",
+ "summary": "The agent we spotlight is picked automatically from real activity, but the pick only checked whether an agent was public, not whether its owner had published it. That let a brand new starter agent, the draft every account is given on signup, take the spot, and every panel that tried to read it came back empty with a live feed error. The pick now requires a published agent, so the spotlight lands on one that every part of the site can open.",
+ "tags": [
+ "fix"
+ ]
}
]
}