Repository navigation
fix(models): say why sim-auto is refused and tidy release follow-ups - #10437
Merged
Merged
Conversation
A model field that does not offer Auto, either because the block never does (guardrails, translate) or because the deployment is self-hosted, rejected sim-auto with the generic unknown-model-id error and its namespace examples. It now names the actual reason and points at the block's model.options for a concrete id.
…tinel abort reason WorkerTerminalStop was never passed to abort(); it existed only so recordCancelled could feed a live signal through isExplicitStopReason. Branch on the live signal directly instead. The recorded cancel reason is unchanged, and the worker-reported cancel test now also asserts the root span finishes as explicit_stop.
…resolver The resolveModelProviderId and findConfiguredModelProvider tests asserted on a mocked getProviderFromModel and restated its stub; the real behaviour is covered by the providers utils tests. The agent block now has a real-resolver test that a model reference records the default provider rather than its written namespace, and its tool callback matches the router and evaluator one-liner.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Low impact] This PR appears safe to merge; no actionable issues were found. SummaryThis PR explains why a block refuses
No actionable issues found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "test(blocks): check the agent's serializ..." · Reviewed by Greptile |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-ups from a release audit of the model-routing and mothership-stream changes in this release:
sim-autoon a field that doesn't offer it. Guardrails and Translate no longer offer Auto (it never ran there: it resolved to Ollama and failed on hosted). A storedsim-autoon those fields, or on an Auto-capable field on self-hosted Sim, was refused with the generic "Unknown model id … read model.options" error. It now says the block does not offer Auto (on a self-hosted deployment, where that is the reason) and to pick a concrete model id. Pass/fail is unchangedAbortReason.WorkerTerminalStopexisted only to be fed back throughisExplicitStopReason; nothing aborted with it.recordCancellednow classifies a cancelled verdict on a live signal directly. Behaviour is identicalisOllamaReachable(its doc still described a public API)blocks/utils.test.tscases that asserted on how agetProviderFromModelmock was called or restated the mock;agent.test.tsnow checks that a model reference records the default provider with the real lookupType of Change
Testing
validation-models.test.tsasserts the exact new messages for hosted guardrails/translate and self-hosted router; they fail on the previous codestart.test.ts: the worker-reported cancel test now also asserts the request finishes as cancelled with cancel reasonexplicit_stopagent.test.ts: the reference case fails if the reference guard is removedlib/mothership/request,lib/core/utils,lib/workflows/editing,blocks,lib/embeddings: 1317 pass;tsc --noEmit, biome, comment-hygiene, test-pattern and test-type checks cleanChecklist