fix: don't fetch models.dev on completion (#13997)

This commit is contained in:
Caleb Norton 2026-02-17 10:41:03 -06:00 committed by GitHub
parent df59d1412b
commit 47435f6e17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ export namespace ModelsDev {
}
}
if (!Flag.OPENCODE_DISABLE_MODELS_FETCH) {
if (!Flag.OPENCODE_DISABLE_MODELS_FETCH && !process.argv.includes("--get-yargs-completions")) {
ModelsDev.refresh()
setInterval(
async () => {