on main help sign in
fix(tools): lowercase 'image file is too large' error message

Consistent with the lowercase convention established in the previous commit for view.go error messages.

commitb203f9c24f8a7c9438095628136c467f505767bb authoriko <mail@iko.soy> dateThu 9 Jul 2026, 03:33 (3 months ago) parent0bfed63
1 file changed+1−1
internal/agent/tools/view.go+1−1
internal/agent/tools/view.go+1−1
@@ -204,7 +204,7 @@ func NewViewTool(
204204 isSupportedImage, mimeType := getImageMimeType(filePath)
205205 if isSupportedImage {
206206 if fileInfo.Size() > MaxViewSize {
207− return fantasy.NewTextErrorResponse(fmt.Sprintf("Image file is too large (%d bytes). Maximum size is %d bytes",
207+ return fantasy.NewTextErrorResponse(fmt.Sprintf("image file is too large (%d bytes). Maximum size is %d bytes",
208208 fileInfo.Size(), MaxViewSize)), nil
209209 }
210210 if !GetSupportsImagesFromContext(ctx) {