Merge pull request #8564 from uinstinct/cli-skip-update-dev

feat(cli): skip checking for updates in dev mode
This commit is contained in:
Dallin Romney 2025-11-03 15:02:44 -08:00 • committed by GitHub
commit bbd7e6f331
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,15 @@ export class UpdateService extends BaseService<UpdateServiceState> {
});
try {
// skip checking for updates in dev
if (this.currentState.currentVersion === "0.0.0-dev") {
this.setState({
status: UpdateStatus.IDLE,
message: `Continue CLI`,
});
return; // Uncomment to test auto-update behavior in dev
}
// Check for updates
this.setState({
status: UpdateStatus.CHECKING,
@ -79,16 +88,6 @@ export class UpdateService extends BaseService<UpdateServiceState> {
isUpdateAvailable,
});
if (this.currentState.currentVersion === "0.0.0-dev") {
this.setState({
status: UpdateStatus.IDLE,
message: `Continue CLI`,
isUpdateAvailable,
latestVersion,
});
return; // Uncomment to test auto-update behavior in dev
}
// If update is available, automatically update
if (
autoUpdate &&