pub struct CodexAdapter;Expand description
The Codex CLI adapter: tails ~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl
and converts records to user_message / agent_message / thinking /
tool_call / tool_result events. Stateless; the tailer thread holds all
mutable state.
§Experimental
This adapter is built against the researched Codex CLI rollout format
(https://github.com/openai/codex) without real captured fixture files.
The parser handles the documented record types (session_meta,
turn_context, response_item, event_msg) and degrades gracefully on
unknown types. If you encounter a session that produces 0 steps despite
having a transcript, run HH_DEBUG=1 hh run -- codex ... and file an issue
with the debug output.
Trait Implementations§
Source§impl Adapter for CodexAdapter
impl Adapter for CodexAdapter
Source§fn agent_kind(&self) -> AgentKind
fn agent_kind(&self) -> AgentKind
The agent kind this adapter reports for the session row.
Source§fn spawn(self: Box<Self>, ctx: AdapterContext) -> Result<AdapterHandle>
fn spawn(self: Box<Self>, ctx: AdapterContext) -> Result<AdapterHandle>
Spawn the tailer thread, returning the event stream + outcome handle. Read more
Source§impl Clone for CodexAdapter
impl Clone for CodexAdapter
Source§fn clone(&self) -> CodexAdapter
fn clone(&self) -> CodexAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodexAdapter
impl RefUnwindSafe for CodexAdapter
impl Send for CodexAdapter
impl Sync for CodexAdapter
impl Unpin for CodexAdapter
impl UnsafeUnpin for CodexAdapter
impl UnwindSafe for CodexAdapter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more