agent-office: a Settings switch, "Include agents from other computers
and gateway keys", sets options.remote, so the gateway hook keeps
requests that are not local. It is off by default (package default
remote:false, the page reads opts.remote === true, the hook
opts?.remote === true). While it is off the hook counts the non-local
requests it drops (capped at 9999) into the snapshot, and an empty
office says they were ignored and where the switch is, in all nine
languages. Adapted by frederick-wang from QingJ01/magpie-agent-office#5.
Merged onto #740 with the page stamps taken again (a7a5bce6).
Run at the reviewed head a7a5bce6, on mote:
- HOME=<scratch> bun test packages/agent-office: 183 pass, 0 fail,
34 more times (20 of them four at a time, load ~30). The first run
of this head had 2 fails whose names were lost to tail; not seen
again in the 34.
- stamp-page.mjs --check: 0 (every ?v= checked against sha256);
bun scripts/check.mjs agent-office: 0.
- Broken by hand: dropping the dropped++ turns 2 tests red. Turning
remote on by default in the hook's track() turned nothing red; a
guard test follows in the version bump.
- Playwright 1.62.0, Chromium and WebKit, light and dark, stub bridge,
live.js with dropped:2 and no sessions: the empty state gives the
hint; ticking the switch hides it, options.set receives remote:true
after the 2.5s save, and a reload with those options shows the box
ticked and no hint.
Not tried: a real remote agent or gateway key through a real magpie.