codex: address PR review feedback (#15106)

This commit is contained in:
Eric Traut
2026-03-21 15:11:28 -06:00
parent 50b61563c5
commit d4c72ea829
3 changed files with 77 additions and 9 deletions
@@ -406,11 +406,8 @@ impl EventProcessorWithJsonOutput {
}
match notification.turn.status {
TurnStatus::Completed => {
if self.final_message.is_none() {
self.final_message = Self::final_message_from_turn_items(
notification.turn.items.as_slice(),
);
}
self.final_message =
Self::final_message_from_turn_items(notification.turn.items.as_slice());
events.push(ThreadEvent::TurnCompleted(TurnCompletedEvent {
usage: self.usage_from_last_total(),
}));