Skip to content

fix(desktop): start Autopilot only with Darkbloom network models - #1508

Merged
jonathan308 merged 2 commits into
codex/desktop-mac-preview-20261012from
fix/desktop-autopilot-network-models
Oct 15, 2026
Merged

jonathan308 merged 2 commits into
codex/desktop-mac-preview-20261012from
fix/desktop-autopilot-network-models

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Desktop onboarding fails to start Autopilot:

Error: The selected startup models could not all be verified for Autopilot. Retry after any model update finishes, or use --no-autopilot.
  Checking downloaded network models (no model downloads)...
    Verifying ternary-bonsai-2-27b...

It looks like Bonsai fails verification. It doesn't: its weights match the manifest (130de59…), the run takes ~4 s (≈ the 3.2 s it takes to hash 8.6 GB), and no Not reporting … line is printed.

Root cause

The desktop model list is catalog ∪ local scan, and models found only on disk were reported eligible. Onboarding starts Autopilot on the first eligible downloaded model by ID. On the affected Mac, the live runtime reports:

id eligible in catalog
mlx-community/gemma-4-26B-A4B-it-qat-4bit ✅ ❌ ← picked
prism-ml/Ternary-Bonsai-2-27B-mlx-2bit (legacy copy) ✅ ❌
ternary-bonsai-2-27b ✅ ✅

start --autopilot requires every startup model to be in the verified network inventory. A disk-only model can never be in it, so the subset check fails. Bonsai is the only network model on disk, so it's the only Verifying line, and the error message blames verification. Any provider with MLX models in their Hugging Face cache hits this.

Fix

  • Runtime: each Snapshot.models entry now reports network (listed by the catalog).
  • Renderer: servesNetwork() is the single gate for network serving. It applies to the onboarding starting model, network-start pins (usablePins), turning Autopilot on, and the Autopilot pool. Disk-only models stay pinnable under Local only. In network modes they're disabled with "Not on the Darkbloom network. Runs in Local only." A missing network field (older runtime) keeps the current behavior.
  • CLI: prepareModelSelection names the startup models missing from the inventory instead of saying they "could not all be verified".
  • Docs: docs/reference/desktop-control.md documents models[].network.

Not changed: the manual (non-Autopilot) Models page can still start network serving with a disk-only model. It doesn't error, but the network never routes to it. This can be a follow-up if wanted.

Testing

  • desktop-app: vitest run passes 429/429, and tsc --noEmit and prettier --check are clean. The 4 new tests (starting model, network-start pins, pool state, onboarding Advanced flow) fail when servesNetwork is reverted to eligible.
  • provider-swift: swift test --filter "AutopilotStartupSelectionTests|AutopilotInventoryTests|Desktop" passes 76 tests, including the new missingStartupModelsAreNamed.
  • The rebuilt Preview app has not been run through onboarding.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

The desktop model list is the catalog plus every model the scan finds on
disk, and models found only on disk were reported eligible. Onboarding's
starting model (first eligible downloaded, by id) could therefore be a
local Hugging Face copy such as mlx-community/gemma-4-26B-A4B-it-qat-4bit
or a legacy prism-ml Bonsai snapshot. `start --autopilot` requires every
startup model to be in the verified network inventory, so it failed with
"could not all be verified" while printing only "Verifying
ternary-bonsai-2-27b..." - the one network model on disk, which passed.

- Snapshot models now report `network` (listed by the catalog).
- servesNetwork() gates the starting model, onboarding pins for network
  starts, turning Autopilot on and the Autopilot pool. Disk-only models
  stay pinnable for Local only and explain why otherwise.
- The CLI names the startup models missing from the inventory instead of
  blaming verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 15, 2026 7:23am UTC
d-inference-console-ui-dev Ready Ready Preview Oct 15, 2026 7:23am UTC
d-inference-landing Ready Ready Preview Oct 15, 2026 7:23am UTC
darkbloom-status Ready Ready Preview Oct 15, 2026 7:23am UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 15, 2026 7:23am UTC

Request Review

connect() maps ENOENT to "missing" (runtime not installed). When the
packaged signature check can't run because codesign itself is absent, as
on the Linux CI runner, its ENOENT was reported as a missing install. The
binary already resolved through realpath, so any verification failure
means an untrusted runtime: surface it as an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonathan308

Copy link
Copy Markdown
Collaborator Author

Merge-order note: #1502 removes onboarding's local-only mode (and ModeChoice). Merged together, usablePins keeps only the network filter (usablePins(snapshot, pinned), always applied), AdvancedOptions passes network to PinList, the 'local' case in onboardingStartPlan.test.ts goes, and the Advanced test checks a disk-only model can't be pinned at all in onboarding. The local integration build (all audit PRs + this) does exactly that: 662 frontend tests, tsc, prettier, 92 Swift tests (AutopilotStartupSelectionTests|AutopilotInventoryTests|Desktop) and the desktop API harness pass.

@jonathan308
jonathan308 merged commit 342b6c7 into codex/desktop-mac-preview-20261012 Oct 15, 2026
21 of 22 checks passed
jonathan308 added a commit that referenced this pull request Oct 15, 2026
desktop-app/storybook renders the real renderer components with fixtures:
Before/After stories for every desktop audit fix (#1452-#1508), flow
walkthroughs (onboarding, status checks, model loading, Autopilot), the
full app window with its sidebar at every page, and the install flow.
After is the live desktop-app source (an alias, no copy); Before is a
frozen snapshot of the audit's base, bfa75a2. The native bridge is
mocked, so nothing contacts a runtime, account or production endpoint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Oct 23, 2026
Restores desktop-app/storybook (and the Review Storybook docs section),
moved out of #1518 so the app PR carries only the app. Before/After
stories for each desktop audit fix (#1452-#1508), flow walkthroughs, the
app shell with its sidebar at every page, and the install flow. After is
the live desktop-app source; Before is a frozen snapshot of bfa75a2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

5 active deployments
Preview – d-inference-console-ui-dev — 7202cde6 Deployed Oct 15, 2026 by vercel[bot]
Preview – d-inference — 7202cde6 Deployed Oct 15, 2026 by vercel[bot]
Preview – d-inference-landing — 7202cde6 Deployed Oct 15, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 7202cde6 Deployed Oct 15, 2026 by vercel[bot]
Preview – darkbloom-status — 7202cde6 Deployed Oct 15, 2026 by vercel[bot]
benchmarks — 7202cde6 Deployed Oct 15, 2026 by jonathan308 via E2E Benchmarks #2681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant