-
Notifications
You must be signed in to change notification settings - Fork 44
Browsers via playwright need to be manually installed. #333
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
Comments
Research Findings and Implementation ProposalI've researched the issue with Playwright browser detection when mycoder is installed globally. Here's what I found and my proposed solution: Key Findings
Proposed Implementation
I've created a detailed implementation proposal with code examples. Let me know if you'd like to proceed with this approach! |
This change allows mycoder to detect and use system-installed browsers instead of requiring Playwright's bundled browsers to be installed. It improves the experience when mycoder is installed globally via npm. - Add BrowserDetector module for cross-platform browser detection - Update SessionManager to use detected system browsers - Add configuration options for browser preferences - Update documentation in README.md - Maintain compatibility with headless mode and clean sessions Fixes #333
# [mycoder-agent-v1.6.0](mycoder-agent-v1.5.0...mycoder-agent-v1.6.0) (2025-03-21) ### Features * **browser:** add system browser detection for Playwright ([00bd879](00bd879)), closes [#333](#333)
🎉 This issue has been resolved in version mycoder-agent-v1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [mycoder-v1.6.0](mycoder-v1.5.0...mycoder-v1.6.0) (2025-03-21) ### Features * **browser:** add system browser detection for Playwright ([00bd879](00bd879)), closes [#333](#333)
🎉 This issue has been resolved in version mycoder-v1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Problem Description
When mycoder is installed globally via
npm install -g mycoder
, users encounter issues with the browser automation functionality. This is because Playwright (the library used for browser automation) requires browsers to be installed separately, and these browsers are not automatically installed with the global npm installation.Current Implementation
Currently, mycoder uses Playwright's built-in browser management, which expects browsers to be installed via Playwright's own installation mechanism. The SessionManager in the agent package launches Chrome using:
This expects Playwright's Chrome browser to be installed, which doesn't happen automatically with a global npm installation.
Proposed Solution
We should modify the browser automation to detect and use system-installed browsers (Chrome, Edge, Firefox, or Safari) instead of relying on Playwright's own browser installations. The solution should:
This would eliminate the need for users to manually install browsers after installing mycoder globally.
The text was updated successfully, but these errors were encountered: