- )}
-
-
-
- {messages
- .filter((m) => !m.id?.startsWith(DO_NOT_RENDER_ID_PREFIX))
- .map((message, index) =>
- message.type === "human" ? (
-
- ) : (
-
- ),
- )}
- {/* Special rendering case where there are no AI/tool messages, but there is an interrupt.
- We need to render it outside of the messages list, since there are no messages to render */}
- {hasNoAIOrToolMessages && !!stream.interrupt && (
-
- )}
- {isLoading && !firstTokenReceived && (
-
- )}
- >
- }
- footer={
-
- {!chatStarted && (
-
-
-
- Agent Chat
-
-
- )}
-
-
-
-
-
+ ) : (
+
+ ),
+ )}
+ {/* Special rendering case where there are no AI/tool messages, but there is an interrupt.
+ We need to render it outside of the messages list, since there are no messages to render */}
+ {hasNoAIOrToolMessages && !!stream.interrupt && (
+
+ )}
+ {isLoading && !firstTokenReceived && (
+
+ )}
+ >
+ }
+ footer={
+