Status: Accepted (2026-11-28, ED1). Extends 0402.
Wave-2 follow-ups and review findings for apps/web:
follow (R1, ADR 0203). The server relays the followee’s cursor and viewport every tick only to followers, but following was a one-shot camera jump.linora_csrf, but production sets __Host-linora_csrf.appState.notify(text) sets a ValueStore. ShellNotice renders it above every route for 5 s. The FileController leaves a deleted or no-longer-accessible file through exit(): one notice, then navigation. This covers the file_deleted / access_revoked file events and the access_revoked fatal close. The message stays on screen after the editor unmounts.{follow: clientId}. While following, the controller applies the followee’s latest viewport, at most once per frame (from its peers callback).
usercamera event: wheel, pan drag, zoom keys and buttons, fit), Escape, a second click, the followee leaving, or a page switch. The controller then sends {follow: null}.setViewport itself does not fire usercamera, so following never cancels itself.PRESENCE_VIEW_MARGIN: the server stops relaying them there, so their last position is stale.RemoteSyncClient.retryNow() (DC2, b0fe7ce: skips the pending backoff timer; a no-op unless offline and waiting) on online and on visibilitychange to visible. The sync client stays DOM-free.GET /v1/me) is preferred. The fallback cookie is __Host-linora_csrf, then linora_csrf (csrfFromCookies, unit-tested with the production names).'unsafe-inline' or 'unsafe-eval':
FontFace from bundled URLs.
Policy for O1:
default-src 'self'; script-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' data:;
connect-src 'self' wss://<realtime host>; worker-src 'none'; object-src 'none'; base-uri 'none';
form-action 'self'; frame-ancestors 'none'
connect-src must list the realtime origin returned by POST /v1/realtime/token (LINORA_REALTIME_URL). On a same-origin deployment, list its wss:// form next to 'self', since some browsers don’t treat ws(s) as covered by 'self'.new Function, no workers or blob URLs, no url() in the CSS.img-src data: covers the empty favicon.online / visibilitychange inside the sync client: it would need DOM types in a DOM-free package that MCP also uses.apps/web/test/shell.test.ts (CSRF cookie names). The notice, follow and reconnect paths need a live stack (two browsers); see web-app.md.