chore: follow up on tab snapshot capture (#739)

This commit is contained in:
Pavel Feldman 2025-07-22 17:43:42 -07:00 committed by GitHub
parent 601a74305c
commit 6320b08173
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 80 additions and 101 deletions

View file

@ -40,10 +40,10 @@ const uploadFile = defineTabTool({
response.addCode(`// Select files for upload`);
response.addCode(`await fileChooser.setFiles(${JSON.stringify(params.paths)})`);
await tab.run(async () => {
tab.clearModalState(modalState);
await tab.waitForCompletion(async () => {
await modalState.fileChooser.setFiles(params.paths);
tab.clearModalState(modalState);
}, response);
});
},
clearsModalState: 'fileChooser',
});