core-agent-ide/codex-rs/app-server-protocol/src
Celia Chen b395dc1be6
[app-server] introduce turn/completed v2 event (#6800)
similar to logic in
`codex/codex-rs/exec/src/event_processor_with_jsonl_output.rs`.
translation of v1 -> v2 events:
`codex/event/task_complete` -> `turn/completed`
`codex/event/turn_aborted` -> `turn/completed` with `interrupted` status
`codex/event/error` -> `turn/completed` with `error` status

this PR also makes `items` field in `Turn` optional. For now, we only
populate it when we resume a thread, and leave it as None for all other
places until we properly rewrite core to keep track of items.

tested using the codex app server client. example new event:
```
< {
<   "method": "turn/completed",
<   "params": {
<     "turn": {
<       "id": "0",
<       "items": [],
<       "status": "interrupted"
<     }
<   }
< }
```
2025-11-19 01:55:24 +00:00
..
bin Generate JSON schema for app-server protocol (#5063) 2025-10-20 11:45:11 -07:00
protocol [app-server] introduce turn/completed v2 event (#6800) 2025-11-19 01:55:24 +00:00
export.rs Improved runtime of generated_ts_has_no_optional_nullable_fields test (#6851) 2025-11-18 15:24:32 -08:00
jsonrpc_lite.rs [app-server] remove serde(skip_serializing_if = "Option::is_none") annotations (#5939) 2025-10-30 18:18:53 +00:00
lib.rs [app-server] refactor: split API types into v1 and v2 (#6005) 2025-10-30 23:56:55 +00:00