mirror of
https://github.com/openai/codex.git
synced 2026-10-21 17:48:44 +00:00
## Why RPC sending and waiting do not depend on request or response types, and Markdown layout does not depend on the parser iterator. Share these implementations across typed calls and parser variants. ## What changed - Extract `RpcClient::send_request_and_wait` into a non-generic async method, preserving registration before serialization and disconnected-client error precedence. - Remove the iterator type parameter from `Writer` and pass iterators to event traversal methods, retaining static dispatch and dropping the parser before rendering state, including on unwind. - Update streaming rendering and existing rendering tests to use the separate parser. GitOrigin-RevId: 4cc07223111b7c08211028948d13fe04598f8fc7