Files
chrome-use/docs
Chris Tate 12d79e4428 add --color-scheme flag for persistent dark/light mode (#528)
Fixes #519. Playwright defaults `colorScheme` to `light` on all new contexts, overriding the browser/OS dark mode setting. This is especially disruptive in CDP mode, where every reconnection resets the scheme. The `set media dark` command also didn't persist its choice to new tabs or pages.

- Add `--color-scheme <dark|light|no-preference>` flag, config key (`colorScheme`), and env var (`AGENT_BROWSER_COLOR_SCHEME`)
- Store the preference in `BrowserManager` and automatically apply it to all new contexts (via Playwright's context option) and all new pages (via `page.emulateMedia` in `setupPageTracking`)
- `set media dark/light` now also persists its choice for subsequent pages and tabs
2026-02-23 01:50:17 -06:00
..
2026-02-22 16:09:37 -06:00
2026-01-13 02:54:56 -06:00
2026-02-11 14:17:53 -06:00
2026-01-13 02:54:56 -06:00
2026-02-09 12:10:40 -06:00
2026-02-22 16:09:37 -06:00
2026-02-22 16:09:37 -06:00
2026-01-13 02:54:56 -06:00
2026-01-13 02:54:56 -06:00