diff options
| author | Dax Raad <[email protected]> | 2025-10-14 15:09:18 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-10-14 15:09:18 -0400 |
| commit | d07e79e6ad30c34ac46618d943e8e1888b618896 (patch) | |
| tree | 5f4b135fd75154f3bec6659aef6767b2b7325c43 | |
| parent | f17a7cde8d7bd39ec28e9daf6bee2065be90fdfa (diff) | |
| download | opencode-d07e79e6ad30c34ac46618d943e8e1888b618896.tar.gz opencode-d07e79e6ad30c34ac46618d943e8e1888b618896.zip | |
ci: channels
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui.ts | 2 | ||||
| -rw-r--r-- | packages/opencode/src/installation/index.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/opencode/src/cli/cmd/tui.ts b/packages/opencode/src/cli/cmd/tui.ts index addb51587..427260ba4 100644 --- a/packages/opencode/src/cli/cmd/tui.ts +++ b/packages/opencode/src/cli/cmd/tui.ts @@ -156,7 +156,7 @@ export const TuiCommand = cmd({ }) ;(async () => { - if (Installation.isLocal()) return + // if (Installation.isLocal()) return const config = await Config.global() if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) return const latest = await Installation.latest().catch(() => {}) diff --git a/packages/opencode/src/installation/index.ts b/packages/opencode/src/installation/index.ts index f9008778d..5e2a3cd33 100644 --- a/packages/opencode/src/installation/index.ts +++ b/packages/opencode/src/installation/index.ts @@ -46,7 +46,7 @@ export namespace Installation { } export function isLocal() { - return typeof OPENCODE_CHANNEL !== "string" + return CHANNEL === "local" } export async function method() { @@ -137,8 +137,8 @@ export namespace Installation { }) } - export const VERSION = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "dev" - export const CHANNEL = typeof OPENCODE_CHANNEL === "string" ? OPENCODE_CHANNEL : "dev" + export const VERSION = typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "local" + export const CHANNEL = typeof OPENCODE_CHANNEL === "string" ? OPENCODE_CHANNEL : "local" export const USER_AGENT = `opencode/${CHANNEL}/${VERSION}` export async function latest() { |
