Skip to content

[Bug] macOS: Browser connection fails with "Cannot read properties of undefined (reading 'url')" despite doctor showing success #58

@cuishiqing

Description

@cuishiqing

Environment

  • OS: macOS (Darwin 25.3.0)
  • opencli version: v0.9.5
  • @playwright/mcp: [运行 npm list -g @playwright/mcp 查看]
  • Node.js: [运行 node -v 查看]
  • Chrome: 已安装并运行
  • Playwright MCP Bridge: 已安装

Bug Description

opencli doctor --live 显示所有检查通过,但实际运行命令时报错连接浏览器。

Steps to Reproduce

  1. Install: sudo npm install -g @jackwener/opencli@0.9.5
  2. Setup: opencli setup (token detected successfully)
  3. Verify: opencli doctor --live → All checks passed
  4. Run: opencli bilibili hot --limit 10 -f json

Expected Behavior

Return Bilibili hot videos in JSON format

Actual Behavior

Error [BROWSER_CONNECT]: ### Error
TypeError: Cannot read properties of undefined (reading 'url')
Hint: Please check if the browser is running or if the Playwright MCP / CDP connection is configured correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions