ccyin found it (#1228): opened through `magpie web` from another
computer (magpie in Docker), the LayerFS page was blank with
"127.0.0.1:43717 refused to connect". The page entry had no
magpie.page.service, so the bridge gave no forward and boot.js jumped
to 127.0.0.1, which is the viewing computer there. page-chat and
page-fingerprint declare it and worked in the same window.
- package.json: page.service {port: 43717, option: "pagePort"}.
- boot.js goes to magpie.service when it is an http(s) address, with
the language query; otherwise to 127.0.0.1:<pagePort> as before.
- The service is unchanged: magpie's forward (internal/gui/
pageservice.go) sends Host 127.0.0.1:<port>, drops the cookie, and a
navigation carries no Origin, so its guards pass as they are.
Run (mote, HOME=$(mktemp -d)):
- bun test in packages/layerfs: 72 pass, 0 fail.
- bun scripts/check.mjs layerfs: ok.
Broken by hand: origin/main's page/boot.js with the new tests: the
forward test fails (the frame still goes to 127.0.0.1).
Not tried: a real magpie web in Docker opened from a second computer.