Allow typing into chat input / attaching while streaming (#544)

Fixes https://github.com/dyad-sh/dyad/issues/518
This commit is contained in:
Will Chen
2025-07-02 15:51:44 -07:00
committed by GitHub
parent 678cd3277e
commit e74bca6453

View File

@@ -316,7 +316,6 @@ export function ChatInput({ chatId }: { chatId?: number }) {
placeholder="Ask Dyad to build..." placeholder="Ask Dyad to build..."
className="flex-1 p-2 focus:outline-none overflow-y-auto min-h-[40px] max-h-[200px]" className="flex-1 p-2 focus:outline-none overflow-y-auto min-h-[40px] max-h-[200px]"
style={{ resize: "none" }} style={{ resize: "none" }}
disabled={isStreaming}
/> />
{isStreaming ? ( {isStreaming ? (
@@ -348,7 +347,6 @@ export function ChatInput({ chatId }: { chatId?: number }) {
<Button <Button
variant="ghost" variant="ghost"
onClick={handleAttachmentClick} onClick={handleAttachmentClick}
disabled={isStreaming}
title="Attach files" title="Attach files"
size="sm" size="sm"
> >