Skip to content

Commit d4188d7

Browse files
dprevoznikclaude
andcommitted
Pin OpenAI CUA template browser viewport to 1920x1080
The OpenAI template created the browser with no explicit viewport, leaving it on Kernel's default. Pin it to 1920x1080 to match the size the template targets (and cua-agent's coordinate fallback), keeping it consistent with the Anthropic (1280x800) and Gemini (1200x800) templates. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 2cd1555 commit d4188d7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • pkg/templates/typescript/openai-computer-use

pkg/templates/typescript/openai-computer-use/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ app.action<CuaInput, CuaOutput>(
2626
const start = Date.now();
2727
if (!payload?.task) throw new Error('task is required');
2828

29-
const browser = await kernel.browsers.create({ invocation_id: ctx.invocation_id });
29+
const browser = await kernel.browsers.create({
30+
invocation_id: ctx.invocation_id,
31+
viewport: { width: 1920, height: 1080 },
32+
});
3033
console.log('Kernel browser live view url:', browser.browser_live_view_url);
3134

3235
const replay = await maybeStartReplay(kernel, browser.session_id, {

0 commit comments

Comments
 (0)