mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
[codex] extend code-mode host IPC transport (#30108)
## Summary - add an `EncodedFrame` type so IPC payloads are serialized and size-checked before entering bounded queues - add the V1 `operation/cancel` client-to-host message - pin the new wire shape with protocol tests ## Why The process-owned code-mode host needs bounded, pre-encoded outbound messages and a best-effort cancellation signal. Keeping these wire primitives in a protocol-only change lets their compatibility contract be reviewed independently from either endpoint. ## Stack This is **1 of 4** in the process-owned code-mode session stack. The next PR targets this branch. ## Validation - `just test -p codex-code-mode-protocol` — 22 passed - `just fix -p codex-code-mode-protocol` - `just fmt`
This commit is contained in:
@@ -365,6 +365,16 @@ fn client_to_host_v1_variants_are_pinned() {
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
assert_wire_round_trip(
|
||||
ClientToHost::CancelRequest {
|
||||
id: request_id(/*value*/ 9),
|
||||
},
|
||||
json!({
|
||||
"type": "operation/cancel",
|
||||
"id": 9,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user