test(apiproxy): follow the defaultModelSelection rename in the preset spec
The agent-default-model refactor renamed ApiProxyDefaults.defaultTarget to defaultModelSelection; this stack-owned spec merged without textual conflict and kept the old field, so its harness built a defaults object whose selection thunk was undefined and every create answered internal.
This commit is contained in:
@@ -109,7 +109,7 @@ async function harness(presets?: readonly string[], persistence?: unknown) {
|
|||||||
}
|
}
|
||||||
ctx.agents.setFactory(factory)
|
ctx.agents.setFactory(factory)
|
||||||
const api = createApiProxy(ctx, {
|
const api = createApiProxy(ctx, {
|
||||||
defaultTarget: () => ({ provider: 'test', model: 'test-model' }),
|
defaultModelSelection: () => ({ provider: 'test', model: 'test-model' }),
|
||||||
cwd,
|
cwd,
|
||||||
workspaceRoot: cwd,
|
workspaceRoot: cwd,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user