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
This commit is contained in:
Roo Code 2025-07-30 00:40:00 +00:00
parent e654ced135
commit 472cf41325

View file

@ -811,8 +811,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
const selectImages = useCallback(() => 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) => {