-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Add Gemini CUA template #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Gemini CUA template #59
Conversation
Co-authored-by: null <>
|
Requesting review from @dprevoznik who has experience with the following files modified in this PR:
|
Mesa DescriptionDescriptionAdds a new Gemini computer-use example template to Create Kernel App, demonstrating Gemini 2.5's CUA capabilities with Stagehand. Implementation Checklist
Testing
Docs
Visual ProofRelated IssueFixes KERNEL-429 Additional NotesChanges
Description generated by Mesa. Update settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Performed full review of 7a08da2...cc51343
Analysis
-
Insufficient error handling, particularly around resource cleanup in failure scenarios, which could lead to resource leaks
-
Lack of defensive error handling when cleanup operations themselves fail, potentially causing secondary failures
-
While the integration with Kernel SDK, Stagehand, and Gemini 2.5 follows good architectural patterns, the error management across these integration points appears to be a weak spot
Tip
⚡ Quick Actions
This review was generated by Mesa.
Actions:
Slash Commands:
/review- Request a full code review/review latest- Review only changes since the last review/describe- Generate PR description. This will update the PR body or issue comment depending on your configuration/help- Get help with Mesa commands and configuration options
6 files reviewed | 0 comments | Review on Mesa | Edit Reviewer Settings
| async function runStagehandTask(invocationId?: string): Promise<SearchQueryOutput> { | ||
| // Executes a Computer Use Agent (CUA) task using Gemini 2.5 and Stagehand | ||
| // | ||
| // This function supports dual execution modes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tembo this section of comments is tool long. Can you leave the top comment in and remove "This function..." through "...Logs the result of the agent execution?"
|
I've removed the detailed function comments as requested, keeping only the top line that describes the Computer Use Agent functionality. |
Updated browser clean up process + added more robust error messasging to the output.
removed unused variable that was declared but not used.
Update dependencies for Kernel + Zod to fix viewport sizing.
…i-computer-use-example-to-create
masnwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
Adds a new Gemini computer-use example template to Create Kernel App, demonstrating Gemini 2.5's CUA capabilities with Stagehand.
Implementation Checklist
Testing
Docs
Visual Proof
Related Issue
Fixes KERNEL-429
Additional Notes
Changes
Introduced
gemini-cuatemplate, updatedindex.tsfor template options, invoke samples, and deployment. Addedtemplates/typescript/gemini-cuadirectory.Note
Introduces a TypeScript Gemini Computer Use Agent template using Stagehand and updates the CLI to support selection, deployment, and invocation.
templates/typescript/gemini-cua:index.ts), registers actiongemini-cua-task, and supports local run.README.md,package.json,tsconfig.json,_gitignore.index.ts):gemini-cuatoTemplateKey, constants, andTEMPLATES(TypeScript-only).kernel invoke ts-gemini-cua gemini-cua-task) and app name mapping (ts-gemini-cua).GOOGLE_API_KEYandOPENAI_API_KEYfor TypeScriptgemini-cua.--templateoption help text to includegemini-cua.Written by Cursor Bugbot for commit e570dea. This will update automatically on new commits. Configure here.