Skip to content

Commit f70fd65

Browse files
committed
test(config): record the subagent model policy routes and keep the manifest owner resolved
1 parent 4ab9e18 commit f70fd65

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

packages/agent-core-v2/src/session/subagent/configSection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ registerConfigSection(SUBAGENT_SECTION, SubagentConfigSchema, {
8080
stripEnv: stripSubagentEnv,
8181
});
8282

83-
registerConfigSection(SECONDARY_MODEL_SECTION, SecondaryModelConfigSchema);
83+
registerConfigSection('secondaryModel', SecondaryModelConfigSchema);
8484

8585
export function resolveSubagentTimeoutMs(config: IConfigService): number {
8686
return (

packages/agent-gateway/test/__snapshots__/apiSurface.snapshot.test.ts.snap

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ exports[`API surface snapshot > matches the documented v2 route table and meta e
2020
],
2121
],
2222
"routes": [
23+
[
24+
"DELETE",
25+
"/api/v1/config/subagent-model-policy",
26+
],
2327
[
2428
"DELETE",
2529
"/api/v1/files/{file_id}",
@@ -64,6 +68,10 @@ exports[`API surface snapshot > matches the documented v2 route table and meta e
6468
"GET",
6569
"/api/v1/config",
6670
],
71+
[
72+
"GET",
73+
"/api/v1/config/subagent-model-policy",
74+
],
6775
[
6876
"GET",
6977
"/api/v1/connections",
@@ -516,6 +524,10 @@ exports[`API surface snapshot > matches the documented v2 route table and meta e
516524
"POST",
517525
"/api/v2/sessions:restore",
518526
],
527+
[
528+
"PUT",
529+
"/api/v1/config/subagent-model-policy",
530+
],
519531
[
520532
"PUT",
521533
"/api/v1/providers/{provider_id}",

0 commit comments

Comments
 (0)