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
@@ -979,18 +979,18 @@
979
979
"type": "string",
980
980
"nullable": true
981
981
},
982
-
"external_id": {
982
+
"externalId": {
983
983
"type": "string"
984
984
},
985
-
"external_codeHostType": {
985
+
"externalCodeHostType": {
986
986
"type": "string"
987
987
}
988
988
},
989
989
"required": [
990
990
"id",
991
991
"displayName",
992
-
"external_id",
993
-
"external_codeHostType"
992
+
"externalId",
993
+
"externalCodeHostType"
994
994
]
995
995
},
996
996
"PublicAgentConfigConnection": {
@@ -1026,6 +1026,10 @@
1026
1026
"model": {
1027
1027
"type": "string",
1028
1028
"description": "Display name of the language model to use for this config. Overrides the REVIEW_AGENT_MODEL env var."
1029
+
},
1030
+
"contextFiles": {
1031
+
"type": "string",
1032
+
"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