Skip to content

Comments

Templates: add invocation_id to browser creation; upgrade templates to Kernel SDK 0.35.0#116

Merged
dprevoznik merged 6 commits intomainfrom
add-invocation-id-templates
Feb 19, 2026
Merged

Templates: add invocation_id to browser creation; upgrade templates to Kernel SDK 0.35.0#116
dprevoznik merged 6 commits intomainfrom
add-invocation-id-templates

Conversation

@dprevoznik
Copy link
Contributor

@dprevoznik dprevoznik commented Feb 19, 2026

Summary

  • Pass invocation_id into browser creation for Yutori, Gemini, OpenAGI, and Anthropic computer-use templates so the dashboard can link browser sessions to invocations.
  • Upgrade templates to Kernel SDK 0.35.0 for those same templates.

Changes

1. Invocation ID (4 commits)

  • Yutori (TS + Python): SessionOptions / session options include invocation_id; browsers.create() and action handlers receive it from ctx.invocation_id.
  • Gemini (TS + Python): Same pattern.
  • OpenAGI (Python only): kernel_session and both actions pass invocation_id into browser creation.
  • Anthropic (TS + Python): Same pattern as Yutori/Gemini.

2. SDK upgrade (1 commit)

  • Upgrade templates to Kernel SDK 0.35.0: TypeScript templates use @onkernel/sdk@^0.35.0, Python templates use kernel>=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

  • Created, deployed, and invoked all 7 apps; all invokes succeeded.

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_id through their session helpers into browsers.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.0 and @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.

dprevoznik and others added 6 commits February 19, 2026 10:42
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]>
Copy link
Contributor

@masnwilliams masnwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dprevoznik dprevoznik merged commit 2ce4c7e into main Feb 19, 2026
2 checks passed
@dprevoznik dprevoznik deleted the add-invocation-id-templates branch February 19, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants