From 4fc8838730f5485abaa588c67b9ba382a612ab85 Mon Sep 17 00:00:00 2001 From: pedrohsdb Date: Wed, 26 Nov 2025 14:43:58 -0800 Subject: [PATCH] remove skip screenshot annotations experiment (#4111) --- skyvern/forge/agent.py | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py index a7bdbf55..1b1c037c 100644 --- a/skyvern/forge/agent.py +++ b/skyvern/forge/agent.py @@ -1763,43 +1763,6 @@ class ForgeAgent: return actions - async def _should_skip_screenshot_annotations(self, task: Task, draw_boxes: bool) -> bool: - """ - Check PostHog feature flag to determine if screenshot annotations should be skipped. - - Args: - task: The task being executed - draw_boxes: Current value indicating if boxes should be drawn - - Returns: - bool: True if annotations should be drawn, False if they should be skipped - """ - if not draw_boxes: # Only check if we were going to draw boxes - return draw_boxes - - try: - distinct_id = task.workflow_run_id if task.workflow_run_id else task.task_id - skip_annotations = await app.EXPERIMENTATION_PROVIDER.is_feature_enabled_cached( - "SKIP_SCREENSHOT_ANNOTATIONS", - distinct_id, - properties={"organization_id": task.organization_id}, - ) - if skip_annotations: - LOG.info( - "Skipping screenshot annotations per SKIP_SCREENSHOT_ANNOTATIONS feature flag", - task_id=task.task_id, - workflow_run_id=task.workflow_run_id, - ) - return False - except Exception: - LOG.warning( - "Failed to check SKIP_SCREENSHOT_ANNOTATIONS feature flag, using default behavior", - task_id=task.task_id, - exc_info=True, - ) - - return draw_boxes - async def _speculate_next_step_plan( self, task: Task, @@ -2306,9 +2269,6 @@ class ForgeAgent: draw_boxes = False scroll = False - # Check PostHog feature flag to skip screenshot annotations - draw_boxes = await self._should_skip_screenshot_annotations(task, draw_boxes) - return await scrape_website( browser_state, task.url,