You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(web): rename PublicAgentConfigRepo fields to camelCase and harden agent config error handling
- Rename `external_id` → `externalId` and `external_codeHostType` →
`externalCodeHostType` in the PublicAgentConfigRepo OpenAPI schema and
Zod schema; serialize Prisma snake_case fields to camelCase in all
GET/POST/PATCH agent API route responses
- Add missing `contextFiles` property to PublicAgentConfigSettings in
the OpenAPI JSON spec (was already present in the Zod schema)
- Wrap `fetch` calls in `handleDelete` and `handleSubmit` in
`agentConfigForm.tsx` with try/catch/finally so network errors surface
a destructive toast and loading state is always cleared
- Add tests covering the repo field camelCase serialization for all four
agent API endpoints
Copy file name to clipboardExpand all lines: docs/api-reference/sourcebot-public.openapi.json
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1005,18 +1005,18 @@
1005
1005
"type": "string",
1006
1006
"nullable": true
1007
1007
},
1008
-
"external_id": {
1008
+
"externalId": {
1009
1009
"type": "string"
1010
1010
},
1011
-
"external_codeHostType": {
1011
+
"externalCodeHostType": {
1012
1012
"type": "string"
1013
1013
}
1014
1014
},
1015
1015
"required": [
1016
1016
"id",
1017
1017
"displayName",
1018
-
"external_id",
1019
-
"external_codeHostType"
1018
+
"externalId",
1019
+
"externalCodeHostType"
1020
1020
]
1021
1021
},
1022
1022
"PublicAgentConfigConnection": {
@@ -1052,6 +1052,10 @@
1052
1052
"model": {
1053
1053
"type": "string",
1054
1054
"description": "Display name of the language model to use for this config. Overrides the REVIEW_AGENT_MODEL env var."
1055
+
},
1056
+
"contextFiles": {
1057
+
"type": "string",
1058
+
"description": "Comma or space separated list of file paths to fetch from the repository and inject as context for each review. Missing files are silently ignored."
0 commit comments