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(studio): stop the studio page clipping its own content at 320px

nirholas17c723283bdd
diff --git a/pages/avatar-page.html b/pages/avatar-page.html
index 192413c27..01d17855a 100644
--- a/pages/avatar-page.html
+++ b/pages/avatar-page.html
@@ -149,6 +149,7 @@
display: flex;
flex-direction: column;
min-height: 0;
+ min-width: 0;
}
.av-stage {
flex: 1;
@@ -388,6 +389,7 @@
font-size: 12px;
color: var(--text-2);
flex-wrap: wrap;
+ min-width: 0;
}
.av-meta-item {
display: flex;
@@ -410,6 +412,7 @@
display: flex;
flex-direction: column;
min-height: 0;
+ min-width: 0;
}
.av-side-head {
padding: 22px 24px 16px;
diff --git a/src/collection-render.js b/src/collection-render.js
index 387d09e5d..4f0872d75 100644
--- a/src/collection-render.js
+++ b/src/collection-render.js
@@ -77,8 +77,10 @@ function skillCard(p) {
? `<div class="col-card-wallet" style="margin-top:8px">${walletChipHTML(agentRecord, { isOwner: false, showPending: false, dense: true })}</div>`
: '';
+ // The agent's canonical studio page, which /marketplace/agents/:id only
+ // 301s to anyway. Linking it directly saves the redirect hop.
const agentHref = p.agent_id
- ? `/marketplace/agents/${encodeURIComponent(p.agent_id)}`
+ ? `/agents/${encodeURIComponent(p.agent_id)}`
: '/marketplace';
return `
diff --git a/src/economy-live.js b/src/economy-live.js
index f1059a3fa..9e2c3f929 100644
--- a/src/economy-live.js
+++ b/src/economy-live.js
@@ -90,7 +90,7 @@ function agentCard(a) {
const buyers = Number(a.buyers_total) || 0;
const buyers24 = Number(a.buyers_24h) || 0;
return `
- <a class="ae-card" href="/marketplace/agents/${encodeURIComponent(a.id)}">
+ <a class="ae-card" href="/agents/${encodeURIComponent(a.id)}">
<div class="ae-card-top">
<div class="ae-avatar">${thumb ? `<img src="${esc(thumb)}" alt="" loading="lazy" />` : `<span class="ae-avatar-fallback">${esc((a.name || '?').slice(0, 1).toUpperCase())}</span>`}</div>
<div class="ae-card-head">
diff --git a/src/marketplace-gallery-data.js b/src/marketplace-gallery-data.js
index b79f61c85..b5a851a11 100644
--- a/src/marketplace-gallery-data.js
+++ b/src/marketplace-gallery-data.js
@@ -103,7 +103,7 @@ export function normalizeAgent(a) {
uses: makeUses('owners', a.buyers_total),
tags: cleanTags(a.tags),
featured: false,
- href: `/marketplace/agents/${encodeURIComponent(a.id)}`,
+ href: `/agents/${encodeURIComponent(a.id)}`,
};
}
diff --git a/tests/marketplace-gallery-data.test.js b/tests/marketplace-gallery-data.test.js
index 161c54abd..5f81322fe 100644
--- a/tests/marketplace-gallery-data.test.js
+++ b/tests/marketplace-gallery-data.test.js
@@ -126,7 +126,7 @@ describe('normalizers — one listing shape across three APIs', () => {
tags: ['nft-lookup', ' trending ', '', 'a', 'b', 'c'],
});
expect(out.type).toBe('agent');
- expect(out.href).toBe('/marketplace/agents/a%201%2Fb'); // encoded, no dead link
+ expect(out.href).toBe('/agents/a%201%2Fb'); // encoded, no dead link
expect(out.price).toBe('$1');
expect(out.paid).toBe(true);
expect(out.rating).toEqual({ avg: 4.5, count: 2 });
diff --git a/tests/marketplace-gallery.test.js b/tests/marketplace-gallery.test.js
index 4ba614799..88a0498b8 100644
--- a/tests/marketplace-gallery.test.js
+++ b/tests/marketplace-gallery.test.js
@@ -111,7 +111,7 @@ describe('normalizeAgent', () => {
expect(out.rating).toEqual({ avg: 4.7, count: 9 });
expect(out.uses).toEqual({ label: 'owners', count: 1200 });
expect(out.tags).toEqual(['defi', 'solana', 'a', 'b']); // trimmed, blanks dropped, capped at 4
- expect(out.href).toBe('/marketplace/agents/a%201%2Fb');
+ expect(out.href).toBe('/agents/a%201%2Fb');
});
it('falls back to a placeholder name and Free price', () => {