mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
codex: address PR review feedback (#15106)
This commit is contained in:
@@ -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(),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user