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:
Yichen Jiang
2026-08-09 20:47:22 +08:00
parent f80d2a742e
commit 2f86a93bdd

View File

@@ -109,7 +109,7 @@ async function harness(presets?: readonly string[], persistence?: unknown) {
}
ctx.agents.setFactory(factory)
const api = createApiProxy(ctx, {
defaultTarget: () => ({ provider: 'test', model: 'test-model' }),
defaultModelSelection: () => ({ provider: 'test', model: 'test-model' }),
cwd,
workspaceRoot: cwd,
})