You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
agent-store lists every catalog row as a local agent, including remotely-served models #1808
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:
constlocalAgents=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
malibio commentedon Jul 31, 2026
Frontend baseline: 171 test files passed, 4112 tests passed.
Filter agent-store to GGUF-backend models, matching model-store's rule (