chore: follow up on tab snapshot capture (#739)
This commit is contained in:
@@ -39,12 +39,12 @@ const handleDialog = defineTabTool({
|
||||
throw new Error('No dialog visible');
|
||||
|
||||
tab.clearModalState(dialogState);
|
||||
await tab.run(async () => {
|
||||
await tab.waitForCompletion(async () => {
|
||||
if (params.accept)
|
||||
await dialogState.dialog.accept(params.promptText);
|
||||
else
|
||||
await dialogState.dialog.dismiss();
|
||||
}, response);
|
||||
});
|
||||
},
|
||||
|
||||
clearsModalState: 'dialog',
|
||||
|
||||
Reference in New Issue
Block a user