Skip to content

Commit a648462

Browse files
committed
fix: allow image pasting when AI is busy
- Remove sendingDisabled from shouldDisableImages logic in ChatView.tsx - Images can now be pasted and queued when AI is processing, consistent with text message queueing behavior - Fixes issue where image paste was blocked during AI processing while text could still be typed and queued Fixes #6395
1 parent e654ced commit a648462

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)