fix(coding-agent): enforce safe auto-resized image limits closes #2055
This commit is contained in:
@@ -57,6 +57,10 @@ export async function processFileArguments(fileArgs: string[], options?: Process
|
||||
|
||||
if (autoResizeImages) {
|
||||
const resized = await resizeImage({ type: "image", data: base64Content, mimeType });
|
||||
if (!resized) {
|
||||
text += `<file name="${absolutePath}">[Image omitted: could not be resized below the inline image size limit.]</file>\n`;
|
||||
continue;
|
||||
}
|
||||
dimensionNote = formatDimensionNote(resized);
|
||||
attachment = {
|
||||
type: "image",
|
||||
|
||||
Reference in New Issue
Block a user