fix(integrations): harden live browser tools - #2687
Draft
shrey150 wants to merge 3 commits into
Draft
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nullvalues before invoking MCP tools sorun({ code })satisfies the codemode schemaExtensions.loadUnpackedCDP responses into an actionable compatible-Chrome errorEnd-to-end evidence
Using a public
https://example.comtask and a real Browserbase browser, I exercisedrun,snapshot, andscreenshotthrough:All six paths navigated successfully, returned the expected title/snapshot, and produced a PNG. The Eve keep-alive session used by the smoke test was explicitly released.
A local-browser smoke test also verified the new settings reach the launcher. The only Chromium available in the test host was Playwright's bundled build, which returns
Method not availableforExtensions.loadUnpacked; this PR now explains that a compatible Chrome build is required instead of surfacing the raw CDP error.Verification
Summary by cubic
Hardens live browser tools across integrations. Adds headless/executable/sandbox controls for local Chrome with env validation, clarifies unsupported extension-loading errors, and drops CrewAI nulls before MCP calls.
New Features
STAGEHAND_HEADLESS,STAGEHAND_CHROME_PATH,STAGEHAND_CHROMIUM_SANDBOXin TS core anddeepagents; local mode can run headless, pick an executable, and toggle the sandbox.crewai,deepagents,eve,mastra, andvercel-ai.Bug Fixes
crewai: omitNonevalues before MCP tool calls sorun({ code })matches the schema.sdk-ts: convert"Extensions.loadUnpacked"“method not found/available” responses into a clear “incompatible Chrome build” error.Written for commit 6793c7d. Summary will update on new commits.