feat: add browser state for generator

This commit is contained in:
Rohit
2025-03-12 17:00:25 +05:30
parent 8dcbb84c01
commit 8e80067b1d

View File

@@ -152,7 +152,7 @@ export class WorkflowGenerator {
});
socket.on('activeIndex', (data) => this.generatedData.lastIndex = parseInt(data));
socket.on('decision', async ({ pair, actionType, decision, userId }) => {
const id = browserPool.getActiveBrowserId(userId);
const id = browserPool.getActiveBrowserId(userId, "recording");
if (id) {
// const activeBrowser = browserPool.getRemoteBrowser(id);
// const currentPage = activeBrowser?.getCurrentPage();