Recently shipped Stagehand server v3.7.x fixes, including tighter iframe coordinates, a shadow-root fallback, and CAPTCHA awareness for local attachments.
Stagehand on 3.x builds now drop the browse package, a breaking change for anything that imports it. If you rely on browse from server-v3, pull it in separately or pin to an earlier release. Alongside that removal, page interaction fixes landed:
- Pages with a shadow root fall back to XPath when standard selectors fail.
- Coordinates inside iframes now build correct cross-frame XPaths.
- CUA coordinates normalize to the actual viewport.
- CAPTCHA awareness options are now honored for local attachments.
Newer Claude models no longer get forced into done tool use during act(). Structured output also keeps its provider setting, and v3 exposes a useTouch option for touch-based interactions.
Agent runs can pause for human review. A natural-language pauseWhen condition puts a run into PAUSED mid-execution, and a follow-up task resumes it in the same session.
Functions gained Secrets and Webhooks. Credentials and API keys are stored in Browserbase and read at runtime from the Function's ctx, keeping them out of code and logs. Webhook subscriptions cover pending, running, completed, and failed events.
Earlier ship: Stagehand 4.2 added WebMCP hooks for tools that appear and disappear as the page changes, native PDF exports through page.pdf(), and default locator and snapshot timeouts of 20s (timeout: 0 disables them).