diff --git a/app/components/chat/AssistantMessage.tsx b/app/components/chat/AssistantMessage.tsx index 13908d8a..2d013b86 100644 --- a/app/components/chat/AssistantMessage.tsx +++ b/app/components/chat/AssistantMessage.tsx @@ -16,7 +16,6 @@ interface AssistantMessageProps { append?: (message: Message) => void; chatMode?: 'discuss' | 'build'; setChatMode?: (mode: 'discuss' | 'build') => void; - isStreaming?: boolean; } function openArtifactInWorkbench(filePath: string) { @@ -44,17 +43,7 @@ function normalizedFilePath(path: string) { } export const AssistantMessage = memo( - ({ - content, - annotations, - messageId, - onRewind, - onFork, - append, - chatMode, - setChatMode, - isStreaming, - }: AssistantMessageProps) => { + ({ content, annotations, messageId, onRewind, onFork, append, chatMode, setChatMode }: AssistantMessageProps) => { const filteredAnnotations = (annotations?.filter( (annotation: JSONValue) => annotation && typeof annotation === 'object' && Object.keys(annotation).includes('type'), @@ -152,7 +141,7 @@ export const AssistantMessage = memo( - + {content} diff --git a/app/components/chat/Markdown.tsx b/app/components/chat/Markdown.tsx index 28ced46f..24022286 100644 --- a/app/components/chat/Markdown.tsx +++ b/app/components/chat/Markdown.tsx @@ -18,11 +18,10 @@ interface MarkdownProps { append?: (message: Message) => void; chatMode?: 'discuss' | 'build'; setChatMode?: (mode: 'discuss' | 'build') => void; - isStreaming?: boolean; } export const Markdown = memo( - ({ children, html = false, limitedMarkdown = false, append, setChatMode, isStreaming }: MarkdownProps) => { + ({ children, html = false, limitedMarkdown = false, append, setChatMode }: MarkdownProps) => { logger.trace('Render'); const components = useMemo(() => { @@ -102,7 +101,6 @@ export const Markdown = memo( data-message={message} data-path={path} data-href={href} - disabled={isStreaming} onClick={() => { if (type === 'file') { openArtifactInWorkbench(path); diff --git a/app/components/chat/Messages.client.tsx b/app/components/chat/Messages.client.tsx index 037d26c4..6dc8d7f3 100644 --- a/app/components/chat/Messages.client.tsx +++ b/app/components/chat/Messages.client.tsx @@ -100,7 +100,6 @@ export const Messages = forwardRef( append={props.append} chatMode={props.chatMode} setChatMode={props.setChatMode} - isStreaming={isStreaming} /> )}