From b94b193c21599d52648c54803a81dc0e85a3b960 Mon Sep 17 00:00:00 2001 From: IYODA Atsushi Date: Fri, 20 Feb 2026 03:37:01 +0900 Subject: [PATCH] fix(doctor): point fix messages to actual cache directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The doctor's fix messages for outdated/mismatched plugin versions were directing users to ~/.config/opencode with `bun update`, but OpenCode loads plugins from its cache directory (~/.cache/opencode on Linux, ~/Library/Caches/opencode on macOS). Additionally, pinned versions in the cache package.json make `bun update` a no-op — `bun add ...@latest` is required. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/cli/doctor/checks/system.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/doctor/checks/system.ts b/src/cli/doctor/checks/system.ts index 05d32d681..01fa162d1 100644 --- a/src/cli/doctor/checks/system.ts +++ b/src/cli/doctor/checks/system.ts @@ -93,7 +93,7 @@ export async function checkSystem(): Promise { issues.push({ title: "Loaded plugin version mismatch", description: `Cache expects ${loadedInfo.expectedVersion} but loaded ${loadedInfo.loadedVersion}.`, - fix: "Reinstall plugin dependencies in OpenCode cache", + fix: `Reinstall: cd ${loadedInfo.cacheDir} && bun install`, severity: "warning", affects: ["plugin loading"], }) @@ -107,7 +107,7 @@ export async function checkSystem(): Promise { issues.push({ title: "Loaded plugin is outdated", description: `Loaded ${systemInfo.loadedVersion}, latest ${latestVersion}.`, - fix: "Update: cd ~/.config/opencode && bun update oh-my-opencode", + fix: `Update: cd ${loadedInfo.cacheDir} && bun add oh-my-opencode@latest`, severity: "warning", affects: ["plugin features"], })