We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff8d0c1 commit e175217Copy full SHA for e175217
pkg/templates/typescript/openai-computer-use/lib/kernel-computer.ts
@@ -260,7 +260,14 @@ function isBatchComputerActionType(actionType: string): boolean {
260
}
261
262
function pressKeyAction(keys: string[], holdKeys?: string[]): BatchAction {
263
- return { type: 'press_key', press_key: normalizeKeypressPayload(keys, holdKeys) };
+ const normalized = normalizeKeypressPayload(keys, holdKeys);
264
+ return {
265
+ type: 'press_key',
266
+ press_key: {
267
+ keys: normalized.keys,
268
+ ...(normalized.holdKeys.length > 0 ? { hold_keys: normalized.holdKeys } : {}),
269
+ },
270
+ };
271
272
273
function gotoBatchActions(url: string): BatchAction[] {
0 commit comments