v2.45.28

spider-rs/spiderv2.45.28Mar 2, 2026by j-mendez

AI Summary

Hardens agent capabilities by capping LLM-controlled durations, adding timeouts, and improving error handling for browser automation.

Key Highlights

  • Cap LLM-controlled durations for Wait, ClickHold, etc.
  • Add js_escape() for safe string interpolation
  • Wrap Navigate and screenshot calls with timeouts
  • Use PageWaitStrategy::Load instead of fixed sleep

New Features

  • Agent hardening with timeout controls
  • Safe JS string interpolation
  • Improved semaphore and logging diagnostics

Full Release Notes

### Agent Hardening

- Cap LLM-controlled durations (Wait, ClickHold, SetViewport, OpenPage)
- Add `js_escape()` for safe JS string interpolation in action handlers
- Wrap `Navigate` and screenshot calls with timeouts
- Use `PageWaitStrategy::Load` for `WaitForNavigation` instead of fixed sleep
- Replace `eval_with_timeout` for Fill/Type/Clear actions with error propagation
- Improve semaphore and logging diagnostics on error paths