- listFiles() keeps the last trees it fetched by repo@SHA (a commit's files
never change; capped at 50,000 files): adding a model right after the lookup
no longer downloads the whole tree again. Callers get copies.
- addModel() fetches the author's avatar in parallel with the file list.
- The Hub check resolves revisions with resolveRevision(): /revision/<rev> with
expand=sha, as huggingface_hub's model_info(expand=...) does, instead of the
full model info (file list, card data, the Spaces using the model). Falls
back to the full request if an answer comes without a SHA.
- The Model card tab renders inside <Suspense>: the page no longer waits for
the README to arrive from the Hub (up to the 20 s timeout when it's slow).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EooZ9biu7kFNB4eDJrwQc5