From 8e97fc6263563ce81cb06aad385b75e6bad62b35 Mon Sep 17 00:00:00 2001 From: iris Date: Fri, 28 Aug 2026 23:18:21 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20shape.md=20=E2=80=94=20fix=20stale=20ap?= =?UTF-8?q?p.js=20example,=20app.js=20no=20longer=20exists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit argus, non-blocking note on PR#3702: the relative-path-resolution example still used static/app.js as its illustrative filename after that file was deleted in the cutover. Mechanism described was still correct, just a stale filename a future reader could get confused chasing. Swapped to static/main.js (the agent page's own script) and static/stats.js (the /stats subpage example, more accurate than main.js there since that's specifically about a subpage's own script). --- docs/web-ui/shape.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.