Expand description
Codex exec --json → AgentEvent translator — the answer text only.
Scoped to what a tool-less, one-shot turn produces (/btw,
server/agent_handlers/side_question.rs): assistant text, the end of
the turn, and failures. Tool items (command_execution,
mcp_tool_call, …) are dropped rather than translated; the full
renderer is the frontend’s providers/codex-translator.ts, which this
follows for the frames it does handle:
item.started/item.updated/item.completedwithitem.type = "agent_message"(text initem.text) oritem.type = "message",role = "assistant"(text inoutput_textcontent blocks). Each carries the item’s text SO FAR, not a delta, so only the new suffix is emitted asAssistantText.turn.completed—Done, whoseresponseis every message’s text.turn.failed/error—Error. Anerrorwhose message containsReconnecting...is a transient retry notice, not a failure.