🎥 Make videos programmatically with React
Remove React Scan HTTP collector
Jonny Burger79fb3d836001
diff --git a/.agents/skills/react-scan/SKILL.md b/.agents/skills/react-scan/SKILL.mdindex b1cbd1ebf6..4bf4e17e7a 100644--- a/.agents/skills/react-scan/SKILL.md+++ b/.agents/skills/react-scan/SKILL.md@@ -1,6 +1,6 @@---name: react-scan-description: Capture and analyze Remotion Studio React render profiles with the internal React Scan Lite collector. Use when diagnosing unnecessary re-renders, slow commits, frame-reactive component trees, or when comparing render performance before and after a change.+description: Capture and analyze Remotion Studio React render profiles through development-only WebMCP tools. Use when diagnosing unnecessary re-renders, slow commits, frame-reactive component trees, or when comparing render performance before and after a change.---# React Scan@@ -13,7 +13,7 @@ performance problem from source alone when the workflow can be reproduced.Start from the repository root:```sh-bun run react-scan:capture -- --label <short-kebab-case-description>+bun run react-scan:capture```Wait for Studio to finish building, open the printed Studio URL with the browser,@@ -24,28 +24,18 @@ Call `start_react_scan_recording`, then use browser-use to perform one namedinteraction three times. Call `stop_react_scan_recording` immediatelyafterwards. Keep the recording short so startup, HMR, and unrelated interactionsdo not dominate the data. Call `get_react_scan_recording` to return the raw-events and the same agent-oriented summary used by the on-disk collector.+events and an agent-oriented summary.-After retrieving the recording, stop the capture command with Ctrl+C. This-finalizes the on-disk copy for deeper inspection and comparison.--The command writes an ignored directory under `out/react-scan/` containing:--- `metadata.json`: capture context, git state, browser, and tested URL.-- `summary.json`: ranked component costs, render causes, slow commits, and- profiling-hook status.-- `events.ndjson`: raw React Scan Lite events for deeper inspection.--`out/react-scan/latest.json` points to the newest capture.+After retrieving the recording, stop Studio with Ctrl+C. Recordings only live in+the WebMCP result; React Scan does not send them to a separate HTTP collector.React Scan replaces the React DevTools profiling-hook channel while active. Donot record with the React DevTools Timeline Profiler at the same time.## Analyze the evidence-Read the `summary` returned by `get_react_scan_recording` first. For the persisted-capture, read `metadata.json` and `summary.json` before the raw events. Confirm-the capture contains commit events and inspect `profilingHooksStatuses`; do not+Read the `summary` returned by `get_react_scan_recording` first. Confirm the+capture contains commit events and inspect `profilingHooksStatuses`; do notinterpret a missing profiling channel as an idle application.Prioritize components with high total self duration, repeated expensive@@ -75,5 +65,5 @@ Require an improvement in the relevant commit/component metrics without aregression in behavior. Do not optimize every re-render: cheap necessary rendersare often preferable to added memoization complexity.-Report both capture directories, the measured before/after change, and the-focused tests used to protect behavior.+Report the measured before/after change and the focused tests used to protect+behavior.diff --git a/packages/.monorepo/react-scan/capture.test.ts b/packages/.monorepo/react-scan/capture.test.tsdeleted file mode 100644index ee58d1d11e..0000000000--- a/packages/.monorepo/react-scan/capture.test.ts+++ /dev/null@@ -1,78 +0,0 @@-import {expect, test} from 'bun:test';-import {mkdtemp, readdir, readFile, rm} from 'node:fs/promises';-import {tmpdir} from 'node:os';-import path from 'node:path';--const repositoryRoot = path.resolve(import.meta.dir, '../../..');--test('starts a capture and records the Studio React version', async () => {- const outputRoot = await mkdtemp(- path.join(tmpdir(), 'remotion-react-scan-capture-'),- );- const capture = Bun.spawn(- [- 'bun',- path.join(import.meta.dir, 'capture.ts'),- '--no-studio',- '--output-root',- outputRoot,- '--label',- 'test',- ],- {- cwd: repositoryRoot,- stderr: 'pipe',- stdout: 'pipe',- },- );-- try {- const reader = capture.stdout.getReader();- const decoder = new TextDecoder();- let output = '';- while (!output.includes('Press Ctrl+C to stop')) {- const chunk = await reader.read();- if (chunk.done) {- break;- }- output += decoder.decode(chunk.value, {stream: true});- }-- expect(output).toContain('Press Ctrl+C to stop');- capture.kill('SIGINT');- const exitCode = await capture.exited;- const stderr = await new Response(capture.stderr).text();- expect(stderr).toBe('');- expect(exitCode).toBe(0);-- const entries = await readdir(outputRoot, {withFileTypes: true});- const captureDirectory = entries.find((entry) => entry.isDirectory());- expect(captureDirectory).toBeDefined();-- const metadata = JSON.parse(- await readFile(- path.join(outputRoot, captureDirectory!.name, 'metadata.json'),- 'utf8',- ),- ) as {eventCount: number; versions: {react: string}};- const studioReactPackage = JSON.parse(- await readFile(- path.join(- repositoryRoot,- 'packages',- 'example',- 'node_modules',- 'react',- 'package.json',- ),- 'utf8',- ),- ) as {version: string};-- expect(metadata.eventCount).toBe(0);- expect(metadata.versions.react).toBe(studioReactPackage.version);- } finally {- capture.kill();- await rm(outputRoot, {force: true, recursive: true});- }-});diff --git a/packages/.monorepo/react-scan/capture.ts b/packages/.monorepo/react-scan/capture.tsindex bb2e31ce66..6407c733c7 100644--- a/packages/.monorepo/react-scan/capture.ts+++ b/packages/.monorepo/react-scan/capture.ts@@ -1,327 +1,52 @@-import {createWriteStream} from 'node:fs';-import {mkdir} from 'node:fs/promises';import path from 'node:path';-import type {LiteEvent} from 'react-scan/lite';-import {summarizeReactScanEvents, type StoredReactScanEvent} from './summarize';--type ClientMetadata = {- devicePixelRatio: number;- height: number;- href: string;- userAgent: string;- width: number;-};--type IngestPayload = {- client?: ClientMetadata;- events: LiteEvent[];- sequence: number;- sessionId: string;-};const repositoryRoot = path.resolve(import.meta.dir, '../../..');const clientEntryPoint = path.join(import.meta.dir, 'client.ts');-const getArgument = (name: string) => {- const index = process.argv.indexOf(name);- return index === -1 ? null : (process.argv[index + 1] ?? null);-};--const outputRoot = path.resolve(- getArgument('--output-root') ??- path.join(repositoryRoot, 'out', 'react-scan'),-);--const getGitValue = (args: string[]) => {- const result = Bun.spawnSync(['git', ...args], {- cwd: repositoryRoot,- stderr: 'ignore',- });-- return result.exitCode === 0 ? result.stdout.toString().trim() : null;-};--const getPackageVersion = async (packageJsonPath: string) => {- const packageJson = (await Bun.file(packageJsonPath).json()) as {- version: string;- };- return packageJson.version;-};--const slugify = (value: string) => {- const slug = value- .toLowerCase()- .replace(/[^a-z0-9]+/g, '-')- .replace(/^-|-$/g, '');-- return slug || 'capture';-};--const readStoredEvents = async (filePath: string) => {- const contents = await Bun.file(filePath).text();- if (!contents.trim()) {- return [];- }-- return contents- .trim()- .split('\n')- .map((line) => JSON.parse(line) as StoredReactScanEvent);-};--const startCapture = async () => {+const startReactScanStudio = async () => {if (process.argv.includes('--help')) {- console.log(- 'bun run react-scan:capture -- --label <name> [--no-studio] [--output-root <path>]',- );+ console.log('bun run react-scan:capture');return;}- const label = getArgument('--label') ?? 'capture';- const noStudio = process.argv.includes('--no-studio');- if (!noStudio) {- console.log('Building the React Scan-enabled Studio entry...');- const build = Bun.spawn(- [- 'bunx',- 'turbo',- 'run',- 'make',- '--filter=@remotion/studio-shared',- '--filter=@remotion/bundler',- ],- {- cwd: repositoryRoot,- stderr: 'inherit',- stdout: 'inherit',- },- );- if ((await build.exited) !== 0) {- throw new Error('Could not build the Studio bundler for React Scan');- }- }-- const sessionId = crypto.randomUUID();- const startedAt = new Date();- const timestamp = startedAt- .toISOString()- .replaceAll(':', '-')- .replace('Z', '');- const captureDirectory = path.join(- outputRoot,- `${timestamp}-${slugify(label)}-${sessionId.slice(0, 8)}`,- );- const eventsPath = path.join(captureDirectory, 'events.ndjson');- const metadataPath = path.join(captureDirectory, 'metadata.json');- const summaryPath = path.join(captureDirectory, 'summary.json');-- await mkdir(captureDirectory, {recursive: true});- const eventStream = createWriteStream(eventsPath, {flags: 'a'});- const storedEvents: StoredReactScanEvent[] = [];- let clientMetadata: ClientMetadata | null = null;- let finalized = false;- let resolveWithoutStudio: (() => void) | null = null;-- const initialMetadata = {- branch: getGitValue(['branch', '--show-current']),- captureDirectory: path.relative(repositoryRoot, captureDirectory),- dirty: Boolean(getGitValue(['status', '--porcelain'])),- gitSha: getGitValue(['rev-parse', 'HEAD']),- label,- schemaVersion: 1,- sessionId,- startedAt: startedAt.toISOString(),- versions: {- bun: Bun.version,- react: await getPackageVersion(- path.join(- repositoryRoot,- 'packages',- 'example',- 'node_modules',- 'react',- 'package.json',- ),- ),- reactScan: await getPackageVersion(- path.join(repositoryRoot, 'node_modules', 'react-scan', 'package.json'),- ),- remotion: await getPackageVersion(- path.join(repositoryRoot, 'packages', 'core', 'package.json'),- ),+ console.log('Building the React Scan-enabled Studio entry...');+ const build = Bun.spawn(+ [+ 'bunx',+ 'turbo',+ 'run',+ 'make',+ '--filter=@remotion/studio-shared',+ '--filter=@remotion/bundler',+ ],+ {+ cwd: repositoryRoot,+ stderr: 'inherit',+ stdout: 'inherit',},- };- await Bun.write(- metadataPath,- `${JSON.stringify(initialMetadata, null, 2)}\n`,);+ if ((await build.exited) !== 0) {+ throw new Error('Could not build the Studio bundler for React Scan');+ }- const corsHeaders = {- 'Access-Control-Allow-Headers': 'Content-Type',- 'Access-Control-Allow-Methods': 'POST, OPTIONS',- 'Access-Control-Allow-Origin': '*',- };-- const server = Bun.serve({- fetch: async (request) => {- if (request.method === 'OPTIONS') {- return new Response(null, {headers: corsHeaders, status: 204});- }-- const expectedPath = `/ingest/${sessionId}`;- if (- request.method !== 'POST' ||- new URL(request.url).pathname !== expectedPath- ) {- return new Response('Not found', {status: 404});- }-- const contentLength = Number(request.headers.get('content-length') ?? 0);- if (contentLength > 10 * 1024 * 1024) {- return new Response('Payload too large', {- headers: corsHeaders,- status: 413,- });- }-- let payload: IngestPayload;- try {- payload = (await request.json()) as IngestPayload;- } catch {- return new Response('Invalid JSON', {- headers: corsHeaders,- status: 400,- });- }-- if (- payload.sessionId !== sessionId ||- !Number.isInteger(payload.sequence) ||- !Array.isArray(payload.events)- ) {- return new Response('Invalid capture payload', {- headers: corsHeaders,- status: 400,- });- }-- clientMetadata ??= payload.client ?? null;- const receivedAt = new Date().toISOString();- for (- let eventIndex = 0;- eventIndex < payload.events.length;- eventIndex++- ) {- const storedEvent: StoredReactScanEvent = {- event: payload.events[eventIndex],- eventIndex,- receivedAt,- sequence: payload.sequence,- sessionId,- };- storedEvents.push(storedEvent);- eventStream.write(`${JSON.stringify(storedEvent)}\n`);- }-- return Response.json(- {accepted: payload.events.length},- {headers: corsHeaders},- );+ console.log('Starting Studio with React Scan WebMCP tools enabled...');+ const studio = Bun.spawn(['bun', 'run', 'dev', '--', '--force-new'], {+ cwd: path.join(repositoryRoot, 'packages', 'example'),+ env: {+ ...process.env,+ REMOTION_REACT_SCAN_ENTRY_POINT: clientEntryPoint,},- hostname: '127.0.0.1',- port: 0,+ stderr: 'inherit',+ stdin: 'inherit',+ stdout: 'inherit',});- const endpoint = `http://127.0.0.1:${server.port}/ingest/${sessionId}`;- console.log(`React Scan capture: ${label}`);- console.log(`Output: ${path.relative(repositoryRoot, captureDirectory)}`);- console.log(`Endpoint: ${endpoint}`);- console.log('Press Ctrl+C to stop and write summary.json.');-- const studio = noStudio- ? null- : Bun.spawn(['bun', 'run', 'dev', '--', '--force-new'], {- cwd: path.join(repositoryRoot, 'packages', 'example'),- env: {- ...process.env,- REMOTION_REACT_SCAN_ENDPOINT: endpoint,- REMOTION_REACT_SCAN_ENTRY_POINT: clientEntryPoint,- REMOTION_REACT_SCAN_SESSION_ID: sessionId,- },- stderr: 'inherit',- stdin: 'inherit',- stdout: 'inherit',- });-- const finalize = async () => {- if (finalized) {- return;- }- finalized = true;-- await Bun.sleep(250);- await server.stop(true);- studio?.kill();- await new Promise<void>((resolve, reject) => {- eventStream.once('error', reject);- eventStream.end(resolve);- });-- const events =- storedEvents.length > 0- ? storedEvents- : await readStoredEvents(eventsPath);- const endedAt = new Date();- const summary = summarizeReactScanEvents(events);- await Bun.write(summaryPath, `${JSON.stringify(summary, null, 2)}\n`);- await Bun.write(- metadataPath,- `${JSON.stringify(- {- ...initialMetadata,- client: clientMetadata,- endedAt: endedAt.toISOString(),- eventCount: events.length,- },- null,- 2,- )}\n`,- );- await Bun.write(- path.join(outputRoot, 'latest.json'),- `${JSON.stringify(- {- captureDirectory: path.relative(repositoryRoot, captureDirectory),- label,- sessionId,- },- null,- 2,- )}\n`,- );-- console.log(`Saved ${events.length} events to ${eventsPath}`);- console.log(`Summary: ${summaryPath}`);- resolveWithoutStudio?.();- };-- process.on('SIGINT', () => {- void finalize();- });- process.on('SIGTERM', () => {- void finalize();- });-- if (studio) {- await studio.exited;- await finalize();- } else {- await new Promise<void>((resolve) => {- resolveWithoutStudio = resolve;- });- }+ const stopStudio = () => studio.kill();+ process.once('SIGINT', stopStudio);+ process.once('SIGTERM', stopStudio);+ process.exitCode = await studio.exited;};if (import.meta.main) {- await startCapture();+ await startReactScanStudio();}diff --git a/packages/.monorepo/react-scan/client.ts b/packages/.monorepo/react-scan/client.tsindex 95231d2e6a..8593be8a1e 100644--- a/packages/.monorepo/react-scan/client.ts+++ b/packages/.monorepo/react-scan/client.ts@@ -2,14 +2,6 @@ import type {LiteEvent} from 'react-scan/lite';import {instrument} from 'react-scan/lite';import {summarizeReactScanEvents} from './summarize';-const endpoint = process.env.REMOTION_REACT_SCAN_ENDPOINT;-const sessionId = process.env.REMOTION_REACT_SCAN_SESSION_ID;--if (!endpoint || !sessionId) {- throw new Error('React Scan capture environment variables are missing');-}--const pendingEvents: LiteEvent[] = [];const recordingContextEvents = new Map<string, LiteEvent>();let recordedEvents: LiteEvent[] = [];let recordingStartedAt: string | null = null;@@ -17,56 +9,6 @@ let recordingStartedAtInMilliseconds: number | null = null;let recordingEndedAt: string | null = null;let recordingDurationInMilliseconds: number | null = null;let isRecording = false;-let flushTimer: ReturnType<typeof setTimeout> | null = null;-let batchSequence = 0;-let warnedAboutConnectionFailure = false;-let flushChain = Promise.resolve();--const flush = () => {- if (flushTimer !== null) {- clearTimeout(flushTimer);- flushTimer = null;- }-- if (pendingEvents.length === 0) {- return flushChain;- }-- const events = pendingEvents.splice(0, pendingEvents.length);- const sequence = batchSequence;- batchSequence++;-- flushChain = flushChain.then(async () => {- try {- await fetch(endpoint, {- body: JSON.stringify({- client:- sequence === 0- ? {- devicePixelRatio: window.devicePixelRatio,- height: window.innerHeight,- href: window.location.href,- userAgent: navigator.userAgent,- width: window.innerWidth,- }- : undefined,- events,- sequence,- sessionId,- }),- headers: {'Content-Type': 'application/json'},- method: 'POST',- });- } catch {- if (!warnedAboutConnectionFailure) {- warnedAboutConnectionFailure = true;- console.warn('Could not stream React Scan events to the collector.');- }- }- });-- return flushChain;-};const getRecordingStatus = () => ({durationInMilliseconds: recordingDurationInMilliseconds,@@ -118,14 +60,7 @@ if (typeof modelContext?.registerTool === 'function') {throw new Error('React Scan is already recording.');}- if (flushTimer !== null) {- clearTimeout(flushTimer);- flushTimer = null;- }-- pendingEvents.splice(0, pendingEvents.length);recordedEvents = [...recordingContextEvents.values()];- pendingEvents.push(...recordedEvents);recordingStartedAt = new Date().toISOString();recordingStartedAtInMilliseconds = performance.now();recordingEndedAt = null;@@ -155,7 +90,6 @@ if (typeof modelContext?.registerTool === 'function') {);recordingEndedAt = new Date().toISOString();isRecording = false;- await flush();return getRecordingStatus();},@@ -178,19 +112,10 @@ if (typeof modelContext?.registerTool === 'function') {throw new Error('Stop React Scan before returning the recording.');}- const receivedAt = new Date().toISOString();return {...getRecordingStatus(),events: recordedEvents,- summary: summarizeReactScanEvents(- recordedEvents.map((event, eventIndex) => ({- event,- eventIndex,- receivedAt,- sequence: 0,- sessionId,- })),- ),+ summary: summarizeReactScanEvents(recordedEvents),};},},@@ -220,18 +145,6 @@ instrument({}recordedEvents.push(event);- pendingEvents.push(event);-- if (pendingEvents.length >= 20) {- void flush();- return;- }-- if (flushTimer === null) {- flushTimer = setTimeout(() => void flush(), 100);- }},recordChangeDescriptions: true,});--window.addEventListener('pagehide', () => void flush());diff --git a/packages/.monorepo/react-scan/summarize.test.ts b/packages/.monorepo/react-scan/summarize.test.tsindex b861a2f50b..b2d8e9395f 100644--- a/packages/.monorepo/react-scan/summarize.test.ts+++ b/packages/.monorepo/react-scan/summarize.test.ts@@ -1,25 +1,16 @@import {expect, test} from 'bun:test';-import type {LiteEvent} from 'react-scan/lite';-import {summarizeReactScanEvents, type StoredReactScanEvent} from './summarize';--const makeStoredEvent = (event: LiteEvent): StoredReactScanEvent => ({- event,- eventIndex: 0,- receivedAt: '2026-08-21T12:00:00.000Z',- sequence: 0,- sessionId: 'test',-});+import {summarizeReactScanEvents} from './summarize';test('summarizes commit costs and render causes for an agent', () => {const summary = summarizeReactScanEvents([- makeStoredEvent({+ {available: true,bundleType: 1,kind: 'profiling-hooks-status',reactVersion: '19.2.3',timestamp: 1,- }),- makeStoredEvent({+ },+ {kind: 'commit',priorityName: 'UserBlocking',timestamp: 2,@@ -71,8 +62,8 @@ test('summarizes commit costs and render causes for an agent', () => {treeBaseDuration: 2,},],- }),- makeStoredEvent({+ },+ {kind: 'commit',priorityName: 'Normal',timestamp: 21,@@ -124,7 +115,7 @@ test('summarizes commit costs and render causes for an agent', () => {treeBaseDuration: 1,},],- }),+ },]);expect(summary.commitCount).toBe(2);diff --git a/packages/.monorepo/react-scan/summarize.ts b/packages/.monorepo/react-scan/summarize.tsindex 30a67d9ad9..82f09e8a14 100644--- a/packages/.monorepo/react-scan/summarize.ts+++ b/packages/.monorepo/react-scan/summarize.ts@@ -1,13 +1,5 @@import type {LiteEvent, LiteFiberSummary} from 'react-scan/lite';-export type StoredReactScanEvent = {- event: LiteEvent;- eventIndex: number;- receivedAt: string;- sequence: number;- sessionId: string;-};-type ComponentMetrics = {changedHooks: Map<number, number>;changedProps: Map<string, number>;@@ -103,7 +95,7 @@ const getComponentKey = (fiber: LiteFiberSummary) => {].join('\0');};-export const summarizeReactScanEvents = (events: StoredReactScanEvent[]) => {+export const summarizeReactScanEvents = (events: LiteEvent[]) => {const componentMetrics = new Map<string, ComponentMetrics>();const eventCounts = new Map<string, number>();const slowestCommits: Array<{@@ -126,8 +118,7 @@ export const summarizeReactScanEvents = (events: StoredReactScanEvent[]) => {}>();- for (const storedEvent of events) {- const event = storedEvent.event;+ for (const event of events) {eventCounts.set(event.kind, (eventCounts.get(event.kind) ?? 0) + 1);if (event.kind === 'profiling-hooks-status') {diff --git a/packages/bundler/src/react-scan-entry-point.ts b/packages/bundler/src/react-scan-entry-point.tsindex 1abd70c1cf..95f6917a56 100644--- a/packages/bundler/src/react-scan-entry-point.ts+++ b/packages/bundler/src/react-scan-entry-point.ts@@ -1,6 +1,4 @@-const endpointEnvName = 'REMOTION_REACT_SCAN_ENDPOINT';const entryPointEnvName = 'REMOTION_REACT_SCAN_ENTRY_POINT';-const sessionIdEnvName = 'REMOTION_REACT_SCAN_SESSION_ID';export const getReactScanEntryPoint = (environment: 'development' | 'production',@@ -9,19 +7,6 @@ export const getReactScanEntryPoint = (return null;}- const endpoint = process.env[endpointEnvName];const entryPoint = process.env[entryPointEnvName];- const sessionId = process.env[sessionIdEnvName];-- if (!endpoint && !entryPoint && !sessionId) {- return null;- }-- if (!endpoint || !entryPoint || !sessionId) {- throw new Error(- `${endpointEnvName}, ${entryPointEnvName}, and ${sessionIdEnvName} must be set together`,- );- }-- return entryPoint;+ return entryPoint ?? null;};diff --git a/packages/bundler/src/test/override-order.test.ts b/packages/bundler/src/test/override-order.test.tsindex 988b95af5b..3d47cbbae1 100644--- a/packages/bundler/src/test/override-order.test.ts+++ b/packages/bundler/src/test/override-order.test.ts@@ -60,14 +60,9 @@ test('applies the shared override before the Rspack override', async () => {});test('includes React Scan only in an explicitly enabled development bundle', async () => {- const previousEndpoint = process.env.REMOTION_REACT_SCAN_ENDPOINT;const previousEntryPoint = process.env.REMOTION_REACT_SCAN_ENTRY_POINT;- const previousSessionId = process.env.REMOTION_REACT_SCAN_SESSION_ID;- process.env.REMOTION_REACT_SCAN_ENDPOINT =- 'http://127.0.0.1:4321/ingest/test';process.env.REMOTION_REACT_SCAN_ENTRY_POINT ='/internal/react-scan/client.ts';- process.env.REMOTION_REACT_SCAN_SESSION_ID = 'test';try {const [, productionWebpackConfig] = await webpackConfig({@@ -125,22 +120,10 @@ test('includes React Scan only in an explicitly enabled development bundle', asy).toBe(true);}} finally {- if (previousEndpoint === undefined) {- delete process.env.REMOTION_REACT_SCAN_ENDPOINT;- } else {- process.env.REMOTION_REACT_SCAN_ENDPOINT = previousEndpoint;- }-if (previousEntryPoint === undefined) {delete process.env.REMOTION_REACT_SCAN_ENTRY_POINT;} else {process.env.REMOTION_REACT_SCAN_ENTRY_POINT = previousEntryPoint;}-- if (previousSessionId === undefined) {- delete process.env.REMOTION_REACT_SCAN_SESSION_ID;- } else {- process.env.REMOTION_REACT_SCAN_SESSION_ID = previousSessionId;- }}});diff --git a/packages/example/e2e/studio-lifecycle-webmcp.test.mts b/packages/example/e2e/studio-lifecycle-webmcp.test.mtsindex d1938eabaf..a05ac79255 100644--- a/packages/example/e2e/studio-lifecycle-webmcp.test.mts+++ b/packages/example/e2e/studio-lifecycle-webmcp.test.mts@@ -30,13 +30,10 @@ test('WebMCP records React Scan and controls the Studio lifecycle', async ({cwd: exampleDir,env: {...process.env,- REMOTION_REACT_SCAN_ENDPOINT:- 'http://127.0.0.1:9/react-scan-e2e-not-used',REMOTION_REACT_SCAN_ENTRY_POINT: path.resolve(exampleDir,'../.monorepo/react-scan/client.ts',),- REMOTION_REACT_SCAN_SESSION_ID: 'react-scan-e2e',},stdio: 'pipe',},