Update contextId for close browser utility.

This commit is contained in:
Visagan Guruparan 2025-07-10 15:55:55 -05:00
parent 16300b9a1d
commit b9c7f63249

View file

@ -28,7 +28,7 @@ public class UtilWebCloseBrowserFn : IFunctionCallback
ContextId = webDriverService.GetMessageContext(message)
};
await browser.CloseBrowser(message.CurrentAgentId);
await browser.CloseBrowser(msg.ContextId);
message.Content = $"Browser closed.";