Skip to content

[Bug] Chrome 扩展冲突:Cannot access chrome-extension:// URL of different extension #14

@run6270

Description

@run6270

问题描述

使用 opencli v1.3.1 + 最新扩展 v0.2.3 时,执行 Twitter search 命令报错:

Error: attach failed: Cannot access a chrome-extension:// URL of different extension. 
Tip: another Chrome extension may be interfering — try disabling other extensions

环境信息

  • 系统:macOS (Darwin 25.3.0)
  • 架构:Apple Silicon
  • opencli 版本:1.3.1
  • 扩展版本:v0.2.3 (opencli-rs-chrome-extension.zip)
  • 浏览器:Google Chrome (最新版)

复现步骤

  1. 安装 opencli v1.3.1
  2. 下载并安装 v0.2.3 扩展到 Chrome
  3. 运行 opencli doctor 显示连接正常:
    [OK] Daemon: running on port 19825
    [OK] Extension: connected
    [OK] Connectivity: connected in 0.3s
    
  4. 执行命令:opencli twitter search "from:elonmusk" --limit 5
  5. 报错:Cannot access a chrome-extension:// URL of different extension

已尝试的解决方案

  • ✅ 重启 Chrome
  • ✅ 禁用其他扩展(问题依然存在)
  • ✅ 重新安装扩展

相关 Issue

可能与 #6 (扩展与 daemon 不兼容) 相关,但错误信息不同。

期望行为

命令应正常返回 Twitter 搜索结果。

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