Repository navigation
Seeded models work without a click: declared App Studio bindings, a default Agents model - #1094
Merged
railgrid-prow[bot] merged 1 commit intoNov 14, 2026
Conversation
…efault Agents model App Studio: a ModelProviderConnection can declare its models in spec.models. The connection controller adds each to the Studio registry once, as an active binding with the admitted snapshot, and makes one marked default the workspace default while there is none. A connection that declares its models is Ready without discovery; the controller still sends no request of its own. A binding the workspace edits or removes is not put back (status.declaredModels). Agents: ModelCredential spec.default marks the workspace's default chat model. An agent created over REST or MCP without a model gets it, and the create form starts on it when there are several models. Both are for objects a WorkspaceSeed creates, which nobody was there to click through.
Contributor
Author
|
/retest |
Contributor
Author
|
/approve |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mjudeikis The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
A
WorkspaceSeedcan put a model connection into every tenant workspace (Switchboard's free grant does), but nobody is there to click through the setup the two providers expect. In Agents the seeded model mostly worked already; in App Studio the connection sat atReachable=Unknown / ExplicitDiscoveryRequiredwith no model on it, so the assistant had nothing to run on.App Studio
ModelProviderConnection.spec.modelsdeclares model bindings (id,model, optionalname,default).defaultModelwhen the registry has none.status.declaredModelsrecords what was offered.Ready(ReachableUnknown, reasonModelsDeclared) without discovery. The controller still sends no request of its own.Agents
ModelCredential.spec.defaultmarks the workspace's default chat model (refused on harness identities).What a seed adds
Both need the providers released with the new schemas first; a seed carrying the fields before that is rejected on apply.
Tested
go testof the changed packages in both providers.vue-tscand the vitest suite.Not tested:
make verify, the e2e suites, and anything against a live hub. The create form's new preference has no UI test of its own. Not checked: whether App Studio's portal keepsspec.modelswhen a person edits a seeded connection (losing it only drops the Ready reason; bindings are made once).Most of the diff is regenerated CRDs and kcp schemas (
make codegen-app-studio-provider,make codegen-agents-provider).