Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

add PLANDEX_SKIP_UPGRADE to disable upgrades

Dane Schneider16ef468a511c
diff --git a/app/cli/upgrade.go b/app/cli/upgrade.go
index b940e3b4..084c33dd 100644
--- a/app/cli/upgrade.go
+++ b/app/cli/upgrade.go
@@ -21,6 +21,14 @@ import (
)
func checkForUpgrade() {
+ if os.Getenv("PLANDEX_SKIP_UPGRADE") != "" {
+ return
+ }
+
+ if version.Version == "development" {
+ return
+ }
+
term.StartSpinner("")
defer term.StopSpinner()
latestVersionURL := "https://plandex.ai/cli-version.txt"
@@ -71,6 +79,8 @@ func checkForUpgrade() {
}
term.StopSpinner()
restartPlandex()
+ } else {
+ fmt.Println("Note: set PLANDEX_SKIP_UPGRADE=1 to stop upgrade prompts")
}
}
}