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: start page and create-prompt improvements

nirholas69f153f2add6
diff --git a/pages/start.html b/pages/start.html
index eff5d67f8..027d79ca6 100644
--- a/pages/start.html
+++ b/pages/start.html
@@ -1034,7 +1034,10 @@
<div class="wz-dot" data-step="4"></div>
<div class="wz-dot" data-step="5"></div>
</div>
- <a href="/dashboard" class="wz-skip" id="wz-header-skip">Skip setup</a>
+ <div style="display:flex;align-items:center;gap:12px">
+ <button type="button" class="wz-skip" id="btn-start-fresh" style="display:none">← Templates</button>
+ <a href="/dashboard" class="wz-skip" id="wz-header-skip">Skip setup</a>
+ </div>
</header>
<!-- Step body -->
diff --git a/src/create-prompt.js b/src/create-prompt.js
index 75b7ecfeb..a5960aaf3 100644
--- a/src/create-prompt.js
+++ b/src/create-prompt.js
@@ -147,6 +147,23 @@ async function start() {
class ApiError extends Error {}
+/** @param {string | null | undefined} raw */
+function friendlyJobError(raw) {
+ if (!raw) return 'Generation failed. Try a different prompt.';
+ const lower = raw.toLowerCase();
+ if (lower.includes('face') && (lower.includes('detect') || lower.includes('no face')))
+ return 'Couldn\'t find a face in the generated reference image. Try rewording your prompt to describe the person more clearly.';
+ if (lower.includes('nsfw'))
+ return 'Content safety blocked this image. Try a different prompt.';
+ if (lower.includes('unreachable') || lower.includes('502') || lower.includes('503'))
+ return 'The avatar engine is temporarily unavailable. Try again in a few minutes.';
+ if (lower.includes('timeout') || lower.includes('timed out'))
+ return 'The engine took too long. Try again in a moment.';
+ if (lower.includes('oom') || lower.includes('memory'))
+ return 'The engine ran out of resources. Try a simpler prompt.';
+ return 'Generation failed. Try a different prompt.';
+}
+
function mapSubmitError(status, data) {
const code = data?.error?.code || data?.code;
if (status === 429) return 'You\'re generating too fast — wait a moment and try again.';
@@ -186,7 +203,7 @@ async function pollUntilDone(jobId) {
return data;
}
if (data.status === 'failed') {
- throw new ApiError(data.error || 'Generation failed. Try a different prompt.');
+ throw new ApiError(friendlyJobError(data.error));
}
}
throw new ApiError('This is taking longer than expected. Your avatar may still finish — check your dashboard in a minute.');
diff --git a/src/start.js b/src/start.js
index bdf234f39..e1344358d 100644
--- a/src/start.js
+++ b/src/start.js
@@ -126,9 +126,14 @@ function showWizard() {
setTimeout(() => {
templatesScreen.classList.add('tpl-hidden');
templatesScreen.classList.remove('tpl-exit');
+ // Reveal wizard only after template screen is gone — avoids a black
+ // flash caused by both full-height elements being in the DOM at once
+ // with overflow:hidden on body hiding the below-fold wizard.
+ if (wizardEl) wizardEl.classList.remove('wz-offstage');
}, 200);
+ } else {
+ if (wizardEl) wizardEl.classList.remove('wz-offstage');
}
- if (wizardEl) wizardEl.classList.remove('wz-offstage');
}
function applyTemplate(tpl) {