Files
chatgpt-on-wechat/docs/en/tools
zhayujie a0dfdb79df feat(browser): persistent login + CDP attach mode #2809
Browser sessions now reuse a Chromium user profile across runs by default
(`~/.cow/browser_profile`), so users only log in to a site once.
Three launch modes are selectable via `tools.browser` in config.json:
  - persistent (default): Playwright Chromium with a persistent user_data_dir
  - cdp: attach to an externally launched real Chrome via `cdp_endpoint`
    (full fingerprints, ideal for sites with strict bot detection)
  - fresh: clean context every run, set `persistent: false`

Also:
  - Self-heal when the user closes the browser window mid-session: detect
    closed page/context/browser via close listeners and exception scanning,
    then transparently relaunch on the next request.
  - Graceful CDP shutdown: disconnect only, never kill the user's Chrome.
  - Friendly errors when the CDP endpoint is unreachable or the persistent
    profile is locked, so the LLM can guide the user instead of looping.
  - Fix tool config being silently overwritten by workspace config in
    AgentInitializer; per-tool user settings (e.g. browser.cdp_endpoint)
    are now merged instead of replaced.
  - Update zh / en / ja docs with the new login-persistence section,
    including the Chrome 137+ requirement to pair --remote-debugging-port
    with a dedicated --user-data-dir.
2026-05-19 11:52:11 +08:00
..
2026-02-28 14:50:55 +08:00
2026-02-28 14:50:55 +08:00
2026-02-28 14:50:55 +08:00
2026-05-08 16:14:48 +08:00
2026-02-28 14:50:55 +08:00
2026-05-08 16:14:48 +08:00
2026-02-28 14:50:55 +08:00
2026-02-28 14:50:55 +08:00
2026-02-28 14:50:55 +08:00
2026-05-10 18:39:38 +08:00
2026-02-28 14:50:55 +08:00
2026-02-28 14:50:55 +08:00