Templates: add invocation_id to browser creation; upgrade templates to Kernel SDK 0.35.0#116
Merged
dprevoznik merged 6 commits intomainfrom Feb 19, 2026
Merged
Conversation
Pass ctx.invocation_id when creating browsers in both TypeScript and Python yutori-computer-use templates so the dashboard can link browser sessions to invocations. - TS: SessionOptions.invocationId, passed to kernel.browsers.create() - TS: index.ts passes ctx.invocation_id to KernelBrowserSession - Python: KernelBrowserSession.invocation_id, passed to browsers.create() - Python: main.py passes ctx.invocation_id to KernelBrowserSession Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
…35.0 Co-authored-by: Cursor <[email protected]>
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
Changes
1. Invocation ID (4 commits)
SessionOptions/ session options includeinvocation_id;browsers.create()and action handlers receive it fromctx.invocation_id.kernel_sessionand both actions passinvocation_idinto browser creation.2. SDK upgrade (1 commit)
@onkernel/sdk@^0.35.0, Python templates usekernel>=0.35.0(yutori, gemini, anthropic, openagi computer-use).Templates touched
pkg/templates/typescript/{yutori,gemini,anthropic}-computer-use/pkg/templates/python/{yutori,gemini,anthropic,openagi}-computer-use/QA
Made with Cursor
Note
Low Risk
Template-only changes that mostly thread through an extra optional parameter and bump SDK versions; risk is limited to potential runtime incompatibilities if consumers rely on older SDK behavior.
Overview
Updates the Python and TypeScript computer-use templates (Anthropic, Gemini, Yutori, and OpenAGI) to pass
ctx.invocation_idthrough their session helpers intobrowsers.create(...), enabling browser sessions/replays to be linked back to the originating invocation.Bumps template dependencies to Kernel SDK
0.35.0(kernel>=0.35.0and@onkernel/sdk@^0.35.0) and adjusts TypeScript session typing/nullable assignments to accommodate the newer SDK response shapes.Written by Cursor Bugbot for commit edf1d67. This will update automatically on new commits. Configure here.