fix(browser): serialize attached scenarios through cleanup settlement

This commit is contained in:
morluto
2026-10-10 01:45:01 +08:00
parent 4940a867e2
commit cfce91d418
6 changed files with 668 additions and 80 deletions
+3 -1
View File
@@ -135,7 +135,9 @@ export class PlaywrightScenarioSession implements BrowserScenarioSessionPort {
if (secrets === undefined)
throw new BrowserObservationError(OPERATION, "secret_unavailable");
const startedAt = Date.now();
const opening = openPlaywrightScenarioBrowser(scenario, environment);
const opening = openPlaywrightScenarioBrowser(scenario, environment, {
signal: options.signal,
});
let opened: OpenedScenarioBrowser;
let events: PlaywrightScenarioEvents | undefined;
try {