|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
3 | | - "definitions": { |
4 | | - "CodexErrorInfo": { |
5 | | - "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.", |
6 | | - "oneOf": [ |
7 | | - { |
8 | | - "additionalProperties": false, |
9 | | - "properties": { |
10 | | - "httpConnectionFailed": { |
11 | | - "properties": { |
12 | | - "httpStatusCode": { |
13 | | - "format": "uint16", |
14 | | - "minimum": 0, |
15 | | - "type": [ |
16 | | - "integer", |
17 | | - "null" |
18 | | - ] |
19 | | - } |
20 | | - }, |
21 | | - "type": "object" |
22 | | - } |
23 | | - }, |
24 | | - "required": [ |
25 | | - "httpConnectionFailed" |
26 | | - ], |
27 | | - "title": "HttpConnectionFailedCodexErrorInfo", |
28 | | - "type": "object" |
29 | | - }, |
30 | | - { |
31 | | - "additionalProperties": false, |
32 | | - "description": "Failed to connect to the response SSE stream.", |
33 | | - "properties": { |
34 | | - "responseStreamConnectionFailed": { |
35 | | - "properties": { |
36 | | - "httpStatusCode": { |
37 | | - "format": "uint16", |
38 | | - "minimum": 0, |
39 | | - "type": [ |
40 | | - "integer", |
41 | | - "null" |
42 | | - ] |
43 | | - } |
44 | | - }, |
45 | | - "type": "object" |
46 | | - } |
47 | | - }, |
48 | | - "required": [ |
49 | | - "responseStreamConnectionFailed" |
50 | | - ], |
51 | | - "title": "ResponseStreamConnectionFailedCodexErrorInfo", |
52 | | - "type": "object" |
53 | | - }, |
54 | | - { |
55 | | - "additionalProperties": false, |
56 | | - "description": "The response SSE stream disconnected in the middle of a turn before completion.", |
57 | | - "properties": { |
58 | | - "responseStreamDisconnected": { |
59 | | - "properties": { |
60 | | - "httpStatusCode": { |
61 | | - "format": "uint16", |
62 | | - "minimum": 0, |
63 | | - "type": [ |
64 | | - "integer", |
65 | | - "null" |
66 | | - ] |
67 | | - } |
68 | | - }, |
69 | | - "type": "object" |
70 | | - } |
71 | | - }, |
72 | | - "required": [ |
73 | | - "responseStreamDisconnected" |
74 | | - ], |
75 | | - "title": "ResponseStreamDisconnectedCodexErrorInfo", |
76 | | - "type": "object" |
77 | | - }, |
78 | | - { |
79 | | - "additionalProperties": false, |
80 | | - "description": "Reached the retry limit for responses.", |
81 | | - "properties": { |
82 | | - "responseTooManyFailedAttempts": { |
83 | | - "properties": { |
84 | | - "httpStatusCode": { |
85 | | - "format": "uint16", |
86 | | - "minimum": 0, |
87 | | - "type": [ |
88 | | - "integer", |
89 | | - "null" |
90 | | - ] |
91 | | - } |
92 | | - }, |
93 | | - "type": "object" |
94 | | - } |
95 | | - }, |
96 | | - "required": [ |
97 | | - "responseTooManyFailedAttempts" |
98 | | - ], |
99 | | - "title": "ResponseTooManyFailedAttemptsCodexErrorInfo", |
100 | | - "type": "object" |
101 | | - }, |
102 | | - { |
103 | | - "additionalProperties": false, |
104 | | - "description": "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.", |
105 | | - "properties": { |
106 | | - "activeTurnNotSteerable": { |
107 | | - "properties": { |
108 | | - "turnKind": { |
109 | | - "$ref": "#/definitions/NonSteerableTurnKind" |
110 | | - } |
111 | | - }, |
112 | | - "required": [ |
113 | | - "turnKind" |
114 | | - ], |
115 | | - "type": "object" |
116 | | - } |
117 | | - }, |
118 | | - "required": [ |
119 | | - "activeTurnNotSteerable" |
120 | | - ], |
121 | | - "title": "ActiveTurnNotSteerableCodexErrorInfo", |
122 | | - "type": "object" |
123 | | - }, |
124 | | - { |
125 | | - "enum": [ |
126 | | - "contextWindowExceeded", |
127 | | - "sessionBudgetExceeded", |
128 | | - "usageLimitExceeded", |
129 | | - "serverOverloaded", |
130 | | - "cyberPolicy", |
131 | | - "internalServerError", |
132 | | - "unauthorized", |
133 | | - "badRequest", |
134 | | - "threadRollbackFailed", |
135 | | - "sandboxError", |
136 | | - "other" |
137 | | - ], |
138 | | - "type": "string" |
139 | | - } |
140 | | - ] |
141 | | - }, |
142 | | - "NonSteerableTurnKind": { |
143 | | - "enum": [ |
144 | | - "review", |
145 | | - "compact" |
146 | | - ], |
147 | | - "type": "string" |
148 | | - }, |
149 | | - "TurnError": { |
150 | | - "properties": { |
151 | | - "additionalDetails": { |
152 | | - "default": null, |
153 | | - "type": [ |
154 | | - "string", |
155 | | - "null" |
156 | | - ] |
157 | | - }, |
158 | | - "codexErrorInfo": { |
159 | | - "anyOf": [ |
160 | | - { |
161 | | - "$ref": "#/definitions/CodexErrorInfo" |
162 | | - }, |
163 | | - { |
164 | | - "type": "null" |
165 | | - } |
166 | | - ] |
167 | | - }, |
168 | | - "message": { |
169 | | - "type": "string" |
170 | | - } |
171 | | - }, |
172 | | - "required": [ |
173 | | - "message" |
174 | | - ], |
175 | | - "type": "object" |
176 | | - } |
177 | | - }, |
178 | 3 | "properties": { |
179 | 4 | "error": { |
180 | | - "$ref": "#/definitions/TurnError" |
| 5 | + "$ref": "./CodexAppServerProtocolDefinitions.json#/definitions/TurnError" |
181 | 6 | }, |
182 | 7 | "threadId": { |
183 | 8 | "type": "string" |
|
0 commit comments