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(screen-pool): read Wikipedia's lead paragraph from a selector its article DOM still matches

nirholasba90632666c0
diff --git a/scripts/agent-screen-pool-proof.mjs b/scripts/agent-screen-pool-proof.mjs
index c9fb2f8b6..e1f43e563 100644
--- a/scripts/agent-screen-pool-proof.mjs
+++ b/scripts/agent-screen-pool-proof.mjs
@@ -33,8 +33,11 @@ const WORKER_DIR = resolve(__dir, '../workers/agent-screen-pool');
const SECRET = 'proof-secret-0123456789abcdef';
const AGENT_ID = '3a7c1f52-9d4e-4b61-8f20-2c5e7a91d0b4';
const AGENT_NAME = 'Proof Agent';
-const CAST_MS = Number(process.env.PROOF_CAST_MS || 45_000); // how long to watch the cast
-const TEARDOWN_MS = 8_000; // grace for the pool to drop the page
+// How long to watch the cast before asserting. The window has to cover a real
+// browser launch plus a real multi-step task against a real public site, so it is
+// generous: the loop exits as soon as the run has produced its read.
+const CAST_MS = Number(process.env.PROOF_CAST_MS || 120_000);
+const TEARDOWN_MS = 8_000; // grace for the pool to drop the page
const results = [];
const ok = (name, cond, detail = '') => {
diff --git a/workers/agent-screen-pool/tasks/index.js b/workers/agent-screen-pool/tasks/index.js
index a5460593e..a9e3a7183 100644
--- a/workers/agent-screen-pool/tasks/index.js
+++ b/workers/agent-screen-pool/tasks/index.js
@@ -44,7 +44,11 @@ export const TASKS = [
fallbackUrl: 'https://en.wikipedia.org/wiki/Three.js',
narration: 'Waiting for the article to load',
},
- { id: 'read', kind: 'read', selector: '#mw-content-text .mw-parser-output > p', narration: 'Reading the opening summary' },
+ // Descendant, not a direct child of .mw-parser-output: Wikipedia now wraps
+ // article prose in an inner content div, so the old `> p` matched nothing
+ // and the agent narrated its way to an empty read. The executor takes the
+ // first paragraph that carries text, which is the lead summary.
+ { id: 'read', kind: 'read', selector: '#mw-content-text p', narration: 'Reading the opening summary' },
],
},
{