Skip to content

Commit 63bab70

Browse files
committed
Merge branch 'feat/subagent-routing-provenance' into feat/dynamic-workflow-card
2 parents f73d689 + 67b3744 commit 63bab70

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/oauth/test/models-dev-refresh.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ describe('refreshProviderModels modelsDev directory providers', () => {
238238
expect(patch.providers?.[PROVIDER_ID]).toBeUndefined();
239239
expect(patch.defaultModel).toBeUndefined();
240240
expect(patch.thinking).toBeUndefined();
241+
expect('secondaryModel' in patch).toBe(true);
241242
expect(patch.secondaryModel).toBeUndefined();
243+
expect((await host.getConfig()).secondaryModel).toBeUndefined();
242244
});
243245

244246
it('clears secondary_model when only the legacy model key dangles beside a valid default_model', async () => {
@@ -253,7 +255,10 @@ describe('refreshProviderModels modelsDev directory providers', () => {
253255
const { host, calls } = makeHost(base);
254256
await refreshProviderModels(host);
255257

256-
expect(lastPatch(calls).secondaryModel).toBeUndefined();
258+
const patch = lastPatch(calls);
259+
expect('secondaryModel' in patch).toBe(true);
260+
expect(patch.secondaryModel).toBeUndefined();
261+
expect((await host.getConfig()).secondaryModel).toBeUndefined();
257262
});
258263

259264
it('prunes vanished pool entries from secondary_model but keeps the rest of the pool', async () => {

0 commit comments

Comments
 (0)