@browserbasehq/stagehand breaking changes
Updated December 4, 2026
On this page
Latest version 4.5.0, released November 25, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.7.4 to 4.4.0: 673 breaking changes in 7 versions.
- From 3.7.0 to 4.4.0: 690 breaking changes in 10 versions.
@browserbasehq/stagehand 4.4.0 breaking changes
- Behavior changed
act
Variable substitution is skipped for drag-and-drop arguments passed to act(). Code that relied on substitution in those arguments must pass the final values directly. github.com - Behavior changed
browser.close
After disconnect(), calling browser.close() throws, so reconnect before closing. A launched local browser now receives Browser.close before it is terminated. github.com - Signature changed
LocalBrowserConnectOptionsSchema
Was const LocalBrowserConnectOptionsSchema: z.ZodObject<{cdpUrl: z.ZodString; headers: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodString>>>; extensionId: z.ZodOptional<z.ZodString>; extensionCdpUrl... npmjs.com
@browserbasehq/stagehand 4.3.0 breaking changes
- Behavior changed
Browserbase Model Gateway and cache requests are now routed through the connected SDK, which changes how these requests are sent. github.com - Default changed
Local Chromium versions newer than 157 now enable WebMCP by default. Code that depends on WebMCP being off must disable it explicitly. github.com - Configuration changed
Browserbase Model Gateway and cache requests now require client transport. Code that relied on the previous transport setup must be updated. github.com - Signature changed
LocalBrowserConnectOptionsSchema
Was const LocalBrowserConnectOptionsSchema: z.ZodObject<{cdpUrl: z.ZodString; extensionId: z.ZodOptional<z.ZodString>;}, z.core.$strict>; now const LocalBrowserConnectOptionsSchema: z.ZodObject<{cdpUrl: z.ZodString; headers... npmjs.com - Signature changed
StagehandClientCreateConfigSchema
Was const StagehandClientCreateConfigSchema: z.ZodObject<{apiKey: z.ZodOptional<z.ZodString>; systemPrompt: z.ZodOptional<z.ZodString>; cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{threshold... npmjs.com - Signature changed
StagehandCreateOptionsSchema
Was const StagehandCreateOptionsSchema: z.ZodObject<{apiKey: z.ZodOptional<z.ZodString>; systemPrompt: z.ZodOptional<z.ZodString>; cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{threshold... npmjs.com
@browserbasehq/stagehand 4.2.1 breaking changes
- Behavior changed
The TypeScript SDK now rejects empty or whitespace-containing model IDs, which were previously accepted. Make sure configured model IDs contain no spaces and are not empty. github.com - Signature changed
StagehandClientCreateConfigSchema
Was const StagehandClientCreateConfigSchema: z.ZodObject<{apiKey: z.ZodOptional<z.ZodString>; systemPrompt: z.ZodOptional<z.ZodString>; cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{threshold... npmjs.com - Signature changed
StagehandCreateOptionsSchema
Was const StagehandCreateOptionsSchema: z.ZodObject<{apiKey: z.ZodOptional<z.ZodString>; systemPrompt: z.ZodOptional<z.ZodString>; cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{threshold... npmjs.com
@browserbasehq/stagehand 4.2.0 breaking changes
- Signature changed
BrowserbaseConnectOptions
Was type BrowserbaseConnectOptions = z.input<typeof BrowserbaseConnectOptionsSchema>; now interface BrowserbaseConnectOptions extends z.input<typeof BrowserbaseConnectOptionsSchema>. npmjs.com - Signature changed
BrowserbaseConnectOptionsSchema
Was const BrowserbaseConnectOptionsSchema: z.ZodObject<{apiKey: z.ZodString; baseUrl: z.ZodDefault<z.ZodURL>; sessionId: z.ZodString; extensionId: z.ZodOptional<z.ZodString>;}, z.core.$strict>; now const BrowserbaseConnectOptionsSchema... npmjs.com - Signature changed
LocalBrowserConnectOptions
Was type LocalBrowserConnectOptions = z.infer<typeof LocalBrowserConnectOptionsSchema>; now interface LocalBrowserConnectOptions extends z.infer<typeof LocalBrowserConnectOptionsSchema>. npmjs.com - Signature changed
Locator.centroid
Was centroid(): Promise<LocatorCentroidResult>; now centroid(options?: LocatorOptions): Promise<LocatorCentroidResult>. npmjs.com - Signature changed
Locator.count
Was count(): Promise<number>; now count(options?: LocatorOptions): Promise<number>. npmjs.com - Signature changed
Locator.fill
Was fill(value: string): Promise<void>; now fill(value: string, options?: LocatorOptions): Promise<void>. npmjs.com - Signature changed
Locator.hover
Was hover(): Promise<void>; now hover(options?: LocatorOptions): Promise<void>. npmjs.com - Signature changed
Locator.innerHtml
Was innerHtml(): Promise<string>; now innerHtml(options?: LocatorOptions): Promise<string>. npmjs.com - Signature changed
Locator.innerText
Was innerText(): Promise<string>; now innerText(options?: LocatorOptions): Promise<string>. npmjs.com - Signature changed
Locator.inputValue
Was inputValue(): Promise<string>; now inputValue(options?: LocatorOptions): Promise<string>. npmjs.com
And 8 more in this version. Sign up to see every change
@browserbasehq/stagehand 4.1.0 breaking changes
- Removed
The redundant image type was removed from page screenshot protocol responses, so code reading that field may break. github.com - Removed
IncompatibleRuntimeCompatibility
IncompatibleRuntimeCompatibility was removed in @browserbasehq/stagehand 4.1.0 npmjs.com - Removed
StagehandRuntimeIncompatibleError.extensionProtocolVersion
StagehandRuntimeIncompatibleError.extensionProtocolVersion was removed in @browserbasehq/stagehand 4.1.0 npmjs.com - Removed
StagehandRuntimeIncompatibleError.extensionServerInfo
StagehandRuntimeIncompatibleError.extensionServerInfo was removed in @browserbasehq/stagehand 4.1.0 npmjs.com - Renamed
ReportedRuntime
Use ReportedRuntimeDescriptor instead. npmjs.com - Behavior changed
Python and Go SDKs now reject local Chrome debugging ports that are already in use instead of proceeding. github.com - Behavior changed
Protocol compatibility errors are now raised immediately instead of later on. github.com - Behavior changed
browser.close
browser.close() and browser.context.close() now always terminate the browser even when keepAlive is set. Code relying on keepAlive to keep the browser running after close must change. github.com - Behavior changed
browserbase.connect
browserbase.connect() now throws immediately when the extension is not present rather than failing later. github.com - Behavior changed
stagehand.close
stagehand.close() now keeps the browser running so another Stagehand instance can attach later, instead of closing it. github.com
And 9 more in this version. Sign up to see every change
@browserbasehq/stagehand 4.0.1 breaking changes
- Signature changed
StagehandClientCreateConfigSchema
Was const StagehandClientCreateConfigSchema: z.ZodObject<{apiKey: z.ZodOptional<z.ZodString>; systemPrompt: z.ZodOptional<z.ZodString>; cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{threshold... npmjs.com - Signature changed
StagehandCreateOptionsSchema
Was const StagehandCreateOptionsSchema: z.ZodObject<{apiKey: z.ZodOptional<z.ZodString>; systemPrompt: z.ZodOptional<z.ZodString>; cache: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{threshold... npmjs.com
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
@browserbasehq/stagehand 4.0.0 breaking changes
- Removed
__internalCreateInMemoryAgentCacheHandle
__internalCreateInMemoryAgentCacheHandle was removed in @browserbasehq/stagehand 4.0.0 npmjs.com - Removed
__internalMaybeRunShutdownSupervisorFromArgv
__internalMaybeRunShutdownSupervisorFromArgv was removed in @browserbasehq/stagehand 4.0.0 npmjs.com
And 620 more in this version.
@browserbasehq/stagehand 3.7.4 breaking changes
- Signature changed
Api.BrowserbaseBrowserSettingsSchema
Was const BrowserbaseBrowserSettingsSchema: z.ZodObject<{advancedStealth: z.ZodOptional<z.ZodBoolean>; blockAds: z.ZodOptional<z.ZodBoolean>; captchaImageSelector: z.ZodOptional<z.ZodString>; captchaInputSelector... npmjs.com - Signature changed
Api.BrowserbaseFingerprintSchema
Was const BrowserbaseFingerprintSchema: z.ZodObject<{browsers: z.ZodOptional<z.ZodArray<z.ZodEnum<{chrome: "chrome"; edge: "edge"; firefox: "firefox"; safari: "safari";}>>>; devices: z.ZodOptional<z.ZodArray<z.ZodEnum<{desktop: "desktop"... npmjs.com
And 2 more in this version.
@browserbasehq/stagehand 3.7.2 breaking changes
- Signature changed
Api.SessionStartRequestSchema
Was const SessionStartRequestSchema: z.ZodObject<{modelName: z.ZodString; domSettleTimeoutMs: z.ZodOptional<z.ZodNumber>; verbose: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>; systemPrompt... npmjs.com
@browserbasehq/stagehand 3.7.1 breaking changes
- Signature changed
Api.ActOptionsSchema
Was const ActOptionsSchema: z.ZodOptional<z.ZodObject<{model: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{modelName: z.ZodString; apiKey: z.ZodOptional<z.ZodString>; baseURL: z.ZodOptional<z.ZodString>; headers... npmjs.com - Signature changed
Api.ActRequestSchema
Was const ActRequestSchema: z.ZodObject<{input: z.ZodUnion<[z.ZodString, z.ZodObject<{selector: z.ZodString; description: z.ZodString; backendNodeId: z.ZodOptional<z.ZodNumber>; method: z.ZodOptional<z.ZodString>; arguments... npmjs.com
And 10 more in this version.
@browserbasehq/stagehand 3.7.0 breaking changes
- Signature changed
AVAILABLE_CUA_MODELS
Was const AVAILABLE_CUA_MODELS: readonly ["openai/gpt-5.4", "openai/gpt-5.4-mini", "openai/gpt-5.5", "openai/computer-use-preview", "openai/computer-use-preview-2025-03-11", "anthropic/claude-opus-4-5-20251101"... npmjs.com - Signature changed
default
Was const StagehandDefault: {V3: typeof V3; Stagehand: typeof V3; AnnotatedScreenshotText: string; LLMClient: typeof LLMClient; AgentProvider: typeof AgentProvider; modelToAgentProviderMap: Record<string, PublicApi.AgentType>... npmjs.com
And 2 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.