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(agent-screen): pin the activity fallback when no caster pool is alive
nirholasd42c132d6b82
diff --git a/tests/agent-watch-status-queue.test.js b/tests/agent-watch-status-queue.test.jsindex bfc988abd..cd916a509 100644--- a/tests/agent-watch-status-queue.test.js+++ b/tests/agent-watch-status-queue.test.js@@ -53,6 +53,18 @@ describe('classifyRank — caster handoff state from wanted-set rank', () => {expect(classifyRank(1, 1)).toEqual({ state: 'queued', position: 1 });});+ it('falls back to the activity view when no caster pool is alive', () => {+ // warming/queued promise a real browser is coming. With no pool polling+ // watch-wanted nothing can keep that promise, so every rank reads activity+ // rather than spinning "warming up" at the viewer forever.+ for (const rank of [0, MAX - 1, MAX, MAX + 9]) {+ expect(classifyRank(rank, MAX, { poolAlive: false })).toEqual({ state: 'activity' });+ }+ // An explicitly live pool keeps the normal handoff.+ expect(classifyRank(0, MAX, { poolAlive: true })).toEqual({ state: 'warming' });+ expect(classifyRank(MAX, MAX, { poolAlive: true })).toEqual({ state: 'queued', position: 1 });+ });+it('defaults to the documented POOL_MAX when no max is passed', () => {expect(POOL_MAX).toBeGreaterThanOrEqual(1);// At rank = POOL_MAX the agent is exactly one slot over capacity → queued #1.