AIGenLab
EN

UPDATEstagehand @browserbasehq/stagehand@3.7.4

Stagehand 3.7.4 fixes occluded clicks and local CAPTCHA setup

Version & type@browserbasehq/stagehand@3.7.4 · Feature
In short

3.7.4 is a five-fix patch: clicks hit-test before firing and move when a footer or header covers the target, and CAPTCHA switches now apply to local Browserbase attachments. The rest fix act calls to OpenAI through the AI SDK, forced tool use on newer Claude models, and XPath under a shadow root.

What changed in this release

21 checkpoints in 5 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.

act action schema

  • OpenAI strict mode: the nullable act action schema now sets additionalProperties: false, so requests routed through the AI SDK are no longer rejected with a 400.
  • Parsing unchanged: extra fields are still stripped at parse time, so clients that validate locally keep accepting responses with extra fields.
  • Zod version split: the metadata is added only under Zod 4, because the Zod 3 converter already emits the field.
  • Regression coverage: unit tests check both the AI SDK and toJsonSchema converters, plus that parsing still strips unknown keys.

CAPTCHA awareness

  • Local attachments honor the switches: solveCaptchas and waitForCaptchaSolves under browserbaseSessionCreateParams now take effect for local attachments.
  • Explicit false disables it: false on either option turns awareness off; leaving them out keeps the Browserbase-on, local-off default.
  • Resolved early and forwarded: the option is resolved from constructor arguments before CDP initialization, then forwarded through the SDK session-start request and the standalone v3 server.
  • No new solving ability: ordinary local attachments still get no CAPTCHA solver, and solve events emitted before listeners attach stay unhandled.

Click targeting

  • Hit-test first: locator.click() no longer clicks the center blindly and checks whether the center is actually reachable.
  • Retry elsewhere: when a fixed footer or sticky header covers the center, the element is scrolled to the middle, end and start of the viewport and re-checked.
  • Off-center fallback: if the center is never reachable an off-center point is used; hits on a child, shadow root content or the label count as reaching the element.
  • Fully covered keeps the old behavior: if every point is covered it clicks the center as before and logs what is in the way.
  • Shared scope: click, hover and tap all use the new point, centroid() stays at the box center, and iframe offsets and transforms are handled as before.

Final model call

  • Automatic tool choice: the final done call no longer forces tool use on Claude Sonnet 5.5, Opus 5.5 and Fable 5.1.
  • Both model ID forms: bare IDs and anthropic/-prefixed IDs are both covered.
  • Plain-text replies: when the model answers with text only, the conservative incomplete result is kept instead of being treated as done.
  • Scope: only the final done request in the v3 DOM/hybrid agent changes; CUA stays on a separate path.

Element resolution

  • XPath fallback: when both the composed and shadow-hop traversals find 0 matches, native XPath is tried once more.
  • Narrow trigger: it only fires when there are no matches at all, not on an out-of-range index.
  • Clear boundary: native XPath cannot cross a shadow boundary, so shadow paths that already resolve return the same result.
  • Regression case: on a page whose host overrides children, locator(xpath).count() must return 1.

Read the original announcement

On this page
  1. Release inventory
  2. This patch touches two st…
  3. act calls to OpenAI throu…
  4. Local attachments read th…
  5. Buttons under a fixed foo…
  6. The last step for newer C…
  7. XPath still finds light D…
  8. On the same step
  9. Against the previous 3.7.7
  10. Release analysis
  11. Questions
  12. Sources & method

ContextThis patch touches two steps: sending the request and clicking the element

Five fixes, one per layer: action schema, CAPTCHA switches, click point, final model call and element resolution. Call sites do not change.

Three groups feel it first: act calls to OpenAI through the AI SDK that keep getting rejected, local Browserbase attachments that ignore CAPTCHA switches, and pages where a fixed footer or sticky header pushes clicks elsewhere.

The changes fall into 5 groups: act action schema, CAPTCHA awareness, click targeting, the final model call and element resolution. The chart below lays them out side by side; the sections after it take each group in turn.

