Skip to content

doctor: false negative for OpenCLI extension loaded as unpacked in Edge (not Chrome) #513

Description

@BreezeDoo

Summary

agent-reach doctor --json reports the OpenCLI extension as "not installed" for reddit / facebook / instagram / xiaohongshu, even though the extension is installed and connected. In this setup the extension is loaded as an unpacked extension in Microsoft Edge (developer mode), not installed from the Chrome Web Store into Chrome.

Environment

  • agent-reach v1.5.0 (Windows 11)
  • OpenCLI v1.8.6, extension v1.0.22
  • Extension loaded as unpacked in Edge dev mode (files at ~/.opencli/extension/)
  • Google Chrome is installed but has no User Data directory (never initialized)

What doctor reports

For reddit / facebook / instagram / xiaohongshu:

status: warn
message: "OpenCLI 已安装,但 Chrome 扩展未安装。 1. 安装扩展(需手动点一次):https://chromewebstore.google.com/... 2. 保持 Chrome 打开,运行 `opencli doctor` 验证"

What's actually true

opencli doctor confirms everything is healthy:

[OK] Daemon: running on port 19825 (v1.8.6)
[OK] Extension: connected (v1.0.22)
Profiles:
  • 7ghw3ueb: connected v1.0.22
[OK] Connectivity: connected in 8.4s
Everything looks good!

The daemon on port 19825 also responds to requests, confirming the extension is live. These 4 platforms actually work.

Likely root cause

doctor appears to detect the OpenCLI extension by scanning Chrome's standard User Data\<Profile>\Extensions\ directory for the extension ID (ildkmabpimmkaediidaifkhjpohdnifk). This fails when:

  1. The user runs Edge instead of Chrome (Chrome's User Data doesn't exist on this machine).
  2. The extension is loaded as an unpacked extension from ~/.opencli/extension/ rather than installed from the Web Store.

Suggested fix

Instead of (or in addition to) scanning the browser extension directory, query the OpenCLI daemon (port 19825, with the proper X-OpenCLI header) to determine whether the extension is connected — opencli doctor already does this correctly and could serve as the reference.

Workaround

Ignore the warn for these 4 platforms; they work. Run opencli doctor for the real status.

Related

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