local_browser_launch_options not propagated correctly; configurations not applied
Author: yd-ccccaiCreated Oct 11, 2025Updated Sep 24, 2026
Issue Description
In the connect_local_browser flow, only the explicitly enumerated keys in the launch_options dict are passed to playwright.chromium.launch_persistent_context. This design prevents any other user-supplied keys in local_browser_launch_options from being forwarded, even when those keys are valid Playwright context options. As a result, many legitimate options are silently dropped.
Additionally, there is a key-naming mismatch (camelCase vs snake_case). Even when a user provides a valid option, it can be ignored unless it appears in the small, manually curated mapping. This combination causes:
- Only the fields hard-coded into
launch_optionsto take effect. - All other keys in
local_browser_launch_optionsto be ignored. - Misleading behavior where user intent is overridden by defaults.
Source: browserbase/stagehand