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.

feat(x-mentions): refine the make-anything reply composer and refresh its dry-run evidence

nirholas607229b2294f
diff --git a/api/_lib/x-mention-make.js b/api/_lib/x-mention-make.js
index d99f58619..2f5abb6a5 100644
--- a/api/_lib/x-mention-make.js
+++ b/api/_lib/x-mention-make.js
@@ -34,7 +34,7 @@ import { weightedLength, X_POST_MAX_WEIGHT } from './x-text-weight.js';
import { updateDecision } from './x-mention-store.js';
import { checkPromptSafety } from '../_mcp-studio/safety.js';
import { startForge, pollJob, pollOnce, directPrompt } from '../_mcp-studio/gpt-forge-client.js';
-import { posterPngUrl } from '../_mcp-studio/asset-links.js';
+import { posterPngUrl, RENDER_MAX_GLB_BYTES } from '../_mcp-studio/asset-links.js';
import { meshDirectorFor, meshSubjectClass } from './forge-director-prompts.js';
export const BOT_EMAIL = '[email protected]';
@@ -154,12 +154,19 @@ async function markPending(tweetId, { jobId, creationId, prompt, startedAt }) {
return rows.length > 0;
}
-function successReply({ base, prompt, glbUrl, creationId }) {
+// A model over the renderer's size cap cannot be rendered to a PNG (it answers
+// 413), so the reply carries the generation's own reference image instead.
+function posterFor({ base, glbUrl, sizeBytes, previewImageUrl }) {
+ if (Number(sizeBytes) > RENDER_MAX_GLB_BYTES && previewImageUrl) return previewImageUrl;
+ return posterPngUrl(base, glbUrl);
+}
+
+function successReply({ base, prompt, glbUrl, creationId, sizeBytes = null, previewImageUrl = null }) {
const link = creationId ? creationLink(base, creationId) : `${base}/viewer?src=${encodeURIComponent(glbUrl)}`;
return {
kind: 'success',
text: composeMakeReply('success', { prompt, link }),
- mediaUrl: posterPngUrl(base, glbUrl),
+ mediaUrl: posterFor({ base, glbUrl, sizeBytes, previewImageUrl }),
link,
};
}
@@ -252,7 +259,7 @@ export async function handleMake(event, deps = {}) {
}
}
- const reply = successReply({ base, prompt, glbUrl: result.glb_url, creationId: result.creation_id || creationId });
+ const reply = successReply({ base, prompt, glbUrl: result.glb_url, creationId: result.creation_id || creationId, sizeBytes: result.size_bytes, previewImageUrl: result.preview_image_url });
const sent = await finalize({ tweetId, reply, dryRun, deliver: deps.deliver, reason: 'make_done', creationId: result.creation_id || creationId });
return done('reply', { decision: sent.decision, text: reply.text, mediaUrl: reply.mediaUrl, link: reply.link, creationId: result.creation_id || creationId, reason: 'make_done' });
}
@@ -299,7 +306,7 @@ export async function finishPendingMakes({ limit = 10 } = {}, deps = {}) {
let reply;
let reason;
if (status?.status === 'done' && status.glb_url) {
- reply = successReply({ base, prompt, glbUrl: status.glb_url, creationId: status.creation_id || row.creation_id });
+ reply = successReply({ base, prompt, glbUrl: status.glb_url, creationId: status.creation_id || row.creation_id, sizeBytes: status.size_bytes, previewImageUrl: status.preview_image_url });
reason = 'make_done_late';
} else if (status?.status === 'failed' || probeError?.code === 'unknown_job' || overdue) {
reply = failureReply({ base, prompt });
diff --git a/prompts/x-grok/_generated/make-dry-run.json b/prompts/x-grok/_generated/make-dry-run.json
index e5a5816c1..ace8af8e0 100644
--- a/prompts/x-grok/_generated/make-dry-run.json
+++ b/prompts/x-grok/_generated/make-dry-run.json
@@ -1,15 +1,37 @@
{
- "generatedAt": "2026-10-09T16:34:54.184Z",
+ "generatedAt": "2026-10-09T16:46:25.190Z",
"base": "https://three.ws",
"dryRun": true,
+ "note": "rows with followUpTick=true outlived the 150s wait budget, were recorded pending, and were answered by finishPendingMakes",
"rows": [
{
"post": "@trythreews make a 3D dragon",
- "intent": "make",
"prompt": "a 3D dragon",
- "outcome": "reply",
+ "tweetId": "7514354648744984576",
+ "decision": "reply",
+ "reason": "make_done_late",
+ "followUpTick": true,
+ "wouldReply": "Here is your 3D model \"a 3D dragon\". Spin it around: https://three.ws/m/9bd011bd-6830-43f4-b577-660166cf091f",
+ "mediaUrl": "https://three.ws/api/render/glb?glbUrl=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F9bd011bd-6830-43f4-b577-660166cf091f.glb&width=1024&height=1024",
+ "mediaCheck": {
+ "status": 200,
+ "contentType": "image/png"
+ },
+ "link": "https://three.ws/m/9bd011bd-6830-43f4-b577-660166cf091f",
+ "linkCheck": {
+ "status": 200,
+ "contentType": "text/html; charset=utf-8"
+ },
+ "creationId": "9bd011bd-6830-43f4-b577-660166cf091f",
+ "dryRun": true
+ },
+ {
+ "post": "@trythreews make a 3D dragon",
+ "prompt": "a 3D dragon",
+ "tweetId": "7514355407251308544",
"decision": "reply",
"reason": "make_done",
+ "followUpTick": false,
"wouldReply": "Here is your 3D model \"a 3D dragon\". Spin it around: https://three.ws/m/2a06700f-a594-42e8-b8a7-7c0ccecf5fea",
"mediaUrl": "https://three.ws/api/render/glb?glbUrl=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F2a06700f-a594-42e8-b8a7-7c0ccecf5fea.glb&width=1024&height=1024",
"mediaCheck": {
@@ -22,30 +44,36 @@
"contentType": "text/html; charset=utf-8"
},
"creationId": "2a06700f-a594-42e8-b8a7-7c0ccecf5fea",
- "seconds": 273
+ "dryRun": true
},
{
"post": "@trythreews can you make me a low poly fox sitting on a mossy rock",
- "intent": "make",
"prompt": "a low poly fox sitting on a mossy rock",
- "outcome": "pending",
- "decision": "pending",
- "reason": "make_pending",
- "wouldReply": null,
- "mediaUrl": null,
- "mediaCheck": null,
- "link": null,
- "linkCheck": null,
+ "tweetId": "7514355407251308545",
+ "decision": "reply",
+ "reason": "make_done_late",
+ "followUpTick": true,
+ "wouldReply": "Here is your 3D model \"a low poly fox sitting on a mossy rock\". Spin it around: https://three.ws/m/d3c6e132-80b6-4b59-a065-76699144d7e8",
+ "mediaUrl": "https://three.ws/api/render/glb?glbUrl=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2Fd3c6e132-80b6-4b59-a065-76699144d7e8.glb&width=1024&height=1024",
+ "mediaCheck": {
+ "status": 200,
+ "contentType": "image/png"
+ },
+ "link": "https://three.ws/m/d3c6e132-80b6-4b59-a065-76699144d7e8",
+ "linkCheck": {
+ "status": 200,
+ "contentType": "text/html; charset=utf-8"
+ },
"creationId": "d3c6e132-80b6-4b59-a065-76699144d7e8",
- "seconds": 439
+ "dryRun": true
},
{
"post": "@trythreews 3d a vintage brass telescope on a tripod",
- "intent": "make",
"prompt": "a vintage brass telescope on a tripod",
- "outcome": "reply",
+ "tweetId": "7514355407251308546",
"decision": "reply",
"reason": "make_done",
+ "followUpTick": false,
"wouldReply": "Here is your 3D model \"a vintage brass telescope on a tripod\". Spin it around: https://three.ws/m/c38c01eb-4097-48e5-8e89-afbc9352d101",
"mediaUrl": "https://three.ws/api/render/glb?glbUrl=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2Fc38c01eb-4097-48e5-8e89-afbc9352d101.glb&width=1024&height=1024",
"mediaCheck": {
@@ -58,15 +86,15 @@
"contentType": "text/html; charset=utf-8"
},
"creationId": "c38c01eb-4097-48e5-8e89-afbc9352d101",
- "seconds": 267
+ "dryRun": true
},
{
"post": "@trythreews generate a cozy wooden cabin with a snowy roof",
- "intent": "make",
"prompt": "a cozy wooden cabin with a snowy roof",
- "outcome": "reply",
+ "tweetId": "7514355407251308547",
"decision": "reply",
"reason": "make_done",
+ "followUpTick": false,
"wouldReply": "Here is your 3D model \"a cozy wooden cabin with a snowy roof\". Spin it around: https://three.ws/m/eb6594ad-5305-4e4e-9115-f5eac87acfcd",
"mediaUrl": "https://three.ws/api/render/glb?glbUrl=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2Feb6594ad-5305-4e4e-9115-f5eac87acfcd.glb&width=1024&height=1024",
"mediaCheck": {
@@ -79,22 +107,28 @@
"contentType": "text/html; charset=utf-8"
},
"creationId": "eb6594ad-5305-4e4e-9115-f5eac87acfcd",
- "seconds": 336
+ "dryRun": true
},
{
"post": "@trythreews forge a cute robot barista holding a coffee cup",
- "intent": "make",
"prompt": "a cute robot barista holding a coffee cup",
- "outcome": "pending",
- "decision": "pending",
- "reason": "make_pending",
- "wouldReply": null,
- "mediaUrl": null,
- "mediaCheck": null,
- "link": null,
- "linkCheck": null,
+ "tweetId": "7514355407251308548",
+ "decision": "reply",
+ "reason": "make_done_late",
+ "followUpTick": true,
+ "wouldReply": "Here is your 3D model \"a cute robot barista holding a coffee...\". Spin it around: https://three.ws/m/711eba92-0145-465f-a48c-814459966de5",
+ "mediaUrl": "https://three.ws/api/render/glb?glbUrl=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F711eba92-0145-465f-a48c-814459966de5.glb&width=1024&height=1024",
+ "mediaCheck": {
+ "status": 200,
+ "contentType": "image/png"
+ },
+ "link": "https://three.ws/m/711eba92-0145-465f-a48c-814459966de5",
+ "linkCheck": {
+ "status": 200,
+ "contentType": "text/html; charset=utf-8"
+ },
"creationId": "711eba92-0145-465f-a48c-814459966de5",
- "seconds": 439
+ "dryRun": true
}
]
}