diff --git a/docs/web-ui/shape.md b/docs/web-ui/shape.md index e142299f..33372e44 100644 --- a/docs/web-ui/shape.md +++ b/docs/web-ui/shape.md @@ -308,7 +308,7 @@ two modes coexist while sub-agents transition. The per-agent UI uses **document-relative paths everywhere** for assets, API calls, form actions, and the screen WebSocket. Bare -references like `static/app.js`, `api/state`, `events/stream`, +references like `static/main.js`, `api/state`, `events/stream`, `screen/ws` resolve against `document.baseURI` — the page's URL without its last path segment. @@ -328,8 +328,8 @@ paths server-side. Only the browser-facing URLs are gated on the mount prefix. Subpages (`stats`, `screen`) are served without a trailing slash so -the relative-path resolution stays correct: `static/app.js` from -`/stats` becomes `/static/app.js` (last segment `stats` gets -replaced), not `/stats/static/app.js`. Adding a trailing slash to +the relative-path resolution stays correct: `static/stats.js` from +`/stats` becomes `/static/stats.js` (last segment `stats` gets +replaced), not `/stats/static/stats.js`. Adding a trailing slash to those routes would break the resolution; either keep them slash-less or use `` injection at serve time.