From 472cf41325bba1fb504d20759aebd0b864edcbfd Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 30 Jul 2025 00:40:00 +0000 Subject: [PATCH] fix: allow image pasting while task is active - Removed sendingDisabled from shouldDisableImages condition - Users can now paste images into the chatbox even when a task is running - This improves UX by allowing image context to be added during task execution --- webview-ui/src/components/chat/ChatView.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index c1ba4e65c9..46790b41ef 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -811,8 +811,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction vscode.postMessage({ type: "selectImages" }), []) - const shouldDisableImages = - !model?.supportsImages || sendingDisabled || selectedImages.length >= MAX_IMAGES_PER_MESSAGE + const shouldDisableImages = !model?.supportsImages || selectedImages.length >= MAX_IMAGES_PER_MESSAGE const handleMessage = useCallback( (e: MessageEvent) => {