{"record":{"id":"6dc3437ab18d2ad5","repo":"zed-industries/zed","slug":"this-model-does-not-support-images-yet","errorCode":null,"errorMessage":"This model does not support images yet","messagePattern":"This model does not support images yet","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/mention_set.rs","lineNumber":405,"sourceCode":"        supports_images: bool,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<Mention>> {\n        let Some(project) = self.project.upgrade() else {\n            return Task::ready(Err(anyhow!(\"project not found\")));\n        };\n\n        let Some(project_path) = project\n            .read(cx)\n            .project_path_for_absolute_path(&abs_path, cx)\n        else {\n            return Task::ready(Err(anyhow!(\n                \"project path not found for file mention {abs_path:?}\"\n            )));\n        };\n\n        if is_raster_image_path(&abs_path) {\n            if !supports_images {\n                return Task::ready(Err(anyhow!(\"This model does not support images yet\")));\n            }\n            let task = project.update(cx, |project, cx| project.open_image(project_path, cx));\n            return cx.spawn(async move |_, cx| {\n                let image = task.await?;\n                let image = image.update(cx, |image, _| image.image.clone());\n                let image = cx\n                    .update(|cx| LanguageModelImage::from_image(image, cx))\n                    .await;\n                if let Some(image) = image {\n                    Ok(Mention::Image(MentionImage {\n                        data: image.source,\n                        format: LanguageModelImage::FORMAT,\n                    }))\n                } else {\n                    Err(anyhow!(\"Failed to convert image\"))\n                }\n            });\n        }","sourceCodeStart":387,"sourceCodeEnd":423,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/agent_ui/src/mention_set.rs#L387-L423","documentation":"Emitted by confirm_mention_for_file when the mentioned path is a raster image but the active language model lacks image input support (supports_images is false). The mention itself is valid; it is refused because attaching it would produce a message the model cannot process. The offending condition is the selected model's missing image capability.","triggerScenarios":"Thrown at crates/agent_ui/src/mention_set.rs:405 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Switch to a model that supports image inputs before mentioning the image","Mention a text file instead, or transcribe the image's content manually"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}