fix(opencode): skip typechecking generated models snapshot (#19018)

This commit is contained in:
Kit Langton
2026-03-24 19:11:45 -04:00
committed by GitHub
parent 0dcdf5f529
commit 50f6aa3763
2 changed files with 8 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ export namespace ModelsDev {
const result = await Filesystem.readJson(Flag.OPENCODE_MODELS_PATH ?? filepath).catch(() => {})
if (result) return result
// @ts-ignore
const snapshot = await import("./models-snapshot")
const snapshot = await import("./models-snapshot.js")
.then((m) => m.snapshot as Record<string, unknown>)
.catch(() => undefined)
if (snapshot) return snapshot