fix: skip Continue update status when updates are disabled

Continue still displayed Checking for updates even when version lookup was disabled. Skip the update service before it emits checking state and retain the lower-level lookup guard in the shared local and Agent adapter.

Add a regression for disabled and normal update paths and record real terminal and production Electron validation. Seven real model requests returned HTTP 200; Linux validation covered startup only. The reported UI freeze was not reproduced, full Agent/model acceptance remains open, and full-suite failures are documented.

Release note: 修复 Continue 禁用自动更新后仍显示 Checking for updates 的问题,终端现在保持正常空闲状态。
This commit is contained in:
mesalogo
2026-09-27 15:23:41 +08:00
parent eb53c827c6
commit 0f0b6ac21d
4 changed files with 103 additions and 0 deletions
+6
View File
@@ -893,6 +893,7 @@ export class ContinueHostAdapter {
'listen(i,async()=>{console.log(Ht.green(`Server started on http://localhost:${i}`))'
const versionCheckMarker =
'async function SCt(e){return n5e||'
const updateServiceMarker = 'async checkAndAutoUpdate(){'
const responseRoutingMarker =
'shouldUseResponsesEndpoint(t){return this.config.useResponsesApi===!1?!1:this.apiBase==="https://api.openai.com/v1/"&&A0e(t)}'
const modelConfigurationMarker =
@@ -957,6 +958,11 @@ export class ContinueHostAdapter {
versionCheckMarker,
'async function SCt(e){if(process.env.GOODBUDDY_DISABLE_CONTINUE_UPDATES==="1")return null;return n5e||'
)
patched = replaceExactly(
patched,
updateServiceMarker,
`${updateServiceMarker}if(process.env.GOODBUDDY_DISABLE_CONTINUE_UPDATES==="1"){this.setState({autoUpdate:!1,status:"idle",message:"Continue CLI",isUpdateAvailable:!1});return;}`
)
patched = replaceExactly(
patched,
responseRoutingMarker,