fix: always render wordmark via protocol auto-resolution; disable update checks by default

This commit is contained in:
2026-08-21 16:07:45 -05:00
parent e8f2f2b822
commit 140658c526
2 changed files with 5 additions and 20 deletions
+2 -1
View File
@@ -6,8 +6,9 @@ import { InstallationVersion } from "@opencode-ai/core/installation/version"
import { GlobalBus } from "@/bus/global"
export async function upgrade() {
// Neuron fork: update checks are opt-in. We do not phone home by default.
const config = await AppRuntime.runPromise(Config.Service.use((cfg) => cfg.getGlobal()))
if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) return
if (config.autoupdate !== true || Flag.OPENCODE_DISABLE_AUTOUPDATE) return
const method = await Installation.method()
const latest = await Installation.latest(method).catch(() => {})
if (!latest) return