How the five groups of changes spread out: action schema, CAPTCHA awareness, click targeting, the final model call and element resolution, 4 to 5 items each, in announcement order.
Where the 21 items land across five groupsWhere the 21 items land across five groupsact action schema4CAPTCHA awareness4Click targeting5Final model call4Element resolution4
AIGenLab original

act calls to OpenAI through the AI SDK stop failing strict mode

  1. What changed: the nullable act action schema now sets additionalProperties: false, so OpenAI strict mode no longer rejects AI SDK requests.
  2. What you do: teams calling OpenAI through the AI SDK rerun one act case after upgrading and confirm the path that returned 400 now returns an action.
  3. Boundary: only the JSON schema changes; parsing still strips unknown keys, and Zod 3 skips it since its converter already emits the field.

Local attachments read the CAPTCHA switches, and only an explicit false turns them off

  1. What changed: local attachments now read solveCaptchas and waitForCaptchaSolves, and false on either option turns awareness off.
  2. What you do: on a local Browserbase attachment, confirm both CAPTCHA options are intentional; leaving them out keeps the defaults.
  3. Boundary: no CAPTCHA solver is added; solve events before listeners attach stay unhandled, and waiting and solved notices behave as before.

Buttons under a fixed footer or sticky header now get the click

  1. What changed: clicks hit-test first, so a center covered by a fixed footer or sticky header no longer receives the click.
  2. What you do: add the buttons and checkboxes that used to miss into a regression case and confirm the click lands on the target after upgrading.
  3. Boundary: when every point is covered it still clicks the center and logs the obstruction; centroid() stays at the box center and is unaffected.

The last step for newer Claude models no longer forces a tool call

  1. What changed: the final done call uses automatic tool choice for Claude Sonnet 5.5, Opus 5.5 and Fable 5.1 instead of forcing a tool call.
  2. What you do: teams on those models rerun the finishing step that used to fail and confirm the task ends normally.
  3. Boundary: only the final request in the v3 DOM/hybrid agent changes; a text-only reply still counts as incomplete, and CUA stays on a separate path.

XPath still finds light DOM elements when a component library overrides children

  1. What changed: when both the composed and shadow-hop traversals find 0 matches, native XPath is tried once more.
  2. What you do: teams locating light DOM by XPath add a count assertion and confirm a page whose host overrides children returns 1 instead of 0.
  3. Boundary: it fires only when there are no matches at all, not on an out-of-range index; native XPath cannot cross a shadow boundary.

On the same step, browser-use has the model write code while Skyvern hands clicks to a selector or an AI prompt

Who decides the click point, and what catches a click that fails. Stagehand decides before clicking, browser-use has the model write a Python cell per step and click by accessibility-tree id over CDP, and Skyvern hands the click to a selector or an AI prompt.

For a strict schema plus control over the click point, take Stagehand. With selector assets in place and an AI fallback wanted, Skyvern's click is more direct. To let the model write the action as code, browser-use is more flexible.

Four rows: action schema, CAPTCHA switches, click and location, and how the final step wraps up. Click and location share a row because all three locate the target before dispatching the click. In the last row, Stagehand's first clause is the tool-choice switch and the second the new ending condition. Rows follow the first four items, with #3287's fallback in the click row.

Updatebrowser-use 1.0.6Skyvern v1.0.58@browserbasehq/stagehand@3.7.4
How the action is validatedOne Python cell per step; the action runs as code, no fixed action JSONact takes a prompt and returns NoneadditionalProperties: false on the nullable act action; parsing still strips unknown keys
CAPTCHA switchescaptcha_solver defaults to True; cloud only; False on a local browser raisesextensions takes captcha-solver, Cloud only, EnterpriseLocal attachments read solveCaptchas and waitForCaptchaSolves; explicit false turns it off
How a click is issued and locatedThe model's Python cell clicks by accessibility-tree id over CDP; the documented example is bu.click(41)click takes a CSS selector, an AI prompt or both; direct mode is a plain Playwright clickHit-test the point first; native XPath when both traversals find 0 matches
How the final step wraps uprun() returns when the model calls finishagent.run_task returns a TaskRunResponse; hitting max_steps ends the run as failed, and timeout defaults to 1800 secondsAutomatic tool choice for the done call; a text-only reply still counts as incomplete

