The open source coding agent.
TypeScript
ci: channels
Dax Raadd07e79e6ad30
diff --git a/packages/opencode/src/cli/cmd/tui.ts b/packages/opencode/src/cli/cmd/tui.tsindex addb51587eb..427260ba45e 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()) returnconst config = await Config.global()if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) returnconst latest = await Installation.latest().catch(() => {})diff --git a/packages/opencode/src/installation/index.ts b/packages/opencode/src/installation/index.tsindex f9008778dc9..5e2a3cd33e3 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() {