| … | … | @@ -1822,8 +1875,16 @@ const make = Effect.gen(function* () { | |
| 1879 | + | inherit: { | |
| 1880 | + | projectId, | |
| 1881 | + | modelSelection: | |
| 1882 | + | parent?.thread.modelSelection ?? (yield* projectDefaultModelSelection(project)), | |
🟠 High mcp/OrchestratorMcpService.ts:1882
A non-thread caller cannot schedule an unbound task in a project with defaultModelSelection === null, even when input.target supplies a provider and model. projectDefaultModelSelection(project) fails before resolveScheduledTaskTarget can resolve that target; require a project default only when the target needs inherited fields.
No longer relevant as of ca01ace7e0e3604406e34073d1aad2a0306fdb65
Fixed in ca01ace7e0: when there is no calling thread and the project has no default model, a target that names both providerInstanceId and model is used as the base, then validated like any other target. A missing or partial target still gets the no-default-model error. Covered by a new test in OrchestratorMcpService.test.ts.