Minor Changes
-
#1681
e3db9aaThanks @tkattkat! - Add cookie management APIs:context.addCookies(),context.clearCookies(), &context.cookies() -
#1672
b65756eThanks @seanmcguire12! - add boolean keepAlive parameter to allow for configuring whether the browser should be closed when stagehand.close() is called. -
#1708
176d420Thanks @seanmcguire12! - add context.setExtraHTTPHeaders() -
#1611
8a3c066Thanks @monadoid! - Usingmodeenum instead of oldcuaboolean in openapi spec -
#1632
afbd08bThanks @pirate! - Remove automatic.envloading viadotenv.If your app relies on
.envfiles, installdotenvand load it explicitly in your code:import dotenv from "dotenv"; dotenv.config({ path: ".env" });
Patch Changes
-
#1683
7584f3eThanks @seanmcguire12! - fix: include shadow DOM in .count() & .nth() & support xpath predicates -
#1644
1e1c9c1Thanks @monadoid! - Fix unhandled CDP detaches by returning the original sendCDP promise -
#1729
6bef890Thanks @shrey150! - fix: support Claude 4.6 (Opus and Sonnet) in CUA mode by using the correctcomputer_20251124tool version andcomputer-use-2025-11-24beta header -
#1647
ffd4b33Thanks @tkattkat! - Fix [Agent] - Address bug causing issues with continuing a conversation from past messages in dom mode -
#1614
677bff5Thanks @miguelg719! - Enforce - regex validation on act/observe for elementId -
#1580
65ff464Thanks @tkattkat! - Add unified variables support across act and agent with a single VariableValue type -
#1666
101bcf2Thanks @Kylejeong2! - add support for codex models -
#1728
0a94301Thanks @seanmcguire12! - handle potential race condition on.close()when using the Stagehand API -
#1664
b27c04dThanks @seanmcguire12! - fixes issue with context.addInitScript() where scripts were not being applied to out of process iframes (OOPIFs), and popup pages with same process iframes (SPIFs) -
#1624
0e8d569Thanks @seanmcguire12! - fix issue where screenshot masks were not being applied to dialog elements -
#1596
ff0f979Thanks @tkattkat! - Update usage/metrics handling in agent -
#1631
2d89d2bThanks @miguelg719! - Add right and middle click support to act and observe -
#1697
aac9a19Thanks @shrey150! - fix: support<frame>elements in XPath frame boundary detection soact()works on legacy<frameset>pages -
#1692
06de50fThanks @shrey150! - fix: skip piercer injection for chrome-extension:// and other non-HTML targets -
#1613
aa4d981Thanks @miguelg719! - SupportedUnderstudyAction Enum validation for 'method' on act/observe inference -
#1652
18b1e3bThanks @miguelg719! - Add support for gemini 3 flash and pro in hybrid/cua agent -
#1706
957d82bThanks @chrisreadsf! - Add GLM to prompt-based JSON fallback for models without native structured output support -
#1633
22e371aThanks @tkattkat! - Add warning when incorrect models are used with agents hybrid mode -
#1673
d29b91fThanks @miguelg719! - Add multi-region support for Stagehand API with region-specific endpoints -
#1695
7b4f817Thanks @tkattkat! - Fix: zod bug when pinning zod to v3 and using structured output in agent -
#1609
3f9ca4dThanks @miguelg719! - Add SupportedUnderstudyActions to observe system prompt -
#1581
49ead1eThanks @sameelarif! - Server-side caching is now available.When running
env: "BROWSERBASE", Stagehand automatically cachesact(),extract(), andobserve()results server-side — repeated calls with the same inputs return instantly without consuming LLM tokens.Caching is enabled by default and can be disabled via
serverCache: falseon the Stagehand instance or per individual call. Check out the browserbase blog for more details. -
#1642
3673369Thanks @seanmcguire12! - fix issue where scripts added via context.addInitScripts() were not being injected into new pages that were opened via popups (eg, clicking a link that opens a new page) and/or calling context.newPage(url) -
#1735
c465e87Thanks @monadoid! - Supports request header authentication with connectToMCPServer -
#1705
ae533e4Thanks @seanmcguire12! - include error cause in UnderstudyCommandException -
#1636
ea33052Thanks @miguelg719! - Include executionModel on the AgentConfigSchema -
#1679
5764edeThanks @shrey150! - fix issue where locator.count() was not working with xpaths that have attribute predicates -
#1646
f09b184Thanks @miguelg719! - Add user-agent to CDP connections -
#1637
a7d29deThanks @miguelg719! - Improve error and warning message for legacy model format -
#1685
d334399Thanks @tkattkat! - Bump ai sdk & google provider version -
#1662
44416daThanks @seanmcguire12! - fix issue where locator.fill() was not working on elements that require direct value setting -
#1612
bdd8b4eThanks @seanmcguire12! - fix issue where screenshot mask was only being applied to the first element that the locator resolved to. masks now apply to all matching elements.