Remove alternate hosts from tooling probes

Keep the probe suite on the Material composition so browser fixtures and capture drivers no longer render or select Cupertino hosts. Record the final residual legacy arguments and implementation checks for the delivery gate.
This commit is contained in:
2026-11-11 21:38:30 +00:00
parent 7cb95471cb
commit b60ad6d98f
68 changed files with 405 additions and 747 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
// Switches an open chat's permission mode in a real browser against a loopback
// fixture, never operator data.
// PROBE_WIDTH=1280 PROBE_HOST=material|cupertino node tool/chat_mode_probe.mjs <web-build> <out>
// PROBE_WIDTH=1280 node tool/chat_mode_probe.mjs <web-build> <out>
import assert from 'node:assert/strict';
import { mkdir, mkdtemp, writeFile } from 'node:fs/promises';
import { once } from 'node:events';
@@ -11,7 +11,7 @@ import { launchChrome, waitForPort, waitForPage, connect, sleep } from './pipeli
import { axNodes, enableSemantics, waitFor, capture } from './pipelines_probe_cdp_input.mjs';
const width = Number(process.env.PROBE_WIDTH ?? 1280);
const host = process.env.PROBE_HOST ?? 'material';
const host = 'material';
const output = resolve(process.argv[3] ?? 'build/chat-mode-probe');
await mkdir(output, { recursive: true });
const messages = [
@@ -39,7 +39,7 @@ const first = async (pattern, what) => {
try {
c = await connect((await waitForPage(await waitForPort(join(profile, 'DevToolsActivePort')))).webSocketDebuggerUrl);
await c.send('Page.enable');
if (host === 'cupertino') {
if (host === 'material') {
await c.send('Emulation.setUserAgentOverride', {
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15', platform: 'MacIntel',
});