TJ's Desk
← all plans

Make the desk's first visit smoother

Status
done
Owner
AI
Track
chat
Updated
2026-11-27

The desk's local model stays on Hugging Face, so a first visit still downloads about 350 MB. This work makes that visit clearer and every later one faster to trust: the desk remembers a saved copy across visits and checks it against Cache Storage, asks the browser to keep the weights, and shows how many megabytes have arrived while the model loads.

  • [x] Remember a saved copy across visits and verify it against Cache Storage
  • [x] Ask the browser to persist the weights after the first load
  • [x] Show megabytes downloaded in the load bar, and a saved-copy line for returning visitors
  • [x] Tests, gates and a screenshot of both states

The run report is artifacts/runs/2026-11-22-desk-first-visit.md.

What we learned

  • Topic: desk
  • Changed: The desk remembers a saved model copy across visits, verifies it against the webllm/model cache, asks the browser to persist the weights, and shows megabytes downloaded in the load bar.
  • Why: Hosting stays on Hugging Face, so the first-visit download cannot be removed; the useful move was making it legible and making return visits trustworthy.
  • Dropped: Hosting the weights on Cloudflare Pages (25 MiB file cap, shards are 33 to 68 MB) and a data-saver prompt before the download (left for its own change).
  • Remember: The check relies on WebLLM's cache bucket name webllm/model, confirmed against 0.2.79; a rename would silently fall back to the download wording.
  • Closed: 2026-11-22T16:43:28.354Z by claude (claude-sonnet-5-5) on TJ