You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -209,6 +221,43 @@ MyCoder follows the [Conventional Commits](https://www.conventionalcommits.org/)
209
221
210
222
For more details, see the [Contributing Guide](CONTRIBUTING.md).
211
223
224
+
## Browser Automation
225
+
226
+
MyCoder uses Playwright for browser automation, which is used by the `sessionStart` and `sessionMessage` tools. By default, Playwright requires browsers to be installed separately via `npx playwright install`.
227
+
228
+
### System Browser Detection
229
+
230
+
MyCoder now includes a system browser detection feature that allows it to use your existing installed browsers instead of requiring separate Playwright browser installations. This is particularly useful when MyCoder is installed globally.
231
+
232
+
The system browser detection:
233
+
234
+
1. Automatically detects installed browsers on Windows, macOS, and Linux
235
+
2. Supports Chrome, Edge, Firefox, and other browsers
236
+
3. Maintains headless mode and clean session capabilities
237
+
4. Falls back to Playwright's bundled browsers if no system browser is found
238
+
239
+
### Configuration
240
+
241
+
You can configure the browser detection in your `mycoder.config.js`:
242
+
243
+
```js
244
+
exportdefault {
245
+
// Other configuration...
246
+
247
+
// System browser detection settings
248
+
browser: {
249
+
// Whether to use system browsers or Playwright's bundled browsers
250
+
useSystemBrowsers:true,
251
+
252
+
// Preferred browser type (chromium, firefox, webkit)
0 commit comments