Open
Conversation
created a stagehand v3 version of this script to potentially update the repo to use that version of the gemini computer use agent harness.
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.
created a stagehand v3 version of this script to potentially update the repo to use that version of the gemini computer use agent harness.
Note
Medium Risk
Moderate risk because it upgrades major SDK versions and changes the core agent/browser initialization and teardown paths, which could alter runtime behavior or break compatibility at execution time.
Overview
Upgrades dependencies to
@browserbasehq/stagehandv3 and@onkernel/sdkv0.30, and updates the automation script to use Stagehand v3’s CUA agent API (Google model config viamode: "cua"+modelName, dropping the Stagehand OpenAI model configuration).The runtime now sets explicit viewport sizing for both Kernel browser creation and Stagehand connection, switches page acquisition to
stagehand.context.pages()[0], and ensures browser/Stagehand teardown always runs viatry/catch/finally.Docs and env templates are updated to remove
OPENAI_API_KEYand reflect the new two-key setup (KERNEL_API_KEY,GOOGLE_API_KEY).Written by Cursor Bugbot for commit a0e4791. This will update automatically on new commits. Configure here.