fix(discovery): preserve uncached fallback for unverifiable projects

This commit is contained in:
阿白叔 committed 2026-10-15 10:24:28 +08:00
1 parent 260e270be8
commit 4194c011e3
2 files changed
+25

No files matched your search

@@ -109,6 +109,10 @@ class DiscoveryCache:
and (not collect_components or has_components)):
self._entries[key] = entry
return deepcopy(discovery)
# Fingerprinting is an optimization: an initially unverifiable
# project still gets fresh native discovery, with no cache reuse.
if before is None:
return loader()
# Native first-open may normalize an old database. Discard that
# discovery and reopen once; only a verified stable pass is usable.
for attempt in range(2):