Skip to content

Commit 15efe99

Browse files
committed
fix(desktop): type the computer-use params omit over the whole input union
1 parent 49ab559 commit 15efe99

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/desktop/src/main/computer-use/service.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,10 @@ export class ComputerUseService {
243243
? { includeScreenshot: input.includeScreenshot }
244244
: {}),
245245
}
246+
const fields: Record<string, unknown> = input
246247
const params = isMutation
247-
? omit(input, ['action', 'observeAfter', 'includeScreenshot'])
248-
: omit(input, ['action'])
248+
? omit(fields, ['action', 'observeAfter', 'includeScreenshot'])
249+
: omit(fields, ['action'])
249250
let result: ComputerUseResult
250251
try {
251252
result = await this.deps.native.request(input.action, params)

0 commit comments

Comments
 (0)