From 27955ca8fb48c038ce24c9ecc74e8c956d2b060f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 5 Mar 2026 20:50:34 +0000 Subject: [PATCH] docs: clarify force viewport resizing during replay playback Co-authored-by: Rafael --- browsers/viewport.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browsers/viewport.mdx b/browsers/viewport.mdx index 0b2b752..8a1fb43 100644 --- a/browsers/viewport.mdx +++ b/browsers/viewport.mdx @@ -231,13 +231,13 @@ await kernel.browsers.update(kernel_browser.session_id, viewport={"width": 1024, There are important limitations when changing the viewport: -- **Headful browsers**: You can't resize the viewport while [live view](/browsers/live-view) is active or while a [replay](/browsers/replays) is actively recording unless you set the `force` flag to `true`. +- **Headful browsers**: You can't resize the viewport while [live view](/browsers/live-view) is active or while a [replay](/browsers/replays) recording is active unless you set the `force` flag to `true`. - **Headless browsers**: Changing the viewport triggers a Chromium restart, which takes several seconds and may disrupt active CDP connections. -### Force resizing during recording +### Force resizing during replay playback -If you need to resize the viewport while a replay is actively recording, set `force` to `true` in the update request. This stops the current recording, resizes the viewport, and restarts the recording — resulting in multiple replay segments for the session. +If you need to resize the viewport while replay playback is active, set `force` to `true` in the update request. Kernel stops the active recording or replay process, applies the new viewport, and then restarts it. This creates multiple replay segments for the same browser session. ```typescript Typescript/Javascript