Against the previous 3.7.7, the new item is the click point

The previous announcement is stagehand-server-v3/v3.7.7 (2026-10-23), and its list already carries #3150, #3114, #3132 and #3287. Of the five items in 3.7.4, four come from the same pull requests (#3150, #3114, #3132, #3287); the addition is #3491. The left column is the previous release, the right column is this one.

The four shared fixes read the same in both announcements, and the difference sits in the last row: the earlier release clicks the center, this one hit-tests first. Teams already on v3.7.7 need this release only for covered clicks; earlier versions take all five.

Featurev3.7.7 · 2026-10-23v3.7.4
Strict schema for the nullable act action#3150: additionalProperties false on the nullable act action#3150: sets additionalProperties: false; parsing still strips unknown keys
CAPTCHA switches for local attachments#3114: honor CAPTCHA awareness options for local attachments#3114: local attachments read solveCaptchas and waitForCaptchaSolves
done call for newer Claude models#3132: avoid forced done tool use for newer Claude models#3132: automatic tool choice
XPath under a shadow root#3287: XPath fallback when the page has a shadow root#3287: native XPath when both traversals find 0 matches
Click point on partly covered elementsNo such item: the click still lands on the center#3491: hit-test, scroll and retest, off-center fallback

Release analysisUpgrade the SDK, rerun act, then add a covered-click case

Three groups are affected most: teams calling OpenAI through the AI SDK, teams on local Browserbase attachments that rely on CAPTCHA awareness, and pages with a fixed footer or sticky header. Station view, not independently tested: teams on hosted Browserbase only, with no covered elements and no XPath lookups can wait for the next release.

browser-use 1.0.6 hands the action to a Python cell the model writes, and Skyvern v1.0.58 keeps a direct mode that performs a plain Playwright click. Stagehand moves the decision into the SDK.

Station view, not independently tested: run the act regression first, then add a covered-click case, then check the CAPTCHA switches. To have Browserbase solve CAPTCHAs on a local attachment, do not write solveCaptchas: false, which turns awareness off.

For handovers, record which act path recovered, which covered button now clicks through, and the final switch values.

AIGenLab views

Not independently tested

Upgrading the SDK, rerunning act, then adding a covered-click case and finally checking the CAPTCHA switches is the cheapest acceptance order for this release.

Station view, not independently tested: the three fixes sit on the request, the click and the switches; the first fails loudly, while the other two show up only as a shifted click or an ignored switch.

Teams that only run on hosted Browserbase and have no covered elements can wait for the next regular release.

Station view, not independently tested: four of the five fixes only trigger on local attachments, AI SDK routing, newer Claude models or shadow-root pages.

Teams locating light DOM by XPath should upgrade for #3287 alone and add a count assertion on pages whose host overrides children.

Station view, not independently tested: the fallback only fires when both traversals find 0 matches, so normal pages are unaffected and the cost is one assertion.

Questions

Do I need to change call sites to move to 3.7.4?
No. The act fix for OpenAI through the AI SDK and the CAPTCHA switches on local attachments are behavior fixes, so rerun the paths that used to fail after upgrading.
Is CAPTCHA awareness on or off by default on a local Browserbase attachment?
Leaving both options out keeps the old default: on for Browserbase, off locally. An explicit false turns awareness off.
Does 3.7.4 make a local attachment solve CAPTCHAs itself?
No. Ordinary local attachments gain no solver; the patch forwards the awareness switch through the session-start request and the standalone v3 server.
I am already on v3.7.7. Do I still need 3.7.4?
Only the covered-click fix is new. If a fixed footer or sticky header covers buttons and clicks land elsewhere, upgrade; otherwise you can wait for the next regular release.

Official sources and scope

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.