Skip to content

Warn when hardcoded model catalogs diverge from the installed CLI #743

Closed as duplicate

Description

@currentbits

Parent: #738

Why

Every miss in #738 is the same root cause: electron/providers.js is a hand-copied snapshot of live CLI caches. Codex Sol disappeared because the snapshot used visibility=list on an older cache. OpenCode dropped three Zen models and added two while the file still claimed it was "live opencode models (v1.17.12)".

Custom... exists so a snapshot can lag without blocking users. That does not help effort (closed union) and it does not help discovery (Sol is not findable).

What to ship (small)

Not a live-replacing catalog on every boot. Snapshots stay the offline default and the test fixture.

  1. Doctor / providers.list warning. When the matching CLI is installed, compare snapshot ids to the local cache:
    • Codex: ~/.codex/models_cache.json visibility=list slugs
    • Grok: ~/.grok/models_cache.json / grok models
    • OpenCode: opencode models
    • Cursor: cursor-agent --list-models
    • Kimi: ~/.kimi-code/config.toml [models."..."] keys
    • Claude: only if a non-interactive list exists (this machine's claude models is auth-gated)
  2. Surface a one-line note on the model picker or in the config doctor: "Codex CLI lists gpt-5.6-sol; Solenta snapshot does not. Use Custom... or update the catalog." Include snapshot vs CLI version in the note.
  3. Optional follow-up (separate PR): merge live list-only ids into the picker at runtime, still using snapshot modelInfo for copy, with a generic description for unknown ids.

Do not

  • Do not network from the renderer.
  • Do not fail boot when a cache file is missing.
  • Do not auto-delete snapshot ids that the local account cannot see (plan gating). Divergence is a warning, not a rewrite.

Files

electron/providers.js (probe helpers), electron/configDoctor.js or listProviders, picker/doctor UI, tests with fixture caches.

Activity

  1. added
    enhancement
    plan:todo
    on Aug 28, 2026
  2. currentbits commented on Aug 28, 2026

    @currentbits
    OwnerAuthor

    Duplicate of #745 (same catalog-divergence warning; #745 is the one in progress on the planboard). Closing so the board has a single issue for this work.

  3. added
    plan:done
    and removed
    plan:todo
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions