Replaces static page statistics with dynamic calculations for
viewport and scroll position metrics. Simplifies code logic in
scroll handling by removing unnecessary defaults for page
scrolling. Improves readability and reliability of page
scroll operations by requiring explicit num_pages parameter.
Enhances page-view consistency and user interaction handling.
Replaces double quotes with single quotes for consistency in
string declarations. Removes unnecessary trailing whitespace
across various files to improve code readability and maintain
a uniform style.
Adds comprehensive page information including viewport and total
page dimensions, detailed scroll position, and page statistics.
Updates message prompts to utilize this data, improving content
presentation and potential user actions.
Relates to enhanced scrolling feature.
- Updated retry parameters for screenshot attempts to allow longer wait times and more retries.
- Added cleanup logic for conflicting browser processes in CI environments to prevent session conflicts.
- Improved error handling for browser session conflicts by retrying with a fresh user data directory.
- Increased timeout for page load state to ensure better reliability during loading operations.
- Commented out logging statements in `_is_debug_mode` to reduce verbosity.
- Simplified the usage of `@observe_debug` and `_lmnr_observe` decorators in `BrowserSession` by consolidating arguments into a single `kwargs` dictionary for better readability and maintainability.
- Added `@observe_debug` decorators to methods in `BrowserProfile` and `BrowserSession` to track display configuration, connection methods, and setup processes.
- Updated `eval/service.py` to initialize Laminar with specific disabled instruments and corrected the usage of the `observe` decorator for the `run_agent_with_browser` function.
- Added `@observe` decorators to various methods in `service.py`, `session.py`, and `controller.py` to improve tracking of actions and state changes.
- Updated method signatures to include observability features for better debugging and monitoring.
- Adjusted retry logic for certain actions to enhance reliability and performance.
- Increased step execution timeout from 60 seconds to 120 seconds for improved handling of longer operations.
- Reduced retry attempts in the screenshot logic from 3 to 2 to streamline error handling and reduce unnecessary retries.
- Updated timeouts for action execution, step processing, and screenshot operations to more aggressive values (e.g., reduced from 60s to 20s for actions, 30s to 10s for DOM processing).
- Adjusted retry logic and timeout settings for screenshot and iframe content extraction to enhance performance and reduce potential hangs.
- Improved logging for timeout events to provide clearer feedback on operation failures.
- Added timeout handling for DOM element extraction with a 30-second limit, logging a warning on timeout.
- Introduced a 10-second timeout for screenshot operations, with a warning logged if the operation exceeds this duration.
- Adjusted existing timeout values for screenshot retries and page load state to improve responsiveness.