The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway/stream): no uneditable preview after a failed first send
teknium180aec2223e16
diff --git a/gateway/stream_consumer_transport.py b/gateway/stream_consumer_transport.pyindex 52c16dcc331..cca45c0e509 100644--- a/gateway/stream_consumer_transport.py+++ b/gateway/stream_consumer_transport.py@@ -349,6 +349,10 @@ class StreamTransportMixin:self._last_edit_overflowed = Falsetry:if self._message_id is None:+ if not self._edit_supported and not finalize:+ # A failed send disabled edits: a preview sent now could never be updated and+ # would stay on screen truncated next to the final reply. Send only the final.+ return Falsereturn await self._first_send(text, finalize=finalize)if not self._edit_supported:return False # edits unsupported; fallback path sends the final