From 8320c7cf2da82a78db0d4e30dd105847c5686b29 Mon Sep 17 00:00:00 2001 From: sisyphus-dev-ai Date: Sun, 11 Jan 2026 09:56:23 +0000 Subject: [PATCH] fix(cli): integrate channel-based updates in doctor and get-local-version Update CLI commands to use channel-aware version fetching: - doctor check now reports channel in error messages - get-local-version uses channel from pinned version Depends on channel detection from previous commit. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/cli/doctor/checks/version.ts | 4 +++- src/cli/get-local-version/index.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cli/doctor/checks/version.ts b/src/cli/doctor/checks/version.ts index 742463d7..0bde1393 100644 --- a/src/cli/doctor/checks/version.ts +++ b/src/cli/doctor/checks/version.ts @@ -50,7 +50,9 @@ export async function getVersionInfo(): Promise { } const currentVersion = getCachedVersion() - const latestVersion = await getLatestVersion() + const { extractChannel } = await import("../../../hooks/auto-update-checker/index") + const channel = extractChannel(pluginInfo?.pinnedVersion ?? currentVersion) + const latestVersion = await getLatestVersion(channel) const isUpToDate = !currentVersion || diff --git a/src/cli/get-local-version/index.ts b/src/cli/get-local-version/index.ts index 06a2936a..a0f80ace 100644 --- a/src/cli/get-local-version/index.ts +++ b/src/cli/get-local-version/index.ts @@ -54,7 +54,9 @@ export async function getLocalVersion(options: GetLocalVersionOptions = {}): Pro return 1 } - const latestVersion = await getLatestVersion() + const { extractChannel } = await import("../../hooks/auto-update-checker/index") + const channel = extractChannel(pluginInfo?.pinnedVersion ?? currentVersion) + const latestVersion = await getLatestVersion(channel) if (!latestVersion) { const info: VersionInfo = {