Skip to content

agent-store lists every catalog row as a local agent, including remotely-served models #1808

Closed

Description

@malibio

Context

Raised in review of PR #1806. Confirmed pre-existing — it predates that branch (verified against the commit before it) — so it was left out of scope there rather than fixed mid-PR.

Problem

packages/desktop-app/src/lib/stores/agent-store.svelte.ts maps every row from the model catalog through modelToAgent, which stamps binary: 'local' and available: true:

const localAgents = models.map(modelToAgent);   // no backend filter

model-store.refreshModels() filters the same catalog with e.backend === 'gguf' and carries a comment explaining why. agent-store does not, so rows that are not local GGUF models are presented as local agents.

Why it matters more now

Before PR #1806, the extra rows only appeared when an Ollama daemon happened to be running. With OpenAI-compat discovery, every model found at every configured remote endpoint now lands in the catalog — so each one shows up in the agent picker labelled as a local agent.

Suggested fix

Apply the same backend === 'gguf' filter model-store uses. Two stores consuming one catalog should not disagree about which rows belong to them; the one with the documented rule is the one to copy.

Acceptance criteria

  • agent-store surfaces only local GGUF models as local agents
  • Remotely-served models do not appear in the agent picker as local
  • The filtering rule is shared or consistently commented across both stores

Activity

  1. malibio commented on Jul 31, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 171 test files passed, 4112 tests passed.

  2. self-assigned this
    on Jul 31, 2026
  3. added a commit that references this issue on Jul 31, 2026
    0347e05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions