Skip to content

fix(models): accept local ollama models in fallback rows like the model field - #10360

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/ollama-fallback-validation
Nov 24, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/ollama-fallback-validation

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Editing validation accepted an installed Ollama model in a block's model field (an unclaimed Ollama-shaped name, where Ollama is reachable and not blacklisted) but still rejected the same name in the block's fallback rows. The fallback picker offers those names and execution runs them on Ollama
  • Effect on self-hosted Sim with Ollama: writing back a workflow saved with a fallback like mistral:latest through the workflow-state API failed outright, because it re-validates every stored field. Editing or re-sending the rows failed through mothership edits and workflow-as-code
  • Both sites now ask one isRunnableModelId predicate: a catalogued or namespaced id, or a local Ollama name. Hosted Sim without Ollama, a blacklisted Ollama, sim-auto, evaluation models and free text are still refused
  • Follow-ups from the same changes:
    • the MODEL_OPTION_SOURCES note no longer cites bare Ollama names;
    • the browser-only Ollama check in blocks/utils.ts is renamed hasOllamaInstance, so it no longer shares a name with the server's isOllamaAvailable;
    • the model combobox uses DEFAULT_BLOCK_MODEL instead of its own copy;
    • two comments are reflowed.

Type of Change

  • Bug fix

Testing

  • validation-models.test.ts: fallback rows on the real agent, router and evaluator blocks accept mistral:latest where Ollama is reachable, and reject it on hosted without Ollama or when Ollama is blacklisted. sim-auto and free text are still refused. The acceptance cases fail on the previous code
  • validation.test.ts: the unknown-fallback case now asserts on hosted, where no Ollama can serve the name. On self-hosted that name is a possible local model, as it already was for the model field
  • tsc --noEmit and bun run lint clean; vitest over workflows, blocks, model router, mothership request and the editor sub-blocks passes; test-pattern, test-type and audit checks pass

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…el field

Editing validation accepted an installed Ollama model (an unclaimed
Ollama-shaped name where Ollama is reachable) in a block's model field but
still rejected the same name in its fallback rows, although the fallback
picker offers it and execution runs it on Ollama. Writing back a workflow
saved with such a fallback through the workflow-state API failed outright,
and editing or re-sending the rows failed through mothership edits and
workflow-as-code. Both sites now ask one isRunnableModelId predicate.

Also tidies follow-ups from the same changes: the MODEL_OPTION_SOURCES note
no longer cites bare Ollama names, the browser-only Ollama check in
blocks/utils is renamed so it no longer shares a name with the server's
isOllamaAvailable, the model combobox uses DEFAULT_BLOCK_MODEL instead of
its own copy, and two comments are reflowed.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 24, 2026 11:01am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Fallback rows now accept local Ollama names through the same check used by catalog-backed model fields.

  • Fallback rows accept local Ollama models when Ollama is available.
  • The model picker uses the shared default model.

No actionable issues found. This assessment is based on code inspection; tests were not run.

Reviews (1) · Last reviewed commit: "fix(models): accept local ollama models ..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 318135a into staging Nov 24, 2026
84 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/ollama-fallback-validation branch November 24, 2026 11:12

This branch was previously deployed

1 inactive deployment
Preview — 3e6735bc Deployed Nov 24, 2026 by vercel[bot]
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