This commit is contained in:
Dax Raad
2025-10-14 14:56:21 -04:00
parent 289783f627
commit 61f6091de1
6 changed files with 23 additions and 24 deletions

View File

@@ -156,8 +156,7 @@ export const TuiCommand = cmd({
})
;(async () => {
if (Installation.isDev()) return
if (Installation.isPreview()) 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(() => {})
@@ -214,7 +213,7 @@ function getOpencodeCommand(): string[] {
const execPath = process.execPath.toLowerCase()
if (Installation.isDev()) {
if (Installation.isLocal()) {
// In development, use bun to run the TypeScript entry point
return [execPath, "run", process.argv[1]]
}