Merge branch 'main' into web-layout
Take main's newer smoke behaviour where they met: the binary capture is run 449 (opened through openRunDetail), and a running run must show no aggregate Changes section. Keep the layout's shell-aware checks and its L2-L4 rows; L7 stays todo with the view-level fixes recorded.
This commit is contained in:
+7
-4
@@ -29,7 +29,7 @@ what is done; this file covers how to run, test and verify it.
|
||||
|
||||
```sh
|
||||
cd web
|
||||
node serve.mjs # http://127.0.0.1:8090/ (proxies /connect -> 127.0.0.1:8080)
|
||||
node serve.mjs # http://127.0.0.1:8090/ (proxies /connect and /artifacts/ -> 127.0.0.1:8080)
|
||||
node serve.mjs --host 0.0.0.0 # reachable from other devices (trusted LAN/VPN)
|
||||
node serve.mjs --port 8095 --pipelines 127.0.0.1:8080
|
||||
```
|
||||
@@ -77,7 +77,7 @@ keeping them out of the tree keeps a delivery checkout clean.
|
||||
| Feature logic and models | `src/runs.js`, `src/runDetail.js`, `src/changes.js`, `src/artifacts.js`, `src/pipelines.js`, `src/templates.js`, `src/graph.js`, `src/chat.js`, `src/markdown.js`, `src/search.js`, `src/attention.js`, `src/actions.js`, `src/connection.js`, `src/settings.js`, `src/notify.js`, `src/runEvents.js`, `src/routes.js` |
|
||||
| Shell and views | `src/app.js` (boot, state, navigation, render dispatch), view modules under `src/views/` |
|
||||
| Styling | per-area stylesheets linked from `index.html` |
|
||||
| Server + `/connect` proxy | `serve.mjs` |
|
||||
| Server + `/connect` and `/artifacts/` proxy | `serve.mjs` |
|
||||
| Tests | `test/*.test.mjs`, `test/smoke.mjs`, `test/browser.mjs`, `test/ui-smoke.mjs` |
|
||||
| Acceptance gate | `PARITY.md` |
|
||||
| Working map | `AGENTS.md` |
|
||||
@@ -98,8 +98,11 @@ request Origin "HOST:8090" is not authorized for Host "HOST:8080"
|
||||
```
|
||||
|
||||
A Node or `curl` client sends no `Origin` and is accepted — which is why the
|
||||
protocol smoke can pass while a browser cannot. `serve.mjs` therefore also proxies
|
||||
`/connect`, dropping `Origin`, so the page and the socket are one origin.
|
||||
protocol smoke can pass while a browser cannot. `serve.mjs` therefore proxies `/connect` (dropping `Origin`) so the page and
|
||||
the socket are one origin. It proxies `/artifacts/` for the same reason: artifact
|
||||
URLs resolve against the configured server, which in a proxied deployment is the
|
||||
page's own origin, so the gallery's images, the viewer, `session.html` and
|
||||
downloads would otherwise 404 while the WebSocket worked.
|
||||
|
||||
**Do not "fix" this by relaxing the server's Origin check** — that check is the
|
||||
only thing between a random web page and an unauthenticated control API. Keep the
|
||||
|
||||
Reference in New Issue
Block a user