@@ -1074,6 +1074,10 @@ export async function executeRenderJob(
10741074 fileServer = probeResult . fileServer ;
10751075 probeSession = probeResult . probeSession ;
10761076 lastBrowserConsole = probeResult . lastBrowserConsole ;
1077+ let resolvedCaptureBeyondViewport = probeSession ?. options . captureBeyondViewport ;
1078+ if ( resolvedCaptureBeyondViewport !== undefined ) {
1079+ updateCaptureObservability ( { captureBeyondViewport : resolvedCaptureBeyondViewport } ) ;
1080+ }
10771081 // The probe stage produces `duration` / `totalFrames` values; the
10781082 // sequencer owns the `RenderJob` and writes them onto it.
10791083 job . duration = probeResult . duration ;
@@ -1213,11 +1217,13 @@ export async function executeRenderJob(
12131217 quality : needsAlpha ? undefined : job . config . quality === "draft" ? 80 : 95 ,
12141218 variables : job . config . variables ,
12151219 deviceScaleFactor,
1216- captureBeyondViewport : composition . videos . length > 0 ,
1220+ ... ( composition . videos . length > 0 ? { captureBeyondViewport : true } : { } ) ,
12171221 } ;
1218- updateCaptureObservability ( {
1219- captureBeyondViewport : captureOptions . captureBeyondViewport ?? false ,
1220- } ) ;
1222+ resolvedCaptureBeyondViewport =
1223+ captureOptions . captureBeyondViewport ?? resolvedCaptureBeyondViewport ;
1224+ if ( resolvedCaptureBeyondViewport !== undefined ) {
1225+ updateCaptureObservability ( { captureBeyondViewport : resolvedCaptureBeyondViewport } ) ;
1226+ }
12211227
12221228 // Capture sessions do not need native browser metadata for videos whose
12231229 // pixels come from out-of-band FFmpeg frame extraction. Waiting on those
@@ -1442,7 +1448,7 @@ export async function executeRenderJob(
14421448 observability . checkpoint ( "capture_strategy" , "resolved" , {
14431449 workerCount,
14441450 forceScreenshot : captureForceScreenshot ,
1445- captureBeyondViewport : captureOptions . captureBeyondViewport ?? false ,
1451+ captureBeyondViewport : resolvedCaptureBeyondViewport ?? null ,
14461452 useStreamingEncode,
14471453 useLayeredComposite,
14481454 usePageSideCompositing : usePageSideCompositingForTransitions ,
@@ -1592,6 +1598,11 @@ export async function executeRenderJob(
15921598 streamingHandled = true ;
15931599 workerCount = streamingRes . workerCount ;
15941600 updateCaptureObservability ( { workerCount } ) ;
1601+ if ( streamingRes . captureBeyondViewport !== undefined ) {
1602+ updateCaptureObservability ( {
1603+ captureBeyondViewport : streamingRes . captureBeyondViewport ,
1604+ } ) ;
1605+ }
15951606 probeSession = streamingRes . probeSession ;
15961607 lastBrowserConsole = streamingRes . lastBrowserConsole ;
15971608 perfStages . captureMs = Date . now ( ) - stage4Start ;
@@ -1637,6 +1648,11 @@ export async function executeRenderJob(
16371648 const captureFrameMs = Date . now ( ) - captureFrameStart ;
16381649 workerCount = captureRes . workerCount ;
16391650 updateCaptureObservability ( { workerCount } ) ;
1651+ if ( captureRes . captureBeyondViewport !== undefined ) {
1652+ updateCaptureObservability ( {
1653+ captureBeyondViewport : captureRes . captureBeyondViewport ,
1654+ } ) ;
1655+ }
16401656 probeSession = captureRes . probeSession ;
16411657 lastBrowserConsole = captureRes . lastBrowserConsole ;
16421658
0 commit comments