Re-enable stream end tags for new listener setup

This commit is contained in:
Cody Daniels
2025-08-05 10:15:37 +09:00
parent a7afdfc7cd
commit fce429002f
2 changed files with 2 additions and 2 deletions

View File

@@ -346,7 +346,7 @@ class IPCServer:
await self._add_to_chat_history(project_state_id, convo, message, str(response)) await self._add_to_chat_history(project_state_id, convo, message, str(response))
# Send final message # Send final message
# await send_stream_chunk(writer, message_type, None, request_id) await send_stream_chunk(writer, message_type, None, request_id)
except (ConnectionResetError, BrokenPipeError) as err: except (ConnectionResetError, BrokenPipeError) as err:
log.error(f"Failed to send streaming response: {err}", exc_info=True) log.error(f"Failed to send streaming response: {err}", exc_info=True)

View File

@@ -228,7 +228,7 @@ class IPCClientUI(UIBase):
return return
if chunk is None: if chunk is None:
chunk = "\n" # end of stream chunk = "<__stream_end__>" # end of stream
await self._send( await self._send(
MessageType.STREAM, MessageType.STREAM,