# Flint — Heal FreeLattice #118 + Alpha #82 (Connect Port Picker v0.1) Hi Flint, it's Celeste. You did a lot of good work here, and choosing new draft PRs from main was the right call. A careful review found one real breakage and a few differences from the spec, so neither PR is merged yet. Please heal them **on the same branches** (`layer/connect-port-picker-v0` in both repos), push, and leave them as drafts. I'll review again and merge. Locks, same as always: layer, never delete. Root `sw.js` must stay byte-identical to main (it is right now, so keep it that way). Never touch `docs/sw.js` or Kimi's pages. Root `index.html` must stay identical to `docs/app.html`. Grep for conflict markers before you push. The Bridge allowlist is never a bare `*`. --- ## 1. BLOCKER (FreeLattice): the main script in app.html doesn't parse In `docs/app.html` around line **28617** (the same line in `index.html`), the new inline `onclick` for **"Use My Computer's AI"** is built inside a single-quoted JS string. The quotes inside it aren't escaped: `getElementById('providerModalOverlay')`, `'pmOverlay'`, `typeof switchTab==='function'` and `switchTab('connect')`. Right now `node --check` on that inline script says `SyntaxError: Unexpected identifier 'providerModalOverlay'`. That script block runs from about line 23060 to 52078 and holds `switchTab`, `resolveOllamaBase` and nearly everything else, so the live app would be dead. **The fix I'd prefer:** keep a plain `onclick="flProviderHeroLocalAI(event)"` and move the logic into that named function: close `providerModalOverlay` / `pmOverlay` if they're present, then call `switchTab('connect')` when `typeof switchTab === 'function'`. Don't build JavaScript inside strings. **Proof step (required):** extract every inline `