Skip to content

Windows: background dependency install failed - @opencode-ai/plugin@local not found #40639

Closed as not planned

Description

@dreamrover888

Bug 描述

opencode desktop Windows 版啟動時,反覆出現以下 WARN:

background dependency install failed dir=\"C:\\Users\\User\\.config\\opencode\" error=\"@opencode-ai/plugin: No matching version found for @opencode-ai/plugin@local.\"

此錯誤導致 ~/.config/opencode/ 目錄下所有 Plugin 無法載入(包含本地 Plugin 與 npm Plugin,如 opencode-btw、opencode-readseek 等)。

環境

  • OS: Windows 11
  • opencode: Desktop 版(AppData\Local\Programs@opencode-aidesktop)
  • Shell: pwsh (PowerShell 7)
  • Bun: C:\Users\User.bun\bin\bun.exe(獨立安裝)

重現步驟

  1. 安裝 opencode desktop Windows 版
  2. 設定 ~/.config/opencode/opencode.jsonc,加入任何 npm Plugin(例如 "plugin": ["opencode-btw@latest"])
  3. 重啟 opencode desktop
  4. 查看 ~/.local/share/opencode/log/opencode.log

Log 截取

timestamp=2026-08-05T01:32:26.653Z level=WARN run=03c34ea5 message=\"background dependency install failed\" dir=\"C:\\Users\\User\\.config\\opencode\" error=\"Cause([Fail(NpmInstallFailedError (cause: @opencode-ai/plugin: No matching version found for @opencode-ai/plugin@local.))])\" timestamp=2026-08-05T12:04:17.265Z level=WARN run=23e416fb message=\"background dependency install failed\" dir=\"C:\\Users\\User\\.config\\opencode\" error=\"Cause([Fail(NpmInstallFailedError (cause: @opencode-ai/plugin: No matching version found for @opencode-ai/plugin@local.))])\"

此錯誤在沒有任何本地 Plugin 檔案的情況下仍會發生(plugins/ 目錄為空甚至不存在時)。

影響

  • 所有 npm Plugin 無法載入(/btw、
    eadseek、subagent-statusline 等皆失效)
  • init count 始終為 46,不因 Plugin 增減而改變
  • Plugin 相關的 hook 和 command 完全未註冊

備註

@opencode-ai/plugin 在 npm 上是存在的(目前版本 1.18.13),但 opencode 似乎嘗試以 @Local 後綴去解析,導致安裝失敗。

Activity

  1. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please check those issues to see if your problem is already tracked there.

  2. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions