fix: remove unused isStreaming prop from quickActions

The isStreaming prop was passed through multiple chat components but wasn't being strict enough in the Markdown component where it was ultimately passed causing the quick actions to be disabled.
This commit is contained in:
KevIsDev
2025-05-27 12:14:50 +01:00
parent de0a41b5f1
commit 12f9f4dcdc
3 changed files with 3 additions and 17 deletions

View File

@@ -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);