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(ui): restore agent studio and autopilot flows
nirholas3ff6eb2b4509
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 98a9f54a5..91d513cd4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -52,6 +52,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The pump.fun MCP server now returns the real name and symbol for tokens launched today**: Ask the pump.fun MCP server for a token's details and it reported no name, no symbol, and no image link for essentially every coin launched recently, including $THREE. The reason: pump.fun now mints Token-2022 tokens, which carry their name and symbol inside the mint itself rather than in the separate metadata account the server was reading. It now reads both places, so a request for a current token returns its actual name, symbol, and metadata link alongside supply and decimals. Older tokens are unaffected. (`/docs/mcp`) `[fix]`- **The selfie scanner now grades every shot before you commit to a build**: Taking a selfie for an avatar got a real quality copilot. The viewfinder already tracked your face live; now the hint line names the exact fix (turn back to the camera, hold steady, find better light) instead of a generic warning, and after the countdown fires the captured still itself is re-scored, so motion blur or a lighting change in those last three seconds is caught on the review screen rather than a minute into the build. Uploaded photos get a lighting check too. Every threshold behind these gates is derived from the ways the reconstruction engine actually fails, so a shot that passes on your phone is a shot the engine can build from. And if your browser refreshes mid-capture, the shots you already took come back instead of starting you over. (`/create/selfie`) `[feature, improvement]`- **The sign-language recognition API now documents the confidence score it returns with every transcription**: When you fingerspell into the webcam, the recognizer reports how sure it is of what it read, and the page uses that to flag a shaky capture instead of quietly dropping wrong words into your message. That score was in every response but appeared in none of the docs, so anyone building on the recognition API had no way to know it existed. The API reference, the sign-language guide and the worker's own README now list the full response, including the raw decode before the cleanup pass and whether the cleanup changed anything, so a caller can build the same warning we do. The recognizer itself was also capped to a sane number of simultaneous captures per instance, so a burst of signers scales out instead of queueing behind each other. (`/sign-language`) `[docs, improvement]`+- **The standalone avatar viewer is now embeddable in one click, and never leaves you on a blank screen**: The Avatar Artifact page is meant to be dropped into other sites, so it now carries its own embed snippet: one button copies a ready-made iframe tag, and if a browser refuses clipboard access (which it does inside a cross-origin frame) the snippet appears in a field you can copy by hand. The 3D runtime now ships with the site instead of being pulled from an outside CDN, so a page that embeds the viewer no longer loads a third-party script the host never agreed to. Every way the viewer can fail now paints a real message with a working Retry, including a browser with no WebGL and a runtime that never arrives at all, and the message clears itself if the scene shows up late. The page also stopped hiding one of its own links on phones, keeps its controls clear of the language switcher and the search chip, respects a reduced-motion preference, and pauses rendering while its tab is hidden so an embedded viewer does not burn a host page GPU in the background. (`/avatar-artifact`) `[improvement, fix]`- **The walking avatar SDK now types the cursor-tracking option it ships**: @three-ws/walk is the packaged version of the character that walks over three.ws pages, and it lets a host turn off the head tracking that makes the avatar follow the visitor's cursor. That switch worked, and the docs described it, but it was missing from the package's TypeScript definitions, so anyone writing the option in a typed project got an error on working code. The definitions now declare it, along with the resolved-config object every control returns, and the guide lists it with the other options. The package's public entry point also gained a test that imports it the way a host does and checks that every documented export is really there. (`/walk`) `[sdk, fix]`- **The x402 payment modal SDK can now price a paid call without opening a modal**: @three-ws/x402-modal is the drop-in checkout that turns an HTTP 402 into a wallet-connect, sign and settle flow on any site. Its first step, reading the endpoint's payment challenge to learn what a call costs and which networks it takes, is now available on its own as discover(). It touches no page and no wallet, so a server, a script or an agent can look up a price, compare the Solana and Base entries, or confirm a route is actually paid before deciding to charge anyone. Two fixes ship with it. Branding and backend settings written on the script tag were silently ignored when the script was loaded from the short CDN address the docs give, because the code recognised its own tag by filename and that address has no filename; it now finds the tag by the settings themselves, so every address works. And the version the package reported had fallen two releases behind what was published, which sent bug reports to the wrong build; it now matches the release, with a test holding the two together. (`/docs/x402`) `[sdk, feature, fix]`- **Token pages keep their holder count when a data provider runs out of quota**: Prices, liquidity and holder counts on Solana token panels come from an ordered list of data providers, so one going down never blanks the page. Until now the first provider was the only one that reported a holder count, and it carries a monthly usage cap: once that cap was hit, the next six hours of readings fell to a provider that has no holder data and the number quietly disappeared from the page. The Solana Foundation's Tokens API is now the second provider in that list and reports the full set, holder count and circulating supply included, so a spent quota no longer costs the page a field. It also groups mints that represent the same asset, which is what lets a balance be read across every version of a token instead of one address at a time. `[improvement, infra]`diff --git a/data/changelog.json b/data/changelog.jsonindex 1f547ea23..59df9c549 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-08-11",+ "title": "The standalone avatar viewer is now embeddable in one click, and never leaves you on a blank screen",+ "summary": "The Avatar Artifact page is meant to be dropped into other sites, so it now carries its own embed snippet: one button copies a ready-made iframe tag, and if a browser refuses clipboard access (which it does inside a cross-origin frame) the snippet appears in a field you can copy by hand. The 3D runtime now ships with the site instead of being pulled from an outside CDN, so a page that embeds the viewer no longer loads a third-party script the host never agreed to. Every way the viewer can fail now paints a real message with a working Retry, including a browser with no WebGL and a runtime that never arrives at all, and the message clears itself if the scene shows up late. The page also stopped hiding one of its own links on phones, keeps its controls clear of the language switcher and the search chip, respects a reduced-motion preference, and pauses rendering while its tab is hidden so an embedded viewer does not burn a host page GPU in the background.",+ "tags": [+ "improvement",+ "fix"+ ],+ "link": "/avatar-artifact"+ },{"date": "2026-08-11","title": "The arbitrage board now compares like with like, and finds four times as many real price gaps",diff --git a/pages/agent-studio.html b/pages/agent-studio.htmlindex a3472cc12..77997a87b 100644--- a/pages/agent-studio.html+++ b/pages/agent-studio.html@@ -52,6 +52,23 @@display: none !important;}+ /* Same reason as the [hidden] guard above: this page skips style.css and+ tokens.css, so it carries its own screen-reader-only utility. The shell's+ visible title is the editable agent-name field, so the page's real <h1>+ ("Agent Studio") is exposed to assistive tech only. position:absolute also+ keeps it out of the identity header's grid flow. */+ .studio-sr-only {+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ white-space: nowrap;+ border: 0;+ }+html,body {margin: 0;@@ -401,6 +418,21 @@}.sk-stage { min-height: 240px; }}+ @media (max-width: 560px) {+ /* Side-by-side identity + actions needs ~430px; below that the action+ row overflowed the panel and its `overflow: hidden` clipped "Save+ draft" and "View agent" off-screen. Stack the actions under the+ name/tagline instead so both stay reachable at 320px. */+ .studio-identity {+ grid-template-columns: 1fr;+ grid-template-areas: 'name' 'tag' 'actions';+ row-gap: var(--space-sm, 0.618rem);+ }+ .studio-actions {+ justify-content: flex-start;+ flex-wrap: wrap;+ }+ }@media (max-width: 420px) {.studio { padding: var(--space-sm); gap: var(--space-sm); }.studio-stage { min-height: 180px; }diff --git a/pages/autopilot.html b/pages/autopilot.htmlindex 091ff88c3..6fa139cb6 100644--- a/pages/autopilot.html+++ b/pages/autopilot.html@@ -175,6 +175,17 @@.pill.live { background: rgba(120,200,140,0.12); color: var(--mint); border: 1px solid rgba(120,200,140,0.25); }.pill.paused { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--hairline-strong); }.pill.grad { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.22); }+ .pill.default { background: var(--surface-2); color: var(--text-4); border: 1px dashed var(--hairline-strong); }++ /* Per-coin save state. Every rule change writes immediately, so the card has+ to say whether the write landed instead of leaving the UI ahead of the DB. */+ .save-state { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); display: none; align-items: center; gap: 6px; }+ .save-state[data-state="saving"], .save-state[data-state="saved"], .save-state[data-state="error"] { display: inline-flex; }+ .save-state[data-state="saved"] { color: var(--mint); }+ .save-state[data-state="error"] { color: #fca5a5; }+ .save-retry { background: none; border: 1px solid currentColor; color: inherit; border-radius: 5px; padding: 2px 7px; font: inherit; cursor: pointer; }+ .save-retry:hover { background: rgba(255,255,255,0.06); }+ .save-retry:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--hairline-strong); border-radius: 14px; color: var(--text-3); }.empty h3 { font-family: var(--font-display); color: var(--text); font-size: 20px; margin: 0 0 8px; font-weight: 600; }@@ -217,7 +228,7 @@<div class="nav-main"><a href="/discover" data-i18n="autopilot.discover">Discover</a><a href="/pump-dashboard" data-i18n="autopilot.coins">Coins</a>- <a href="/autopilot" class="active" data-i18n="autopilot.autopilot">Autopilot</a>+ <a href="/autopilot" class="active" aria-current="page" data-i18n="autopilot.autopilot">Autopilot</a><a href="/temporary" data-i18n="autopilot.walk">Walk</a></div><div class="nav-end"><a href="/dashboard" data-i18n="autopilot.dashboard">Dashboard</a></div>@@ -229,7 +240,7 @@<div class="eyebrow">Autonomous Coin Agent</div><h1 data-i18n="autopilot.put_your_coin_on_autopilot">Put your coin on autopilot.</h1><p data-i18n="autopilot.your_agent_runs_the_whole_coin_lifecycle">Your agent runs the whole coin lifecycle on its own: it buys back & burns from creator- fees and distributes payments to holders — on the rules you set. Every on-chain move is+ fees and distributes payments to holders, on the rules you set. Every on-chain move isnarrated live by your agent's avatar.</p><div class="hero-steps"><div class="hero-step"><b>01</b> Earn fees</div>@@ -238,10 +249,10 @@<div class="hero-step"><b>04</b> Narrate & repeat</div></div>- <div class="narrator" id="narrator" style="display:none">- <div class="narrator-avatar" id="narratorAvatar"><div class="nf">◆</div><div class="narrator-pulse"></div></div>+ <div class="narrator" id="narrator" style="display:none" role="status" aria-live="polite">+ <div class="narrator-avatar" id="narratorAvatar"><div class="nf" aria-hidden="true">◆</div><div class="narrator-pulse"></div></div><div class="narrator-body">- <div class="narrator-line" id="narratorLine">Standing by — no autonomous actions yet.</div>+ <div class="narrator-line" id="narratorLine">Standing by. No autonomous actions yet.</div><div class="narrator-meta" id="narratorMeta">Your agent will speak here the moment it acts.</div></div></div>@@ -250,8 +261,8 @@<section><div class="wrap">- <div class="section-title">Your coins</div>- <div class="coins" id="coins">+ <h2 class="section-title">Your coins</h2>+ <div class="coins" id="coins" aria-busy="true"><div class="coin-card"><div class="coin-head"><div class="coin-img skeleton" style="width:44px;height:44px"></div><div class="coin-id"><div class="skeleton" style="height:14px;width:140px"></div>@@ -263,8 +274,15 @@<section style="border-top:1px solid var(--hairline)"><div class="wrap">- <div class="section-title">Autonomous activity</div>- <div id="activity"><div class="empty" style="border:none;padding:24px 0;text-align:left;color:var(--text-4)">Loading…</div></div>+ <div class="section-head">+ <h2 class="section-title">Autonomous activity</h2>+ <a class="section-link" href="/autopilot-activity">Full receipt log →</a>+ </div>+ <div id="activity" aria-busy="true">+ <div class="act-skel"><div class="skeleton" style="width:84px;height:18px"></div><div style="flex:1"><div class="skeleton" style="height:12px;width:60%"></div><div class="skeleton" style="height:9px;width:120px;margin-top:7px"></div></div></div>+ <div class="act-skel"><div class="skeleton" style="width:84px;height:18px"></div><div style="flex:1"><div class="skeleton" style="height:12px;width:45%"></div><div class="skeleton" style="height:9px;width:100px;margin-top:7px"></div></div></div>+ <div class="act-skel"><div class="skeleton" style="width:84px;height:18px"></div><div style="flex:1"><div class="skeleton" style="height:12px;width:52%"></div><div class="skeleton" style="height:9px;width:110px;margin-top:7px"></div></div></div>+ </div></div></section>diff --git a/public/changelog.json b/public/changelog.jsonindex c1a4ca94e..0e7c57d4a 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-11T23:25:01.689Z",+ "generated_at": "2026-08-11T23:38:53.830Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -498,6 +498,17 @@"improvement"]},+ {+ "date": "2026-08-11",+ "type": "update",+ "title": "The standalone avatar viewer is now embeddable in one click, and never leaves you on a blank screen",+ "summary": "The Avatar Artifact page is meant to be dropped into other sites, so it now carries its own embed snippet: one button copies a ready-made iframe tag, and if a browser refuses clipboard access (which it does inside a cross-origin frame) the snippet appears in a field you can copy by hand. The 3D runtime now ships with the site instead of being pulled from an outside CDN, so a page that embeds the viewer no longer loads a third-party script the host never agreed to. Every way the viewer can fail now paints a real message with a working Retry, including a browser with no WebGL and a runtime that never arrives at all, and the message clears itself if the scene shows up late. The page also stopped hiding one of its own links on phones, keeps its controls clear of the language switcher and the search chip, respects a reduced-motion preference, and pauses rendering while its tab is hidden so an embedded viewer does not burn a host page GPU in the background.",+ "link": "/avatar-artifact",+ "tags": [+ "improvement",+ "fix"+ ]+ },{"date": "2026-08-11","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex d2ac23f0f..c9916df9d 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -374,6 +374,14 @@<category>docs</category><description>When you fingerspell into the webcam, the recognizer reports how sure it is of what it read, and the page uses that to flag a shaky capture instead of quietly dropping wrong words into your message. That score was in every response but appeared in none of the docs, so anyone building on the recognition API had no way to know it existed. The API reference, the sign-language guide and the worker's own README now list the full response, including the raw decode before the cleanup pass and whether the cleanup changed anything, so a caller can build the same warning we do. The recognizer itself was also capped to a sane number of simultaneous captures per instance, so a burst of signers scales out instead of queueing behind each other.</description></item>+ <item>+ <title>The standalone avatar viewer is now embeddable in one click, and never leaves you on a blank screen</title>+ <link>https://three.ws/avatar-artifact</link>+ <guid isPermaLink="false">2026-08-11:The standalone avatar viewer is now embeddable in one click, and never leaves you on a blank screen</guid>+ <pubDate>Tue, 11 Aug 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The Avatar Artifact page is meant to be dropped into other sites, so it now carries its own embed snippet: one button copies a ready-made iframe tag, and if a browser refuses clipboard access (which it does inside a cross-origin frame) the snippet appears in a field you can copy by hand. The 3D runtime now ships with the site instead of being pulled from an outside CDN, so a page that embeds the viewer no longer loads a third-party script the host never agreed to. Every way the viewer can fail now paints a real message with a working Retry, including a browser with no WebGL and a runtime that never arrives at all, and the message clears itself if the scene shows up late. The page also stopped hiding one of its own links on phones, keeps its controls clear of the language switcher and the search chip, respects a reduced-motion preference, and pauses rendering while its tab is hidden so an embedded viewer does not burn a host page GPU in the background.</description>+ </item><item><title>The walking avatar SDK now types the cursor-tracking option it ships</title><link>https://three.ws/walk</link>diff --git a/public/features.json b/public/features.jsonindex 71193063f..64ea20ee7 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-11T23:25:01.602Z",+ "generated_at": "2026-08-11T23:38:53.816Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/locales/en.json b/public/locales/en.jsonindex 0dca0da48..8f6122662 100644--- a/public/locales/en.json+++ b/public/locales/en.json@@ -794,7 +794,7 @@"1_call_create_identity": "1 · Call create_identity","2_poll_for_free": "2 · Poll for free","3_own_the_identity": "3 · Own the identity",- "a2mcp_service_1_50_per_identity_live": "A2MCP service · $1.50 per identity · live on OKX.AI rails",+ "a2mcp_service_live_on_okx_ai_rails": "A2MCP service · live on OKX.AI rails","costs_nothing_and_drives_the_job_generation": "<code>identity_status</code> costs nothing and drives the job: generation, humanoid auto-rig, then each studio render. Typical time to done: 3–6 minutes.","deliverables_square_pfp_1024_128_preview_ful": "Deliverables: square PFP (1024 + 128 preview), full-body render set, and the rigged GLB — usable in three.ws scenes, games, and any glTF runtime.","every_ai_agent_deserves_a_face": "Every AI agent deserves a face.",diff --git a/src/agent-identity.js b/src/agent-identity.jsindex 0e18993c2..292e1b042 100644--- a/src/agent-identity.js+++ b/src/agent-identity.js@@ -93,6 +93,16 @@ export class AgentIdentity {get isOwner() {return this._record?.isOwner ?? null;}+ /**+ * True only when the LAST load reached the backend and it returned a real+ * agent row. False means the record in hand is a localStorage copy or a+ * locally synthesised default: readable, but its id may not exist server-side,+ * so no write to `/api/agents/:id` can succeed. Owner consoles (Agent Studio)+ * must refuse to render edit controls over an unconfirmed record.+ */+ get backendConfirmed() {+ return this._backendConfirmed;+ }// ── Load + Save ───────────────────────────────────────────────────────────diff --git a/src/agent-trade.js b/src/agent-trade.jsindex ca610b713..d13ffd572 100644--- a/src/agent-trade.js+++ b/src/agent-trade.js@@ -580,7 +580,28 @@ function setRunning(on) {if (!on) stage?.setAutoRotate(true);}+// Deferred touches (a chip settling to `done`, a bubble appearing a beat later)+// belong to the step that scheduled them. When the next event lands the step is+// over, so its pending timers are dropped: a slow proxy that delivers two events+// back to back used to let a stale timer re-show the previous step's bubble on+// top of the finished trade.+const pendingTimers = new Set();++function after(ms, fn) {+ const id = setTimeout(() => {+ pendingTimers.delete(id);+ fn();+ }, ms);+ pendingTimers.add(id);+}++function clearPendingTimers() {+ for (const id of pendingTimers) clearTimeout(id);+ pendingTimers.clear();+}+function handleEvent(ev) {+ clearPendingTimers();switch (ev.type) {case 'init': {setChip('init', 'done');@@ -602,7 +623,7 @@ function handleEvent(ev) {case 'request': {setChip('request', 'active');showBubble('buyer', `"${ev.message || 'I need a market analysis…'}"`);- setTimeout(() => setChip('request', 'done'), 900);+ after(900, () => setChip('request', 'done'));break;}@@ -623,11 +644,12 @@ function handleEvent(ev) {<div class="c-row">Memo <span>${escHtml(m.memo || NO_VALUE)}</span></div><div class="c-row">Currency <span>${escHtml(m.currency || 'SOL')}</span></div>`);- setTimeout(() => setChip('challenged', 'done'), 700);+ after(700, () => setChip('challenged', 'done'));break;}case 'paying': {+ setChip('challenged', 'done');setChip('paying', 'active');hideBubble('seller');hideCard();@@ -643,7 +665,7 @@ function handleEvent(ev) {setChip('confirmed', 'active');stage?.triggerBurst();hideBubble('buyer');- setTimeout(() => showBubble('seller', 'Payment confirmed ✓'), 350);+ after(350, () => showBubble('seller', 'Payment confirmed ✓'));if (ev.newBuyerSol != null) {els.buyerBal.textContent = ev.newBuyerSol.toFixed(4) + ' SOL';els.buyerBal.style.color = 'var(--muted)';@@ -659,17 +681,18 @@ function handleEvent(ev) {<div class="c-row">Network <span>${escHtml(ev.network || 'solana')}</span></div>${explorer ? `<a class="c-link" href="${escHtml(explorer)}" target="_blank" rel="noopener">View on Solscan →</a>` : ''}`);- setTimeout(() => setChip('confirmed', 'done'), 800);+ after(800, () => setChip('confirmed', 'done'));break;}case 'delivering': {+ setChip('confirmed', 'done');setChip('delivering', 'active');// Hide the receipt now, not on a timer: a fast stream landed the// `delivered` card first and then this timeout wiped it off the screen.hideBubble('seller');hideCard();- setTimeout(() => showBubble('seller', `Analyzing with ${ev.model}…`), 200);+ after(200, () => showBubble('seller', `Analyzing with ${ev.model}…`));// Fly back to a wide viewstage?.flyCamera(vec3(0, 3.0, 9.5), vec3(0, 1.2, 0), 1100);break;@@ -720,6 +743,7 @@ let currentEs = null;function startDemo() {if (currentEs) { currentEs.close(); currentEs = null; }const topic = els.topicSelect.value;+ clearPendingTimers();setRunning(true);hideCard();hideBubble('buyer');diff --git a/src/autopilot.js b/src/autopilot.jsindex e1d661e95..eabed03f6 100644--- a/src/autopilot.js+++ b/src/autopilot.js@@ -1,5 +1,5 @@/**- * Coin Autopilot — control surface + live narration for the autonomous coin agent.+ * Coin Autopilot: control surface + live narration for the autonomous coin agent.** Reads /api/pump/autopilot (the caller's launched coins, their per-coin policy,* recent autonomous actions). Lets the owner tune the rules that gate the@@ -66,7 +66,7 @@ const NARRATE = {a.amount_atomics && a.amount_atomics !== '0'? `Bought back and burned ${fmtUsdc(a.amount_atomics)} of $${sym}. Supply just got scarcer.`: `Ran a buyback-and-burn on $${sym}. Supply just got scarcer.`,- pending: (a, sym) => `Buyback for $${sym} is queued — waiting for a keeper to sign.`,+ pending: (a, sym) => `Buyback for $${sym} is queued, waiting for a keeper to sign.`,failed: (a, sym) => `Buyback for $${sym} hit a snag: ${a.error || 'unknown error'}.`,},distribute: {diff --git a/src/studio/agent-presence.js b/src/studio/agent-presence.jsindex f932ad16a..8f3c0acf1 100644--- a/src/studio/agent-presence.js+++ b/src/studio/agent-presence.js@@ -285,8 +285,16 @@ class AgentPresenceElement extends HTMLElement {return this._agentBodyUrl(explicitAgent, apiFetch);}- // Default source: the Studio store's live agent.- await studio.load();+ // Default source: the Studio store's live agent. The store rejects when the+ // backend never confirmed an agent (signed out, or the API is unreachable):+ // there is no real body to render, so fall through to the designed no-body+ // state rather than inventing one from a synthesised local record.+ try {+ await studio.load();+ } catch {+ this._currentAvatarId = null;+ return null;+ }const agent = studio.agent;this._currentAvatarId = agent?.avatarId || null;if (agent?.avatarId) {diff --git a/src/studio/agent-studio-store.js b/src/studio/agent-studio-store.jsindex d4e28a40e..1d6c58e51 100644--- a/src/studio/agent-studio-store.js+++ b/src/studio/agent-studio-store.js@@ -106,6 +106,16 @@ class AgentStudioStore {try {this.identity = new AgentIdentity({ agentId, autoLoad: false });await this.identity.load();+ // AgentIdentity never throws on a dead backend: it falls back to a+ // localStorage copy, or synthesises a default whose id exists nowhere+ // on the server. Editing that record looks normal and silently fails+ // on every PUT, so the studio treats it as a load failure instead.+ // Callers then render their real, retryable error state.+ if (!this.identity.backendConfirmed) {+ throw Object.assign(new Error('agent could not be confirmed with the server'), {+ code: 'not_confirmed',+ });+ }this._record = this._snapshotFromIdentity();this._notify();return this._record;diff --git a/src/studio/brain/brain-studio.js b/src/studio/brain/brain-studio.jsindex 2846a13d9..e42264abd 100644--- a/src/studio/brain/brain-studio.js+++ b/src/studio/brain/brain-studio.js@@ -75,7 +75,7 @@ class BrainStudio {<div class="brainstudio" data-view="onboard"><div class="brainstudio__onboard" id="bsOnboard"><div class="brainstudio__onboard-inner">- <h1>Build your agent's mind</h1>+ <h2>Build your agent's mind</h2><p>Fill in persona, model, memory, skills and market reasoning. It wires itself — watch it light up as it thinks.</p><div class="brainstudio__templates" id="bsTplGrid"></div><button class="studio__btn studio__btn-primary" id="bsBlank">Start from blank</button>diff --git a/src/studio/studio-shell.js b/src/studio/studio-shell.jsindex 80fce02e2..b687be667 100644--- a/src/studio/studio-shell.js+++ b/src/studio/studio-shell.js@@ -193,6 +193,7 @@ class StudioShell {<section class="studio-panel" aria-label="Agent editor"><header class="studio-identity">+ <h1 class="studio-sr-only">Agent Studio</h1><input id="studio-name" class="studio-name" value="${esc(agent.name || '')}"maxlength="100" aria-label="Agent name" placeholder="Name your agent" /><input id="studio-tagline" class="studio-tagline" value="${esc(agent.description || '')}"