use run_id for fullpage screenshot flag (#2717)
Some checks are pending
Run tests and pre-commit / Run tests and pre-commit hooks (push) Waiting to run
Run tests and pre-commit / Frontend Lint and Build (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run

This commit is contained in:
Shuchang Zheng 2025-06-14 01:44:39 -07:00 committed by GitHub
parent 775da18878
commit 15573836ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -310,7 +310,8 @@ class Block(BaseModel, abc.ABC):
screenshot = await browser_state.take_fullpage_screenshot(
use_playwright_fullpage=app.EXPERIMENTATION_PROVIDER.is_feature_enabled_cached(
"ENABLE_PLAYWRIGHT_FULLPAGE",
str(organization_id),
workflow_run_id,
properties={"organization_id": str(organization_id)},
)
)
if screenshot:
@ -580,7 +581,8 @@ class BaseTaskBlock(Block):
screenshot = await browser_state.take_fullpage_screenshot(
use_playwright_fullpage=app.EXPERIMENTATION_PROVIDER.is_feature_enabled_cached(
"ENABLE_PLAYWRIGHT_FULLPAGE",
str(organization_id),
workflow_run_id,
properties={"organization_id": str(organization_id)},
)
)
if screenshot: