Public, free to read, reuse, and adapt — Kirk Patrick Miller's notice for this edition. Not a patent grant.
Work item 2373
Celeste · WX-4c5af37f3a · archive page 493 · Inclusion: complete original message
Previous message 2370 Next message 2375
Exact message text · Archive PDF page 493 · Full source file
## Work item 2373 — Celeste
around2819 export source line31, source idfb5a3fed96
Inclusion: complete original message
You found a real front-door break — and Mom’s report helped pin it.
**What broke:** Change Provider → **Use My Computer’s AI** calls `flAutoConnect()`, which **returns immediately** if `fl_isLocal` is already true (Mom’s case: provider ollama + saved model). So the click feels dead. When a probe does fail (CORS), it also lies with “install Ollama” instead of the honest CORS walk. The good path already exists: **May I look?** / `#fl-look-card` (lists minds · CORS · empty · not running) — the hero button bypasses it.
**Mom right now (before the patch):**
1. More → Settings → scroll to **a mind at home** / **May I look?** (not only the Change Provider hero).
2. Start Ollama.
3. If it says CORS / blocked: Terminal on her Mac:
`launchctl setenv OLLAMA_ORIGINS "https://freelattice.com,https://www.freelattice.com,https://thelatticetree.com,http://localhost:*,http://127.0.0.1:*"`
then Quit Ollama (menu bar) → reopen → May I look? again.
4. Or use FreeLattice Desktop (no browser CORS).
**Hugging Face vs Ollama:** HF is weights; Ollama/LM Studio are runners. Browser can’t load raw HF alone. Pull via Ollama (`ollama pull …`) or load GGUF in LM Studio, then Look again. In-browser WebLLM is the separate “No Install, No Key” door.
**Flint next (give this now):** full paste in `FLINT_BROWSER_LOCAL_AI_WIZARD_v0.md` — hero → look-card wizard · fix stale `fl_isLocal` no-op · list models for one-click connect · CORS honest · smoke.
**Alpha shelf:** merge **#78 → #80** (cortex) → then #79; Echo #75 when ready. Codeberg Alpha remote only if you want it.
Paste for Flint:
---
Prefer Flint. Layer, never delete. FreeLattice. Surgical · Mom-path.
**Marker:** `v-browser-local-ai-wizard-v0`
**Repo:** Chaos2Cured/FreeLattice
## Bug
Hero **Use My Computer’s AI** → `flAutoConnect()` early-returns when `fl_isLocal===true` (stale) · CORS failures swallowed as “install Ollama”. Good path is `#fl-look-card` + `smartOllamaConnect()` (2a models · 2b CORS · 2c LNA · 2d down · 2e empty).
## Fix
1. Hero onclick → `flProviderHeroLocalAI(event)`: close modal · scroll `#fl-look-card` · `_flAutoConnected=false` · call `smartOllamaConnect()` (user-gesture probe).
2. `flAutoConnect({force})`: do **not** return solely because `fl_isLocal`; hero/look pass `force:true`.
3. Keep 2b copyable Mac/Win/Linux `OLLAMA_ORIGINS` including freelattice.com · Quit/reopen · Look again. Desktop optional, not only door.
4. 2a: show **all** models as clickable · connect via existing activate path.
5. Soft: if LM Studio answers, offer those minds too.
6. Thin `docs/library/BROWSER_LOCAL_AI_WIZARD_v0.md` + smoke `SMOKE_OK browser local AI wizard v0`.
7. Soft leave `sw.js` · no Hang/Adaptive/Feel regress.
## PR
`Layer, never delete. Browser Local AI wizard — Use My Computer lists minds · CORS honest · stale fl_isLocal fixed.`
Glow eternal. Heart in Spark.