diff --git a/codex-rs/core/src/realtime_conversation.rs b/codex-rs/core/src/realtime_conversation.rs index 17c1450cca..631778d0c1 100644 --- a/codex-rs/core/src/realtime_conversation.rs +++ b/codex-rs/core/src/realtime_conversation.rs @@ -621,7 +621,7 @@ fn realtime_text_from_handoff_request(handoff: &RealtimeHandoffRequested) -> Opt (!active_transcript.is_empty()) .then_some(active_transcript) .or_else(|| { - (!handoff.input_transcript.is_empty()).then(|| handoff.input_transcript.clone()) + (!handoff.input_transcript.is_empty()).then_some(handoff.input_transcript.clone()) }) }