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
fix(forge): survive long full-quality generations and surface queue state
nirholasce33f223a684
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex bcd6fff65..1f63105b0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,15 +11,18 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **three.ws Joins the Quicknode Startup Program** (`/blog/three-ws-quicknode-startup-program`) — three.ws has been accepted into the Quicknode Startup Program and approved for free infrastructure credits, expanding the RPC backbone behind its Solana-first agent economy.- **3D generation now switches engines by itself when one fails** — A 3D generation that dies mid-flight no longer dead-ends. The platform now re-runs the same job on the next available engine automatically (up to three backups, free engines first) while your progress bar just keeps going — most failures become invisible. In the rare case every automatic backup is exhausted, the error screen on /forge now offers one-click "Try on …" buttons for the engines still available, so you never have to re-enter your prompt or photos. Avatar tools got the same treatment: a rig step that fails no longer throws away the finished 3D model, and the avatar generator falls back to the platform's own free engines when its primary vendor is down. (`/forge`) `[improvement]`- **3D models are now built from multiple angles at once** — Text-to-3D generations at Standard and High quality now photograph the subject from the front, side, and back before building the model, and the 3D engine fuses all three views into one asset on our own GPUs. The parts of an object the old single view could never see (the back of a chair, the far side of a character) are now generated from real coverage instead of guessed, so models read as true to life from every angle. A second self-hosted engine (Tencent Hunyuan3D) also joins the fleet for high-fidelity reconstructions, with automatic failover between the two. (`/forge`) `[feature, improvement]`+- **Changelog updates now reach Telegram and X on their own** — Every entry in this changelog is now delivered to the holder channels automatically. Once the release an entry describes is live in production, an autonomous job spots it and posts it to the holders' Telegram channel (@three_ws) and to the running release thread on X (@trythreews), usually within 20 minutes. No human has to remember to announce anything, and nothing is ever announced before it is actually live. The full history stays at three.ws/changelog and in the RSS and JSON feeds as always. (`/changelog`) `[infra, improvement]`- **Clearer legal terms, and you now actually agree to them** — Creating an account now includes a real agreement step: the signup form has a required checkbox, wallet sign-ins carry the agreement right inside the message you sign, and the platform keeps a durable record of which Terms version you accepted and when. The Terms of Service (version 2) and Privacy Policy were rewritten to be clearer and stronger: real-funds features are explicitly 18+, disputes are handled by individual arbitration with a 30-day opt-out, the privacy policy now lists our actual infrastructure providers and your California and EU rights, and legal acceptance records are exempt from routine log cleanup so your agreement is never lost. (`/legal/tos`) `[security, improvement]`- **Creation tools now hand off down the pipeline** — Finishing one creation step now offers the next one instead of dropping you at a dead end. A fresh selfie avatar gets a "Turn this into an agent" button that carries the 3D body straight into the agent builder. The agent builder's success screen adds a "Take it further" row: give it a voice, embed it anywhere, put it in a world, or launch its token. And a freshly cloned voice now offers "Add to an agent". Avatar to agent to deploy, with no manual re-navigation. (`/create`) `[improvement]`- **Fewer dead ends in the creation flow** — Every generic "create an agent" button (marketplace, memory tab, search) now points at the guided /create-agent wizard instead of a stale /agent/new link; that route stays reserved for the avatar hand-off it powers. The search page's avatar CTA no longer points at a route that never existed. /scan and /create/selfie (the two photo-to-avatar paths) now cross-link each other, and Build > Start here in the nav leads with "Create anything" straight to the /create hub. (`/create`) `[improvement]`- **Forge is smoother to use: starter prompts, clearer quality picker, and visible engine switching** — The Forge got a usability pass. First-time visitors now see three one-click starter prompts right on the empty canvas. Hovering Draft, Standard, or High shows exactly what each quality tier trades off: detail, typical generation time, and polygon budget, pulled live from the engine catalog. If an engine hits a snag mid-generation, the progress panel now tells you which backup engine took over instead of switching silently. Hitting your generation limit reads as a wait with a countdown, not a failure. And keyboard flow is tighter across the board: Enter generates (Shift+Enter for a new line), Escape cancels an in-flight generation, and focus lands where the next action is. (`/forge`) `[improvement]`+- **Forge now waits out long full-quality generations and shows queue state** — Two fixes for anyone forging at the highest quality settings. First, the Forge page no longer gives up while a generation is still running: the old 5-minute client timeout could declare a timeout even though the engine finished your model moments later. The wait ceiling now covers the slowest full-quality texture bakes, and time spent waiting in line never counts against it. Second, when the GPU is busy finishing earlier jobs, the page now says your job is in line rather than showing a silent spinner, so a queued generation no longer looks like a hang. Quality settings are untouched: nothing is downgraded to make things faster, and a second always-on GPU now serves the text-to-3D lane to shorten the line itself. (`/forge`) `[fix, improvement]`- **Free 3D generation got a lot more reliable** — Text-to-3D on /forge was intermittently failing with a generic error even though the model had actually finished. The free NVIDIA lane's results are single-collection: two overlapping status checks could race, one collecting the model and the other reporting failure. Status checks are now coordinated, a finished model that a racing check already saved is returned instead of an error, and a genuinely lost result is silently regenerated on the same job. The free community GPU fallback also recovered: one Space reports a broken download address for its finished models, and the fetch now falls back to the address that works. (`/forge`) `[fix]`- **Generations look real by default, and every viewer renders them right** — Two quality upgrades across the whole 3D pipeline. First, text prompts now produce photoreal results by default: the reference image every generation is built from is drawn with photographic detail cues on a higher-fidelity image model, unless you explicitly ask for a style like cartoon or voxel, which is respected as before. Second, the pose studio, walk companion, and character studio now render models with the same filmic tone mapping and real image-based lighting as the rest of the site, so materials, skin, and metals no longer look flat or washed out in some viewers and right in others. (`/forge`) `[improvement]`- **Grok (xAI) is now a selectable brain everywhere, including bring-your-own-key** — You can now power your agents and chats with xAI's Grok models: Grok 4.5 (flagship), Grok 4.3 (1M-token context), and Grok 4.1 Fast (budget, 2M-token context). Add your own xAI API key under Settings, AI Provider Keys, and every agent you own can use it: the 3D avatar chat, embeddable widgets, the Brain model playground, the agent manifest builder, and the conversational wallet all list Grok alongside Claude and GPT. Your key is stored encrypted, never shown back, and calls made with it bill your xAI account directly instead of counting against platform limits. (`/brain`) `[feature]`- **High-quality 3D now runs on our best photoreal engines, with an automatic quality check** — Ask for a High-quality model and the generator now reaches for our most photoreal self-hosted engines first: Hunyuan3D for people, creatures, and detailed organic subjects, and our own high-detail TRELLIS engine for hard-surface and mechanical subjects, picked automatically from what you describe. If a heavy engine is warming up or busy, it falls through to the next one and finally to the always-on free engine, so a High request never dead-ends. Every finished High model is scored for quality and, if it comes back weak, quietly regenerated once for a better result before you ever see it. The fast free tier is untouched and just as quick as before. (`/forge`) `[improvement, feature]`- **Homepage 3D generator now always picks the best live engine** — Generations started from the homepage were quietly landing on a fallback engine that produced untextured gray models. The homepage now lets the platform's health-aware router choose the strongest live engine (currently the GPU-hosted TRELLIS lane), so homepage creations come back fully textured, the same quality as the full Forge page. In a side-by-side check the same kind of prompt went from a flagged low-quality untextured mesh to a fully textured model scoring near the top of the quality scale. `[fix, improvement]`+- **Leave the page while your 3D model generates. We'll finish it and let you know** — Generations no longer need a babysitter. If you close the tab or wander off mid-forge, the server now tracks your job to completion on its own: the finished model lands in your gallery automatically, and signed-in creators get a notification (bell, push, and email, each with its own switch in the preference center) the moment it's ready. Come back to /forge and an interrupted generation picks up right where it left off, with an honest elapsed timer. We also cleared over a thousand old generations that had been stuck in limbo and gave the busiest 3D engine room to scale to three GPUs, so queue waits drop too. (`/forge`) `[feature, improvement]`- **New realism gate scores every generated 3D model and auto-retries the bad ones** — We added an automated quality gate that looks at every model the generator produces and grades how real and complete it is. It renders the model, sends the image to a vision AI with a subject-aware rubric (a person, a car, and a burger are each judged by the right standard), and returns a score plus a plain-language reason and a list of any defects: plastic-toy look, melted or blobby geometry, missing parts, duplicated limbs, floating fragments. Models that fall below the bar get one or two automatic retries with a tightened prompt and more geometry budget before anything reaches you, so a bad result rarely makes it to the screen. The check runs on Google's Gemini vision on our own cloud credits (no new paid keys), and it is fail-open by design: if the grader is ever unavailable, generation is never blocked. Developers can also score any model on demand via the new POST /api/forge-quality-check endpoint. `[feature, improvement]`- **pump.fun published a feature article on $THREE** — pump.fun published "Three Builds With Tech Giants", a feature article on the official $THREE coin page profiling the platform: browser-native 3D AI agents with onchain identities, the Animations and Poses Studio, the 3D Studio MCP server, and the AWS and IBM milestones. Read it on the $THREE coin page on pump.fun; it is also tracked with all our other coverage on the listings page. (`/docs/listings`) `[docs]`- **Sketch-to-3D is now live: draw it, get a 3D model** — The Forge's sketch mode, where you draw a quick outline and describe it to get a 3D model, is now fully operational on our own GPU fleet. The engine behind it had never successfully started in production; two separate startup defects were found and fixed, and its multi-gigabyte model weights now download in parallel at boot instead of streaming through a slow mount, taking the worker from never-ready to serving in under four minutes from a cold start. A hand-drawn mug sketch now returns a clean, watertight 3D model in about two minutes. `[feature, fix]`diff --git a/data/changelog.json b/data/changelog.jsonindex b5766e065..e43896fb2 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-07-16",+ "title": "Forge now waits out long full-quality generations and shows queue state",+ "summary": "Two fixes for anyone forging at the highest quality settings. First, the Forge page no longer gives up while a generation is still running: the old 5-minute client timeout could declare a timeout even though the engine finished your model moments later. The wait ceiling now covers the slowest full-quality texture bakes, and time spent waiting in line never counts against it. Second, when the GPU is busy finishing earlier jobs, the page now says your job is in line rather than showing a silent spinner, so a queued generation no longer looks like a hang. Quality settings are untouched: nothing is downgraded to make things faster, and a second always-on GPU now serves the text-to-3D lane to shorten the line itself.",+ "tags": [+ "fix",+ "improvement"+ ],+ "link": "/forge"+ },{"date": "2026-07-16","title": "Changelog updates now reach Telegram and X on their own",diff --git a/public/changelog.json b/public/changelog.jsonindex 316a28c33..abd2d2494 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-16T22:23:06.594Z",+ "generated_at": "2026-07-16T22:48:23.762Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -57,6 +57,17 @@"improvement"]},+ {+ "date": "2026-07-16",+ "type": "update",+ "title": "Changelog updates now reach Telegram and X on their own",+ "summary": "Every entry in this changelog is now delivered to the holder channels automatically. Once the release an entry describes is live in production, an autonomous job spots it and posts it to the holders' Telegram channel (@three_ws) and to the running release thread on X (@trythreews), usually within 20 minutes. No human has to remember to announce anything, and nothing is ever announced before it is actually live. The full history stays at three.ws/changelog and in the RSS and JSON feeds as always.",+ "link": "/changelog",+ "tags": [+ "infra",+ "improvement"+ ]+ },{"date": "2026-07-16","type": "update",@@ -98,6 +109,17 @@"improvement"]},+ {+ "date": "2026-07-16",+ "type": "update",+ "title": "Forge now waits out long full-quality generations and shows queue state",+ "summary": "Two fixes for anyone forging at the highest quality settings. First, the Forge page no longer gives up while a generation is still running: the old 5-minute client timeout could declare a timeout even though the engine finished your model moments later. The wait ceiling now covers the slowest full-quality texture bakes, and time spent waiting in line never counts against it. Second, when the GPU is busy finishing earlier jobs, the page now says your job is in line rather than showing a silent spinner, so a queued generation no longer looks like a hang. Quality settings are untouched: nothing is downgraded to make things faster, and a second always-on GPU now serves the text-to-3D lane to shorten the line itself.",+ "link": "/forge",+ "tags": [+ "fix",+ "improvement"+ ]+ },{"date": "2026-07-16","type": "update",@@ -150,6 +172,17 @@"improvement"]},+ {+ "date": "2026-07-16",+ "type": "update",+ "title": "Leave the page while your 3D model generates. We'll finish it and let you know",+ "summary": "Generations no longer need a babysitter. If you close the tab or wander off mid-forge, the server now tracks your job to completion on its own: the finished model lands in your gallery automatically, and signed-in creators get a notification (bell, push, and email, each with its own switch in the preference center) the moment it's ready. Come back to /forge and an interrupted generation picks up right where it left off, with an honest elapsed timer. We also cleared over a thousand old generations that had been stuck in limbo and gave the busiest 3D engine room to scale to three GPUs, so queue waits drop too.",+ "link": "/forge",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-07-16","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex f6f743c36..884e45428 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -46,6 +46,14 @@<category>feature</category><description>Text-to-3D generations at Standard and High quality now photograph the subject from the front, side, and back before building the model, and the 3D engine fuses all three views into one asset on our own GPUs. The parts of an object the old single view could never see (the back of a chair, the far side of a character) are now generated from real coverage instead of guessed, so models read as true to life from every angle. A second self-hosted engine (Tencent Hunyuan3D) also joins the fleet for high-fidelity reconstructions, with automatic failover between the two.</description></item>+ <item>+ <title>Changelog updates now reach Telegram and X on their own</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-07-16:Changelog updates now reach Telegram and X on their own</guid>+ <pubDate>Thu, 16 Jul 2026 12:00:00 GMT</pubDate>+ <category>infra</category>+ <description>Every entry in this changelog is now delivered to the holder channels automatically. Once the release an entry describes is live in production, an autonomous job spots it and posts it to the holders' Telegram channel (@three_ws) and to the running release thread on X (@trythreews), usually within 20 minutes. No human has to remember to announce anything, and nothing is ever announced before it is actually live. The full history stays at three.ws/changelog and in the RSS and JSON feeds as always.</description>+ </item><item><title>Clearer legal terms, and you now actually agree to them</title><link>https://three.ws/legal/tos</link>@@ -78,6 +86,14 @@<category>improvement</category><description>The Forge got a usability pass. First-time visitors now see three one-click starter prompts right on the empty canvas. Hovering Draft, Standard, or High shows exactly what each quality tier trades off: detail, typical generation time, and polygon budget, pulled live from the engine catalog. If an engine hits a snag mid-generation, the progress panel now tells you which backup engine took over instead of switching silently. Hitting your generation limit reads as a wait with a countdown, not a failure. And keyboard flow is tighter across the board: Enter generates (Shift+Enter for a new line), Escape cancels an in-flight generation, and focus lands where the next action is.</description></item>+ <item>+ <title>Forge now waits out long full-quality generations and shows queue state</title>+ <link>https://three.ws/forge</link>+ <guid isPermaLink="false">2026-07-16:Forge now waits out long full-quality generations and shows queue state</guid>+ <pubDate>Thu, 16 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Two fixes for anyone forging at the highest quality settings. First, the Forge page no longer gives up while a generation is still running: the old 5-minute client timeout could declare a timeout even though the engine finished your model moments later. The wait ceiling now covers the slowest full-quality texture bakes, and time spent waiting in line never counts against it. Second, when the GPU is busy finishing earlier jobs, the page now says your job is in line rather than showing a silent spinner, so a queued generation no longer looks like a hang. Quality settings are untouched: nothing is downgraded to make things faster, and a second always-on GPU now serves the text-to-3D lane to shorten the line itself.</description>+ </item><item><title>Free 3D generation got a lot more reliable</title><link>https://three.ws/forge</link>@@ -118,6 +134,14 @@<category>fix</category><description>Generations started from the homepage were quietly landing on a fallback engine that produced untextured gray models. The homepage now lets the platform's health-aware router choose the strongest live engine (currently the GPU-hosted TRELLIS lane), so homepage creations come back fully textured, the same quality as the full Forge page. In a side-by-side check the same kind of prompt went from a flagged low-quality untextured mesh to a fully textured model scoring near the top of the quality scale.</description></item>+ <item>+ <title>Leave the page while your 3D model generates. We'll finish it and let you know</title>+ <link>https://three.ws/forge</link>+ <guid isPermaLink="false">2026-07-16:Leave the page while your 3D model generates. We'll finish it and let you know</guid>+ <pubDate>Thu, 16 Jul 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Generations no longer need a babysitter. If you close the tab or wander off mid-forge, the server now tracks your job to completion on its own: the finished model lands in your gallery automatically, and signed-in creators get a notification (bell, push, and email, each with its own switch in the preference center) the moment it's ready. Come back to /forge and an interrupted generation picks up right where it left off, with an honest elapsed timer. We also cleared over a thousand old generations that had been stuck in limbo and gave the busiest 3D engine room to scale to three GPUs, so queue waits drop too.</description>+ </item><item><title>New realism gate scores every generated 3D model and auto-retries the bad ones</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex f60901a10..7029fd870 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-16T22:23:06.573Z",+ "generated_at": "2026-07-16T22:48:23.745Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/agent-screen.js b/src/agent-screen.jsindex c1cea774f..0ee46d4b3 100644--- a/src/agent-screen.js+++ b/src/agent-screen.js@@ -2365,11 +2365,11 @@ async function boot(id) {} catch { /* best-effort broadcast — a non-owner viewer simply can't push */ }}async function pollForgeJob(jobId, narrate) {- // Matches the 5-minute ceiling used by every other forge poll loop- // (src/forge.js, home-forge.js, forge-studio/forge.js, scene-compose.js) —- // higher-quality self-host inference (more diffusion steps, larger texture- // bake) runs longer than the old 3-minute budget assumed.- const deadline = Date.now() + 5 * 60 * 1000;+ // Matches the 12-minute ceiling used by every other forge poll loop+ // (src/forge.js, home-forge.js, forge-studio/forge.js, scene-compose.js):+ // max-tier full-quality bakes legitimately run past 10 minutes, and queue+ // wait must not spend the run budget (a queued job is alive).+ let deadline = Date.now() + 12 * 60 * 1000;let lastStatus = 'queued';while (Date.now() < deadline) {await new Promise((r) => setTimeout(r, 3000)); // real poll interval, not fake progress@@ -2382,6 +2382,7 @@ async function boot(id) {if (data.status && data.status !== lastStatus) { lastStatus = data.status; narrate(data); }if (data.status === 'done' && data.glb_url) return data;if (data.status === 'failed') throw new Error(data.error || 'generation failed');+ if (data.status === 'queued') deadline = Date.now() + 12 * 60 * 1000;}throw new Error('generation timed out — try again');}diff --git a/src/forge-studio/forge.js b/src/forge-studio/forge.jsindex 506517507..b88619b1e 100644--- a/src/forge-studio/forge.js+++ b/src/forge-studio/forge.js@@ -34,7 +34,11 @@ ensureStateKitStyles();// honest elapsed counter. Nothing fakes progress.const POLL_INTERVAL_MS = 2500;-const MAX_POLL_MS = 5 * 60 * 1000; // generous ceiling for reconstruction+// Ceiling for a single reconstruction run. Max-tier texture bakes legitimately+// run past 10 minutes at full quality; the ceiling must sit above the slowest+// real generation or the client abandons jobs the server finishes. Queue wait+// does not count against this window (see pollUntilDone).+const MAX_POLL_MS = 12 * 60 * 1000;const MAX_VIEWS = 4;const VIEW_LABELS = ['Front', 'Back', 'Left', 'Right'];const MAX_UPLOAD_BYTES = 8 * 1024 * 1024;@@ -1399,7 +1403,13 @@ async function startJob({ prompt, imageUrls, skipValidation, payment }) {}async function pollUntilDone(jobId) {- const deadline = performance.now() + MAX_POLL_MS;+ let deadline = performance.now() + MAX_POLL_MS;+ // Queue-state tracking: a job waiting for a GPU is alive, so say so (after a+ // short grace that filters dispatch latency) and never spend the run budget+ // on line time.+ let queuedPolls = 0;+ let inQueue = false;+ let preQueueMeshLabel = null;while (!pollAbort && performance.now() < deadline) {await sleep(POLL_INTERVAL_MS);if (pollAbort) return null;@@ -1424,7 +1434,24 @@ async function pollUntilDone(jobId) {}throw e;}- if (data.status === 'running') setStep('mesh', 'active');+ if (data.status === 'queued') {+ setStep('mesh', 'active');+ deadline = performance.now() + MAX_POLL_MS;+ queuedPolls += 1;+ if (!inQueue && queuedPolls >= 3) {+ inQueue = true;+ preQueueMeshLabel = els.steps?.mesh?.querySelector('span:last-child')?.textContent || null;+ setStepLabel('mesh', 'In line for a GPU');+ }+ }+ if (data.status === 'running') {+ setStep('mesh', 'active');+ queuedPolls = 0;+ if (inQueue) {+ inQueue = false;+ if (preQueueMeshLabel) setStepLabel('mesh', preQueueMeshLabel);+ }+ }}if (pollAbort) return null;throw new Error(diff --git a/src/forge.js b/src/forge.jsindex 4349af1ab..5e7c8afb1 100644--- a/src/forge.js+++ b/src/forge.js@@ -32,7 +32,11 @@ ensureStateKitStyles();// honest elapsed counter. Nothing fakes progress.const POLL_INTERVAL_MS = 2500;-const MAX_POLL_MS = 5 * 60 * 1000; // generous ceiling for reconstruction+// Ceiling for a single reconstruction run. Max-tier texture bakes legitimately+// run past 10 minutes at full quality; the ceiling must sit above the slowest+// real generation, not the average one, or the client abandons jobs the server+// finishes. Queue wait does not count against this window (see pollUntilDone).+const MAX_POLL_MS = 12 * 60 * 1000;const MAX_VIEWS = 4;const VIEW_LABELS = ['Front', 'Back', 'Left', 'Right'];const MAX_UPLOAD_BYTES = 8 * 1024 * 1024;@@ -1528,10 +1532,13 @@ async function startJob({ prompt, imageUrls, skipValidation, payment }) {}async function pollUntilDone(jobId) {- const deadline = performance.now() + MAX_POLL_MS;+ let deadline = performance.now() + MAX_POLL_MS;// Queue-state tracking: when the engine reports the job is waiting for a GPU// (healthy but busy, one generation per instance), say so instead of showing// a silent spinner that reads as a hang. Restored when the job starts running.+ // A short grace (a few polls) filters out dispatch latency: every job passes+ // through "queued" for a beat even when a GPU is free.+ let queuedPolls = 0;let inQueue = false;let preQueueMeshLabel = null;while (!pollAbort && performance.now() < deadline) {@@ -1561,8 +1568,29 @@ async function pollUntilDone(jobId) {}throw e;}+ if (data.status === 'queued') {+ setStep('mesh', 'active');+ // Time spent in line must not consume the run budget: a queued job is+ // alive and will get the full window once a GPU picks it up.+ deadline = performance.now() + MAX_POLL_MS;+ queuedPolls += 1;+ if (!inQueue && queuedPolls >= 3) {+ inQueue = true;+ preQueueMeshLabel = els.steps.mesh?.querySelector('span:last-child')?.textContent || null;+ setStepLabel('mesh', 'In line for a GPU');+ setLaneNote(+ 'The engine is finishing earlier jobs. Yours is queued and will run at full quality, nothing is downgraded.',+ );+ }+ }if (data.status === 'running') {setStep('mesh', 'active');+ queuedPolls = 0;+ if (inQueue) {+ inQueue = false;+ if (preQueueMeshLabel) setStepLabel('mesh', preQueueMeshLabel);+ setLaneNote('');+ }// Poll-time failover: the server moved this job onto a backup lane and// keeps it running under the same id. Surface the switch so the user// sees which engine is now serving, rather than a silent swap.diff --git a/src/home-forge.js b/src/home-forge.jsindex 17f365bc2..e6e106368 100644--- a/src/home-forge.js+++ b/src/home-forge.js@@ -33,7 +33,10 @@ import {} from './forge-embed-snippets.js';const POLL_INTERVAL_MS = 2500;-const MAX_POLL_MS = 5 * 60 * 1000;+// Max-tier texture bakes legitimately run past 10 minutes at full quality; the+// ceiling must sit above the slowest real generation. Queue wait does not count+// against this window (see pollUntilDone).+const MAX_POLL_MS = 12 * 60 * 1000;const MODEL_VIEWER_SRC ='https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js';const HISTORY_KEY = 'forge:home:history';@@ -343,7 +346,7 @@ async function startJob(prompt) {}async function pollUntilDone(jobId, seq) {- const deadline = performance.now() + MAX_POLL_MS;+ let deadline = performance.now() + MAX_POLL_MS;while (!pollAbort && seq === runSeq && performance.now() < deadline) {await sleep(POLL_INTERVAL_MS);if (pollAbort || seq !== runSeq) return null;@@ -353,6 +356,12 @@ async function pollUntilDone(jobId, seq) {const data = await res.json().catch(() => ({}));if (data.status === 'done' && data.glb_url) return data;if (data.status === 'failed') throw new Error(data.error || 'Generation failed.');+ if (data.status === 'queued') {+ // A queued job is alive and waiting for a GPU: keep the step live and+ // never spend the run budget on line time.+ setStep('mesh', 'active');+ deadline = performance.now() + MAX_POLL_MS;+ }if (data.status === 'running') setStep('mesh', 'active');}if (pollAbort || seq !== runSeq) return null;diff --git a/src/scene-compose.js b/src/scene-compose.jsindex c27f372cd..c57e933ef 100644--- a/src/scene-compose.js+++ b/src/scene-compose.js@@ -238,7 +238,10 @@ let forgeJobId = null;let forgePollTimer = null;let forgePollStart = 0;let forgeIntent = '';-const FORGE_TIMEOUT = 5 * 60 * 1000;+// Max-tier full-quality bakes legitimately run past 10 minutes; the ceiling+// must sit above the slowest real generation. Queue wait restarts the window+// (see pollForge), so line time never eats the run budget.+const FORGE_TIMEOUT = 12 * 60 * 1000;// ── Undo / Redo ───────────────────────────────────────────────────────────────const hist = { stack: [], cursor: -1 };@@ -1131,6 +1134,12 @@ function pollForge() {loadGallery();} else if (data.status === 'failed') {throw new Error(data.error || 'Generation failed');+ } else if (data.status === 'queued') {+ // A queued job is alive and waiting for a GPU; restart the timeout+ // window so line time never counts against the run budget.+ forgePollStart = Date.now();+ showForgeProgress('In line for a GPU…', 8);+ pollForge();} else {const elapsed = Date.now() - forgePollStart;const pct = Math.min(8 + (elapsed / FORGE_TIMEOUT) * 82, 92);