diff --git a/gateway/run_turn_runner.py b/gateway/run_turn_runner.py index f480d22fb9..54ddc7dd3b 100644 --- a/gateway/run_turn_runner.py +++ b/gateway/run_turn_runner.py @@ -377,7 +377,14 @@ class TurnRunner(GatewayTurnProgressMixin, GatewaySessionAgentMixin): if unseen: return if stream_consumer is not None: - stream_consumer.on_segment_break() if already_streamed else stream_consumer.on_commentary(text) + # The agent's own streaming may be feeding an execution observer rather than this + # adapter, so ``already_streamed`` alone does not mean the consumer saw the deltas. + # Deduplicate only against deltas this consumer actually accepted; otherwise the + # commentary would be dropped (``on_segment_break`` carries no text). + if already_streamed and stream_consumer.stream_deltas_enabled: + stream_consumer.on_segment_break() + else: + stream_consumer.on_commentary(text) elif not already_streamed and ctx._status_adapter and str(text or "").strip(): self._send_status_text(text, ctx._status_thread_metadata, "interim_assistant_callback scheduling error")