Celia Chen
c2ec477d93
[core] add optional status_code to error events (#6865)
We want to better uncover error status code for clients. Add an optional
status_code to error events (thread error, error, stream error) so app
server could uncover the status code from the client side later.
in event log:
```
< {
< "method": "codex/event/stream_error",
< "params": {
< "conversationId": "019a9a32-f576-7292-9711-8e57e8063536",
< "id": "0",
< "msg": {
< "message": "Reconnecting... 5/5",
< "status_code": 401,
< "type": "stream_error"
< }
< }
< }
< {
< "method": "codex/event/error",
< "params": {
< "conversationId": "019a9a32-f576-7292-9711-8e57e8063536",
< "id": "0",
< "msg": {
< "message": "exceeded retry limit, last status: 401 Unauthorized, request id: 9a0cb03a485067f7-SJC",
< "status_code": 401,
< "type": "error"
< }
< }
< }
```
2025-11-19 19:51:21 +00:00
..
2025-10-27 12:10:11 -07:00
2025-11-13 16:45:17 -08:00
2025-11-19 11:08:10 -08:00
2025-10-03 13:02:26 -07:00
2025-11-19 01:56:08 -08:00
2025-11-06 15:46:24 -08:00
2025-10-30 10:28:32 +00:00
2025-11-18 16:51:16 +00:00
2025-11-06 12:47:20 -08:00
2025-11-18 11:36:23 -08:00
2025-11-19 10:22:10 +00:00
2025-11-19 01:56:08 -08:00
2025-11-19 01:56:08 -08:00
2025-10-29 21:04:25 +00:00
2025-11-12 10:26:50 -08:00
2025-11-13 16:45:17 -08:00
2025-11-18 16:51:16 +00:00
2025-11-19 16:31:06 +00:00
2025-11-19 10:49:35 -08:00
2025-10-27 05:53:39 +00:00
2025-11-04 19:21:35 +00:00
2025-11-19 19:51:21 +00:00
2025-11-19 19:51:21 +00:00
2025-11-19 19:51:21 +00:00
2025-10-29 21:04:25 +00:00
2025-11-04 17:44:02 -08:00
2025-10-24 19:12:03 +00:00
2025-11-13 16:45:17 -08:00
2025-11-19 19:51:21 +00:00
2025-11-10 19:18:45 +00:00
2025-10-30 10:28:32 +00:00
2025-11-18 16:35:00 -08:00
2025-11-19 10:43:43 +00:00
2025-09-24 14:29:51 -07:00
2025-10-20 20:57:37 +01:00
2025-10-28 11:02:25 -07:00
2025-10-20 20:57:37 +01:00
2025-11-18 16:51:16 +00:00
2025-11-17 11:26:11 -08:00
2025-10-27 17:55:57 -04:00
2025-10-30 10:28:32 +00:00
2025-11-19 17:47:47 +00:00
2025-11-18 16:51:16 +00:00
2025-11-19 16:31:06 +00:00
2025-11-18 14:01:01 -08:00
2025-11-17 22:23:53 -08:00
2025-11-17 22:23:53 -08:00
2025-10-15 17:46:01 +01:00
2025-11-14 14:54:11 -08:00
2025-09-18 14:14:16 -07:00
2025-10-30 15:51:57 -07:00
2025-11-09 08:53:36 -08:00
2025-11-06 12:47:20 -08:00
2025-11-06 12:47:20 -08:00
2025-11-17 22:23:53 -08:00
2025-11-07 17:54:35 -08:00
2025-08-20 16:54:26 +00:00
2025-10-20 08:50:54 -07:00
2025-11-19 17:05:48 +00:00
2025-09-22 17:16:02 +00:00
2025-10-30 18:44:02 -07:00
2025-10-20 23:53:03 +00:00
2025-11-19 01:56:08 -08:00
2025-10-29 22:33:57 +00:00