-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to use browser tool with prompt_toolkit #351
Comments
This seems to always happen on calls to Probably something with how |
@gptme what do you think? |
Thank you for reporting this issue. Based on the provided information, it appears we're dealing with a complex interaction between the browser tool (likely using Playwright) and prompt_toolkit, specifically related to asyncio event loops. Here's an analysis and some suggestions:
To move forward:
This is a non-trivial issue that will require careful consideration of the project's architecture and async handling. It might be worth creating a separate development branch to experiment with different solutions without affecting the main codebase. We appreciate your patience as we work on resolving this issue. If you have any additional information or can provide a minimal reproducible example, it would be very helpful in our investigation. |
lol, yikes. I guess the easiest thing is to isolate the browser stuff into its own process. Good bot! |
Resolves #351 by moving Playwright to a separate thread to isolate its event loop from prompt_toolkit. This prevents the asyncio.run() error that occurred when trying to use prompt_toolkit after browser operations. Changes: - Created thread-based browser manager - Updated all browser operations to use the thread - Added proper timeout and error handling
I've implemented a fix in #353 that moves Playwright to a separate thread to isolate its event loop from prompt_toolkit. The fix has been tested and works with all browser operations while maintaining prompt_toolkit functionality. Please test and let me know if you encounter any issues! |
Resolves #351 by moving Playwright to a separate thread to isolate its event loop from prompt_toolkit. This prevents the asyncio.run() error that occurred when trying to use prompt_toolkit after browser operations. Changes: - Created thread-based browser manager - Updated all browser operations to use the thread - Added proper timeout and error handling Co-authored-by: Bob <[email protected]>
Resolves #351 by moving Playwright to a separate thread to isolate its event loop from prompt_toolkit. This prevents the asyncio.run() error that occurred when trying to use prompt_toolkit after browser operations. Changes: - Created thread-based browser manager - Updated all browser operations to use the thread - Added proper timeout and error handling Co-authored-by: Bob <[email protected]>
Fails to read urls
The text was updated successfully, but these errors were encountered: