We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba397ce commit 802fa5dCopy full SHA for 802fa5d
src/core/tools/readFileTool.ts
@@ -730,8 +730,9 @@ export async function readFileTool(
730
// Combine all images: feedback images first, then file images
731
const allImages = [...feedbackImages, ...fileImageUrls]
732
733
- // Use the supportsImages check from the beginning of the function
734
- const imagesToInclude = supportsImages ? allImages : []
+ // Re-check if the model supports images before including them, in case it changed during execution.
+ const finalModelSupportsImages = cline.api.getModel().info.supportsImages ?? false
735
+ const imagesToInclude = finalModelSupportsImages ? allImages : []
736
737
// Push the result with appropriate formatting
738
if (statusMessage || imagesToInclude.length > 0) {
0 commit comments