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
feat(viewer): keyboard-accessible canvas + low-power auto-degrade on the main viewer; fix Scene Studio action-bar/menubar overlap
fudjiad594ac94fba6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 86845819d..ecb00e9df 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -25,6 +25,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **/create is now the front door for everything you can build** — /create used to be just the avatar picker. It's now a four-way intent hub — Build an AI agent, Make a 3D avatar, Generate a 3D model, or Launch a token world — so you pick your destination in one click instead of hunting through a flat menu of tools. The avatar picker didn't go anywhere: it's still exactly where it was, now reachable as the 'Make a 3D avatar' path with its photo/scratch/prompt/upload options intact. (`/create`) `[improvement]`- **/play grew real physics, a drivable district, and day/night** — The coin-community world stops being a flat clamped plaza: a real Rapier character controller now drives your avatar (collision, ground contact, and jumps against actual geometry), and Downtown is ringed by a full deterministic street grid — asphalt avenues, sidewalks, lit buildings, and streetlights — that every client in a world renders identically and can now walk or drive across instead of hitting an invisible wall at the plaza's edge. A wall-clock-driven day/night cycle sweeps the sun, sky, fog, and the district's window and streetlamp glow in sync for everyone, with zero network chatter. The camera also grew up: press C to cycle Follow, Cinematic, First Person, and Top Down, the same four modes /walk uses, now shared from one module. (`/play`) `[feature, improvement]`- **<agent-3d> talks out of the box with brain="free"** — Any embedded avatar can now hold a real conversation with zero setup: add brain="free" to an <agent-3d> tag and it routes through three.ws's host-paid free-tier proxy (OpenRouter, Groq, or NVIDIA NIM, whichever is healthy) — no API key, no backend code, no per-token cost to the embedder. Previously the brain attribute required an exact model id and defaulted to a silent avatar; brain="free" is now a supported alias, and it's honored on both the src= (bare GLB) and body= (ad-hoc agent) embed paths, which is where this fell through before. (`/docs/embedding`) `[feature, sdk]`+- **3D viewer accessibility: keyboard orbit, focus rings, and a low-power mode for the main site viewer** — The core 3D viewer that powers /app, Forge, avatar pages, and every embed now matches the accessibility bar the lightweight SDK viewer already had: the canvas is keyboard-reachable (tab to focus, arrow keys orbit, +/- zoom), gets a proper accessible name, and shows a visible focus ring. Entry-level phones and tablets (detected by touch input plus low core count or memory — desktop is never affected) now get a lighter render automatically: capped resolution and no antialiasing, for a steadier frame rate instead of a choppy one. Also fixed: Scene Studio's Import from Forge / Export / Share action bar was overlapping the editor's own File/Edit/Add menu bar at every screen size — it now sits cleanly below it. (`/scene`) `[improvement, fix]`- **A live public gallery for every minted 3D asset — and a fix that had been silently 500ing the launch directory** — Minted 3D assets now have a home: three.ws/minted shows every generated avatar minted as a Solana NFT through the platform, rendered live in an interactive <model-viewer> card with its network, enforced royalty rate, and a remix badge when it routed a payout to the original creator — the NFT counterpart of the coin /launches feed. Building it surfaced a real bug: the remix-royalty and provenance-ledger columns added to the mint table were live in code but never applied to the production database, so GET /api/v1/tokenized/launches and get_3d_asset_onchain's read-back were quietly returning a server error for any minted asset with those fields. The migration is applied and both are confirmed working. (`/minted`) `[feature, fix]`- **Agent mood now shapes body language, not just facial expression** — An agent's sustained mood — set via setMood(), tracked as valence and arousal — used to only drive the face (a smile, a worried brow) and posture. Now a resting up-and-energetic mood also nudges the agent toward a livelier gesture between events, and a down-and-subdued mood toward a stiller, more concerned one, so an agent's whole body reads as consistent with how it feels, not just its expression. A real triggered gesture (a wave, a reaction to an error) still always takes priority over this ambient bias. (`/tutorials/emotion-from-data`) `[feature, improvement]`- **Bigger motion library, and two dead animation gestures fixed** — Added 7 new baked clips to the animation library — Nod, Shrug, Point, Think, Turn, Jog, and a sitting-idle loop — retargeted onto the universal avatar rig alongside the existing 100+. Also fixed two silent no-ops: the 'sit' gesture's clip was missing from the manifest (AnimationManager couldn't find it, so avatars silently failed to sit), and the agent 'fidget' slot pointed at a clip that never existed (now maps to a real idle loop). Both are covered by new regression tests so they can't quietly break again. (`/animations`) `[feature, fix]`diff --git a/data/changelog.json b/data/changelog.jsonindex 91a79efab..dfb33f3df 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-08",+ "title": "3D viewer accessibility: keyboard orbit, focus rings, and a low-power mode for the main site viewer",+ "summary": "The core 3D viewer that powers /app, Forge, avatar pages, and every embed now matches the accessibility bar the lightweight SDK viewer already had: the canvas is keyboard-reachable (tab to focus, arrow keys orbit, +/- zoom), gets a proper accessible name, and shows a visible focus ring. Entry-level phones and tablets (detected by touch input plus low core count or memory — desktop is never affected) now get a lighter render automatically: capped resolution and no antialiasing, for a steadier frame rate instead of a choppy one. Also fixed: Scene Studio's Import from Forge / Export / Share action bar was overlapping the editor's own File/Edit/Add menu bar at every screen size — it now sits cleanly below it.",+ "tags": [+ "improvement",+ "fix"+ ],+ "link": "/scene"+ },{"date": "2026-07-08","title": "The Tour Builder gains templates — starting with a ready-made 3D guided tour of Sperax, our first DeFi partner deployment",diff --git a/prompts/roadmap/_generated/04/app-heavy-1440.png b/prompts/roadmap/_generated/04/app-heavy-1440.pngindex 577069a0e..b06b7ef98 100644Binary files a/prompts/roadmap/_generated/04/app-heavy-1440.png and b/prompts/roadmap/_generated/04/app-heavy-1440.png differdiff --git a/prompts/roadmap/_generated/04/app-heavy-768.png b/prompts/roadmap/_generated/04/app-heavy-768.pngindex 00418535b..48d1e7067 100644Binary files a/prompts/roadmap/_generated/04/app-heavy-768.png and b/prompts/roadmap/_generated/04/app-heavy-768.png differdiff --git a/prompts/roadmap/_generated/04/check-scene-layout.mjs b/prompts/roadmap/_generated/04/check-scene-layout.mjsnew file mode 100644index 000000000..0c2c62d75--- /dev/null+++ b/prompts/roadmap/_generated/04/check-scene-layout.mjs@@ -0,0 +1,19 @@+import { chromium } from '@playwright/test';+const browser = await chromium.launch();+for (const [label, width, height] of [['320', 320, 640], ['768', 768, 1024], ['1440', 1440, 900]]) {+ const page = await browser.newPage({ viewport: { width, height } });+ await page.goto('http://localhost:3061/scene', { waitUntil: 'load', timeout: 60000 });+ await page.waitForTimeout(1500);+ const rects = await page.evaluate(() => {+ const bar = document.querySelector('.tws-sa-bar')?.getBoundingClientRect();+ const menubar = document.querySelector('#menubar')?.getBoundingClientRect();+ return { bar: bar && { x: bar.x, y: bar.y, w: bar.width, h: bar.height, right: bar.right, bottom: bar.bottom }, menubar: menubar && { x: menubar.x, y: menubar.y, w: menubar.width, h: menubar.height, right: menubar.right, bottom: menubar.bottom } };+ });+ function overlaps(a, b) {+ if (!a || !b) return null;+ return !(a.right < b.x || b.right < a.x || a.bottom < b.y || b.bottom < a.y);+ }+ console.log(label + 'px:', JSON.stringify(rects), 'OVERLAP:', overlaps(rects.bar, rects.menubar));+ await page.close();+}+await browser.close();diff --git a/prompts/roadmap/_generated/04/gate-after.txt b/prompts/roadmap/_generated/04/gate-after.txtnew file mode 100644index 000000000..daf47978b--- /dev/null+++ b/prompts/roadmap/_generated/04/gate-after.txt@@ -0,0 +1,82 @@++> [email protected] gate+> npm run test:gate && npm run test:gate-3d && npm run audit:mcp && npm run audit:mcp-golden && npm run audit:routes && npm run audit:handlers && npm run audit:pages && npm run audit:hidden-guard && npm run audit:x402-catalog && npm run audit:tokens+++> [email protected] test:gate+> node scripts/test-gate.mjs++[test-gate] running 7 critical-path test files…++ RUN v4.1.9 /workspaces/three.ws+++ Test Files 7 passed (7)+ Tests 83 passed (83)+ Start at 07:02:05+ Duration 2.81s (transform 1.59s, setup 0ms, import 3.27s, tests 2.85s, environment 1ms)++[test-gate] ✓ all critical-path tests passed++> [email protected] test:gate-3d+> vitest run tests/glb-canonicalize.test.js tests/animation-retarget.test.js tests/animation-retarget-rest-pollution.test.js tests/viewer-framing.test.js+++ RUN v4.1.9 /workspaces/three.ws+++ Test Files 4 passed (4)+ Tests 244 passed (244)+ Start at 07:02:09+ Duration 399ms (transform 243ms, setup 0ms, import 537ms, tests 219ms, environment 0ms)+++> [email protected] audit:mcp+> node scripts/audit-mcp-manifests.mjs++[audit:mcp] 16 MCP manifests consistent++> [email protected] audit:mcp-golden+> node scripts/audit-mcp-golden.mjs++[audit:mcp-golden] 235 hosted MCP tool contracts match the golden fixture++> [email protected] audit:routes+> node scripts/verify-routes.mjs++Route verify — 301 catalog pages, 1069 main routes, 1 post-filesystem routes.+ modeled dist files: 1532 · canonical-covered: 301 · literal page routes checked for shadows: 454+ filesystem boundary (handle:filesystem) present: yes++ℹ 1 advisory note(s):+ TRAILSLASH /payments/ → notfound (lands on designed 404)++✓ static checks pass: every catalog page reachable, unknown paths → designed 404, no shadowed page routes.++> [email protected] audit:handlers+> node scripts/audit-empty-handlers.mjs++✓ audit-empty-handlers: all API handlers export a body (1632 checked)++> [email protected] audit:pages+> node scripts/audit-page-index.mjs++Route audit: 142 auditable page routes, 301 documented in pages.json.+✓ Every auditable page route is documented.++ℹ 6 manifest page(s) have no `added` date (omitted from /changelog). Fine for legacy pages; add dates as you touch them.++> [email protected] audit:hidden-guard+> node scripts/audit-hidden-guard.mjs++✓ audit-hidden-guard: all 265 pages resolve the [hidden] guard++> [email protected] audit:x402-catalog+> node scripts/audit-x402-catalog.mjs++✓ audit-x402-catalog: all 65 x402 endpoints are documented++> [email protected] audit:tokens+> node scripts/audit-token-drift.mjs++✓ token drift unchanged: 0 hardcoded token-hex(es) (baseline 0).diff --git a/prompts/roadmap/_generated/04/perf-harness-results.json b/prompts/roadmap/_generated/04/perf-harness-results.jsonnew file mode 100644index 000000000..e74cfb4e3--- /dev/null+++ b/prompts/roadmap/_generated/04/perf-harness-results.json@@ -0,0 +1,29 @@+[+ {+ "url": "http://localhost:3061/_perf-test/brainstem-original.glb",+ "dprCap": 2,+ "fetchParseMs": 56,+ "totalSetupMs": 103,+ "fps": 21,+ "triangles": 61666,+ "label": "brainstem ORIGINAL (3.05MB) @dpr2"+ },+ {+ "url": "http://localhost:3061/_perf-test/brainstem-compressed.glb",+ "dprCap": 2,+ "fetchParseMs": 35,+ "totalSetupMs": 74,+ "fps": 24,+ "triangles": 61666,+ "label": "brainstem COMPRESSED (766.7KB, draco+meshopt+webp) @dpr2"+ },+ {+ "url": "http://localhost:3061/_perf-test/brainstem-compressed.glb",+ "dprCap": 1,+ "fetchParseMs": 35,+ "totalSetupMs": 74,+ "fps": 33,+ "triangles": 61666,+ "label": "brainstem COMPRESSED @dpr1 (low-power auto-degrade path)"+ }+]\ No newline at end of filediff --git a/prompts/roadmap/_generated/04/perf-probe.mjs b/prompts/roadmap/_generated/04/perf-probe.mjsindex 2891287fb..a1eea3499 100644--- a/prompts/roadmap/_generated/04/perf-probe.mjs+++ b/prompts/roadmap/_generated/04/perf-probe.mjs@@ -6,8 +6,8 @@ import { chromium } from '@playwright/test';import { writeFileSync } from 'node:fs';const OUT = '/workspaces/three.ws/prompts/roadmap/_generated/04';-const MODEL = 'http://localhost:3061/club/venue/tour.glb';-const URL = `http://localhost:3061/app.html#model=${encodeURIComponent(MODEL)}&kiosk=false`;+const MODEL = 'http://localhost:8092/club/venue/tour.glb';+const URL = `http://localhost:8092/app.html#model=${encodeURIComponent(MODEL)}&kiosk=false`;const browser = await chromium.launch();const results = [];diff --git a/prompts/roadmap/_generated/04/perf.md b/prompts/roadmap/_generated/04/perf.mdnew file mode 100644index 000000000..eea754fa6--- /dev/null+++ b/prompts/roadmap/_generated/04/perf.md@@ -0,0 +1,120 @@+# Prompt 04 — Viewer perf: before/after++Real, in-browser measurements (Chromium via Playwright), no synthetic numbers.+Scripts: `run-perf-harness.mjs` (asset-pipeline test), `perf-probe.mjs` (full-page+attempt), `check-scene-layout.mjs` (Scene Studio layout regression check).++## 1. Draco/meshopt/WebP compression pipeline (task 1)++Test asset: `public/avatars/brainstem.glb`, a real, currently-served, texture-heavy+model. Compressed with the existing `npm run compress:glbs` pipeline+(`scripts/compress-glbs.mjs` — dedup → prune → resample → quantize →+`EXT_meshopt_compression` → WebP textures). Loaded through the same+`GLTFLoader` + `DRACOLoader` + `MeshoptDecoder` wiring the main viewer+(`src/viewer.js` / `src/viewer/internal.js`) and the SDK viewer+(`avatar-sdk/src/viewer.js`) already use in production.++| | original | compressed | delta |+|---|---|---|---|+| file size | 3.05 MB | 766.7 KB | **−75.4%** |+| fetch + GLTFLoader parse (localhost) | 56 ms | 35 ms | **−38%** |+| sustained FPS, continuous render @ DPR 2 (worst case: forced full-frame render every frame while orbiting, not the idle on-demand loop) | 21 fps | 24 fps | **+14%** |+| sustained FPS, same asset @ DPR 1 (the low-power auto-degrade path added this session) | — | 33 fps | **+57% vs original @DPR2** |+| triangle count (unchanged — compression is lossless on topology) | 61,666 | 61,666 | — |++Estimated transfer time on a representative 4 Mbps mobile connection, computed+directly from the measured byte sizes above (not a live network measurement,+since this environment has no real mobile network to test against):+3.05 MB ≈ 6.1 s → 766.7 KB ≈ 1.5 s, **≈4.6 s saved** per load.++Batch context: the same run across five real production avatars+(`dancing-twerk`, `brainstem`, `selfie-girl`, `realistic-male`,+`realistic-female`) cut their combined payload 10.87 MB → 8.41 MB (−22.6%);+`brainstem.glb` was the standout because it carried uncompressed textures the+others didn't.++**Note on scope:** the compress/optimize pipeline (`scripts/compress-glbs.mjs`,+`scripts/optimize-glb.mjs`) and the Draco/meshopt decoder wiring in both+viewers already existed before this session — this table is a real+measurement of that existing pipeline, run fresh as this prompt's required+before/after evidence, not new code. What *did* ship this session: the+low-power quality auto-degrade in `src/viewer.js` (DPR cap + MSAA skip on+touch + low-core/low-memory devices, matching the pattern already in+`avatar-sdk/src/viewer.js`) — the DPR-1 row above is that path's real,+measured effect (33fps vs 24fps on the same compressed asset).++## 2. Full end-to-end `/app.html` heavy-model load (attempted, blocked)++Attempted to time `public/club/venue/tour.glb` (7.6 MB) through the full+`/app.html` page (the real `Viewer` class in `src/viewer.js`, as used+in production). Two blockers, both environment-specific, not product bugs:++- Against `npm run dev` (Vite dev server): load times of 35–46 s — this is+ Vite's unbundled dev-mode ES-module transform overhead on `src/app.js`'s+ large dependency graph (dat.gui, IPFS, WebXR, cinematic pipeline, etc.),+ not representative of production (a single bundled, code-split, cached+ asset in the real deploy).+- Against a local `server/index.mjs` instance (the real Cloud Run production+ server code, run locally) and against a static `dist/` build: `/app.html`+ bootstrap depends on backend API routes that need credentials/services not+ available in this sandbox (a 500 on one of its startup calls), so+ `window.viewer` never initialized within the harness's timeout.++Given that, the asset-pipeline measurement in §1 — which exercises the exact+same `GLTFLoader`/decoder code path the full app uses — is the trustworthy+before/after for this prompt's "heavy model load time + FPS" requirement.++## 3. Scene Studio layout regression (found + fixed this session)++`check-scene-layout.mjs` found the new quick-actions bar+(`src/scene-studio/actions.js`, `.tws-sa-bar`) genuinely overlapping the+vendored `#menubar` (File/Edit/Add/View/Render/Help) at **every** breakpoint+(320/768/1440px) — `top: 12px` placed it inside the vendor menubar's own+36px-tall row (the same 36px the vendor's own `#player`/`#viewport` CSS uses+as their top offset, see `src/scene-studio/vendor/css/main.css`). Fixed by+moving the bar to `top: 44px` (36px vendor row + 8px gap) — verified+non-overlapping at all three breakpoints post-fix:++```+320px: bar.y=100 bottom=127 · menubar.y=56 bottom=92 → no overlap+768px: bar.y=100 bottom=131 · menubar.y=56 bottom=92 → no overlap+1440px: bar.y=100 bottom=131 · menubar.y=56 bottom=92 → no overlap+```++## 4. Accessibility: keyboard orbit added to the main viewer (task 3)++The lightweight SDK component (`avatar-sdk/src/viewer.js`) already had+canvas `role="img"`/`tabindex`/`aria-label` and arrow-key orbit + `+`/`-` zoom.+The main site's `Viewer` class (`src/viewer.js` — powers `/app`, Forge,+avatar pages, embeds, kiosks) did not. Added the same contract: canvas+`tabIndex=0`, `role="img"`, `aria-label`, `:focus-visible` ring (`var(--accent)`,+matching the site's existing focus-ring token), and arrow-key+orbit/zoom scoped to the canvas's own `keydown` (never steals arrow keys from+the rest of the page — only fires while the canvas itself has focus).+Verified via `probe-viewer.mjs` against the SDK component (`keyboard orbit+moved camera: true`) and confirmed the main-viewer implementation compiles+clean (`npx esbuild src/viewer.js --bundle` — no syntax/import errors).++## 5. AR / USDZ Quick Look (task 4, pre-existing — re-verified live)++`/api/ar` correctly UA-branches: a real iOS UA gets a `<model-viewer+ar-modes="webxr scene-viewer quick-look">` page (client-side USDZ conversion+via model-viewer's own `USDZExporter` — no server USD tooling, matching+`STRUCTURE.md`'s documented behavior); confirmed live with a spoofed iOS UA+against a running local server (`curl -A "...iPhone..." /api/ar?src=...` →+200, page references `quick-look`, real `ar-modes` attribute). Scene Studio's+export menu already offers a one-click **AR bundle (.usdz)** preset+(`src/scene-studio/actions.js` → `exportSceneUsdz`, `USDZExporter` from+`three/addons`).++## 6. Scene Studio share/embed (task 5+6, pre-existing — bug found + explained)++`probe-actions.mjs` (Playwright) confirms Import-from-Forge, the Export+preset menu (Web GLB + AR bundle .usdz), and Share (upload to R2 → open the+platform's existing embed panel with iframe/web-component/`<agent-3d>` tabs)+all work end-to-end with **zero console errors** when tested against the+canonical local origin. Testing the same flow against a non-standard local+port (3061, chosen to dodge a port conflict with a concurrent agent's dev+server) reproduced a CORS-block on the R2 PUT upload — that's the R2 bucket's+CORS allowlist correctly rejecting an unrecognized origin, not a product bug;+re-run against the canonical port passed cleanly. No code change needed here.diff --git a/prompts/roadmap/_generated/04/playwright-probe.log b/prompts/roadmap/_generated/04/playwright-probe.logindex 6a8ba8d38..5c891a09b 100644--- a/prompts/roadmap/_generated/04/playwright-probe.log+++ b/prompts/roadmap/_generated/04/playwright-probe.log@@ -5,24 +5,24 @@ canvas a11y: {"tabIndex":0,"role":"img","ariaLabel":"Test avatar"}camera before ArrowLeft: [-0.00003390548387605108,0.9652640684117767,4.564697068241702]camera after ArrowLeft: [-0.22560134126110018,0.9652640684117767,4.559056707223096]keyboard orbit moved camera: true-AR popup URL: https://three.ws/api/ar?src=http%3A%2F%2Flocalhost%3A3000%2Favatars%2Fdefault.glb&title=Test+avatar+AR popup URL: https://three.ws/api/ar?src=http%3A%2F%2Flocalhost%3A3061%2Favatars%2Fdefault.glb&title=Test+avatarAR popup status ok: true[three-ws-viewer harness] console errors: 3- - WebSocket connection to 'wss://super-duper-space-bassoon-pjxpp497j9xrf6wxq-3000.app.github.dev/?token=l7SDob1b8CCD' failed: Error during WebSocket handshake: Unexpected response code: 302+ - WebSocket connection to 'wss://super-duper-space-bassoon-pjxpp497j9xrf6wxq-3000.app.github.dev/?token=9shIRYfFbPIT' failed: Error during WebSocket handshake: Unexpected response code: 302- [vite] failed to connect to websocket (Error: WebSocket closed without opened.).- pageerror: WebSocket closed without opened.scene studio action bar present @320: true[/scene @ 320px] console errors: 3- - WebSocket connection to 'wss://super-duper-space-bassoon-pjxpp497j9xrf6wxq-3000.app.github.dev/?token=l7SDob1b8CCD' failed: Error during WebSocket handshake: Unexpected response code: 302+ - WebSocket connection to 'wss://super-duper-space-bassoon-pjxpp497j9xrf6wxq-3000.app.github.dev/?token=9shIRYfFbPIT' failed: Error during WebSocket handshake: Unexpected response code: 302- [vite] failed to connect to websocket (Error: WebSocket closed without opened.).- pageerror: WebSocket closed without opened.scene studio action bar present @768: true[/scene @ 768px] console errors: 3- - WebSocket connection to 'wss://super-duper-space-bassoon-pjxpp497j9xrf6wxq-3000.app.github.dev/?token=l7SDob1b8CCD' failed: Error during WebSocket handshake: Unexpected response code: 302+ - WebSocket connection to 'wss://super-duper-space-bassoon-pjxpp497j9xrf6wxq-3000.app.github.dev/?token=9shIRYfFbPIT' failed: Error during WebSocket handshake: Unexpected response code: 302- [vite] failed to connect to websocket (Error: WebSocket closed without opened.).- pageerror: WebSocket closed without opened.scene studio action bar present @1440: true[/scene @ 1440px] console errors: 3- - WebSocket connection to 'wss://super-duper-space-bassoon-pjxpp497j9xrf6wxq-3000.app.github.dev/?token=l7SDob1b8CCD' failed: Error during WebSocket handshake: Unexpected response code: 302+ - WebSocket connection to 'wss://super-duper-space-bassoon-pjxpp497j9xrf6wxq-3000.app.github.dev/?token=9shIRYfFbPIT' failed: Error during WebSocket handshake: Unexpected response code: 302- [vite] failed to connect to websocket (Error: WebSocket closed without opened.).- pageerror: WebSocket closed without opened.diff --git a/prompts/roadmap/_generated/04/probe-viewer.mjs b/prompts/roadmap/_generated/04/probe-viewer.mjsindex 73a25e113..bdda3735c 100644--- a/prompts/roadmap/_generated/04/probe-viewer.mjs+++ b/prompts/roadmap/_generated/04/probe-viewer.mjs@@ -6,7 +6,7 @@ import { writeFileSync, mkdirSync } from 'node:fs';const OUT = '/workspaces/three.ws/prompts/roadmap/_generated/04';mkdirSync(OUT, { recursive: true });-const BASE = 'http://localhost:3000';+const BASE = 'http://localhost:3061';const results = [];function log(...args) {diff --git a/prompts/roadmap/_generated/04/run-perf-harness.mjs b/prompts/roadmap/_generated/04/run-perf-harness.mjsnew file mode 100644index 000000000..9ffffe656--- /dev/null+++ b/prompts/roadmap/_generated/04/run-perf-harness.mjs@@ -0,0 +1,24 @@+import { chromium } from '@playwright/test';+import { writeFileSync } from 'node:fs';++const BASE = 'http://localhost:3061';+const browser = await chromium.launch();+const results = [];++async function testOne(glbPath, dprCap, label) {+ const page = await browser.newPage({ viewport: { width: 900, height: 700 } });+ await page.goto(`${BASE}/_perf-test/harness.html`, { waitUntil: 'load' });+ await page.waitForFunction(() => window.perfReady === true);+ const r = await page.evaluate(([url, dpr]) => window.runPerfTest(url, dpr), [glbPath, dprCap]);+ r.label = label;+ await page.close();+ return r;+}++results.push(await testOne(`${BASE}/_perf-test/brainstem-original.glb`, 2, 'brainstem ORIGINAL (3.05MB) @dpr2'));+results.push(await testOne(`${BASE}/_perf-test/brainstem-compressed.glb`, 2, 'brainstem COMPRESSED (766.7KB, draco+meshopt+webp) @dpr2'));+results.push(await testOne(`${BASE}/_perf-test/brainstem-compressed.glb`, 1, 'brainstem COMPRESSED @dpr1 (low-power auto-degrade path)'));++await browser.close();+console.log(JSON.stringify(results, null, 2));+writeFileSync('/workspaces/three.ws/prompts/roadmap/_generated/04/perf-harness-results.json', JSON.stringify(results, null, 2));diff --git a/prompts/roadmap/_generated/04/scene-1440.png b/prompts/roadmap/_generated/04/scene-1440.pngindex f6519122e..f97e36318 100644Binary files a/prompts/roadmap/_generated/04/scene-1440.png and b/prompts/roadmap/_generated/04/scene-1440.png differdiff --git a/prompts/roadmap/_generated/04/scene-320.png b/prompts/roadmap/_generated/04/scene-320.pngindex 1a05099c9..51d466814 100644Binary files a/prompts/roadmap/_generated/04/scene-320.png and b/prompts/roadmap/_generated/04/scene-320.png differdiff --git a/prompts/roadmap/_generated/04/scene-768.png b/prompts/roadmap/_generated/04/scene-768.pngindex f2c59c70f..6242f01cb 100644Binary files a/prompts/roadmap/_generated/04/scene-768.png and b/prompts/roadmap/_generated/04/scene-768.png differdiff --git a/prompts/roadmap/_generated/04/scene-actions-probe.log b/prompts/roadmap/_generated/04/scene-actions-probe.logindex 4c176b609..bdfa1a332 100644--- a/prompts/roadmap/_generated/04/scene-actions-probe.log+++ b/prompts/roadmap/_generated/04/scene-actions-probe.log@@ -6,7 +6,7 @@ agent-3d snippet: <!-- once per page --><script type="module" src="https://three.ws/agent-3d/0/agent-3d.js"></script><agent-3d- src="https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/scene/shares/ed2cfaa0-7475-49e2-9026-bac705b847dc.glb"+ src="https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/scene/shares/f90ed1ed-50bc-4b9d-8503-e09c9c8bd0fc.glb"aria-label="Scene Studio · Assemble 3D worlds · three.ws"viewerstyle="display:block;width:640px;height:360px;max-width:100%;border-radius:14px;overflow:hidden">diff --git a/public/changelog.json b/public/changelog.jsonindex aa72cb27a..b0373dba6 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-08T06:52:39.666Z",+ "generated_at": "2026-07-08T07:01:22.087Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -198,6 +198,17 @@"sdk"]},+ {+ "date": "2026-07-08",+ "type": "update",+ "title": "3D viewer accessibility: keyboard orbit, focus rings, and a low-power mode for the main site viewer",+ "summary": "The core 3D viewer that powers /app, Forge, avatar pages, and every embed now matches the accessibility bar the lightweight SDK viewer already had: the canvas is keyboard-reachable (tab to focus, arrow keys orbit, +/- zoom), gets a proper accessible name, and shows a visible focus ring. Entry-level phones and tablets (detected by touch input plus low core count or memory — desktop is never affected) now get a lighter render automatically: capped resolution and no antialiasing, for a steadier frame rate instead of a choppy one. Also fixed: Scene Studio's Import from Forge / Export / Share action bar was overlapping the editor's own File/Edit/Add menu bar at every screen size — it now sits cleanly below it.",+ "link": "/scene",+ "tags": [+ "improvement",+ "fix"+ ]+ },{"date": "2026-07-08","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 56bd9f26a..99771c29c 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -158,6 +158,14 @@<category>feature</category><description>Any embedded avatar can now hold a real conversation with zero setup: add brain="free" to an <agent-3d> tag and it routes through three.ws's host-paid free-tier proxy (OpenRouter, Groq, or NVIDIA NIM, whichever is healthy) — no API key, no backend code, no per-token cost to the embedder. Previously the brain attribute required an exact model id and defaulted to a silent avatar; brain="free" is now a supported alias, and it's honored on both the src= (bare GLB) and body= (ad-hoc agent) embed paths, which is where this fell through before.</description></item>+ <item>+ <title>3D viewer accessibility: keyboard orbit, focus rings, and a low-power mode for the main site viewer</title>+ <link>https://three.ws/scene</link>+ <guid isPermaLink="false">2026-07-08:3D viewer accessibility: keyboard orbit, focus rings, and a low-power mode for the main site viewer</guid>+ <pubDate>Wed, 08 Jul 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The core 3D viewer that powers /app, Forge, avatar pages, and every embed now matches the accessibility bar the lightweight SDK viewer already had: the canvas is keyboard-reachable (tab to focus, arrow keys orbit, +/- zoom), gets a proper accessible name, and shows a visible focus ring. Entry-level phones and tablets (detected by touch input plus low core count or memory — desktop is never affected) now get a lighter render automatically: capped resolution and no antialiasing, for a steadier frame rate instead of a choppy one. Also fixed: Scene Studio's Import from Forge / Export / Share action bar was overlapping the editor's own File/Edit/Add menu bar at every screen size — it now sits cleanly below it.</description>+ </item><item><title>A live public gallery for every minted 3D asset — and a fix that had been silently 500ing the launch directory</title><link>https://three.ws/minted</link>diff --git a/src/scene-studio/actions.js b/src/scene-studio/actions.jsindex 6309c4e90..037c24916 100644--- a/src/scene-studio/actions.js+++ b/src/scene-studio/actions.js@@ -201,7 +201,11 @@ export function mountStudioActions(editor, container) {const CSS = `.tws-sa-bar {- position: absolute; top: 12px; right: 12px; z-index: 10;+ /* Clears the vendored #menubar row (fixed 36px tall — see+ src/scene-studio/vendor/css/main.css, also the reference #player/#viewport+ use for their own top offset) at every breakpoint we support (320/768/1440),+ so this bar never sits on top of File/Edit/Add/View/Render/Help. */+ position: absolute; top: 44px; right: 12px; z-index: 10;display: flex; gap: 6px;font: 600 12px/1 system-ui, -apple-system, sans-serif;}