pub fn codex_failure_text(frame: &Value) -> Option<String>
The message of a Codex error or turn.failed frame, or None for any other frame and for the Reconnecting... retry notices, which are not failures.
error
turn.failed
None
Reconnecting...