From df63f418e59dd9e24073d33740dab6b9ea038773 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Sat, 24 Jan 2026 17:05:24 +0100 Subject: [PATCH] feat: add Chrome flags for automated recording without user interaction - Add getChromeRestartCommand() with --allowlisted-extension-id and --auto-accept-this-tab-capture flags - Move EXTENSION_IDS to utils.ts for cleaner imports - Add sessionId support for multi-tab recording - Add helpful error message when activeTab permission is missing - Add null check for empty extension result - Document offscreen recording flow with ASCII diagram --- extension/src/background.ts | 3 +- extension/src/offscreen.ts | 40 ++++++++++++-- playwriter/src/cdp-relay.ts | 20 +++---- playwriter/src/cdp-session.ts | 5 ++ playwriter/src/executor.ts | 12 +++-- playwriter/src/screen-recording.ts | 83 ++++++++++++++++++++++++------ playwriter/src/utils.ts | 6 +++ 7 files changed, 136 insertions(+), 33 deletions(-) diff --git a/extension/src/background.ts b/extension/src/background.ts index 6e8a41a..e002ef3 100644 --- a/extension/src/background.ts +++ b/extension/src/background.ts @@ -1116,8 +1116,9 @@ async function handleStartRecording(params: StartRecordingParams): Promise