Skip to content

Commit 472cf41

Browse files
committed
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
1 parent e654ced commit 472cf41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
811811

812812
const selectImages = useCallback(() => vscode.postMessage({ type: "selectImages" }), [])
813813

814-
const shouldDisableImages =
815-
!model?.supportsImages || sendingDisabled || selectedImages.length >= MAX_IMAGES_PER_MESSAGE
814+
const shouldDisableImages = !model?.supportsImages || selectedImages.length >= MAX_IMAGES_PER_MESSAGE
816815

817816
const handleMessage = useCallback(
818817
(e: MessageEvent) => {

0 commit comments

Comments
 (0)