feat: warn about unsupported attachment inputs

Compare normalized attachment MIME types with the selected model's declared input modalities and show a non-blocking warning for incompatible files.

Recheck newly added attachments, restored drafts, async metadata, and existing files after model changes while avoiding warnings when capability metadata is unavailable. Summarize affected filenames and localize the warning across every supported locale.

Add focused modality compatibility coverage, document the composer behavior, and keep model metadata subscriptions stable to prevent startup render loops.
This commit is contained in:
Bohdan Triapitsyn
2026-07-22 14:40:40 +03:00
parent fd0f6a6bac
commit d654911925
14 changed files with 123 additions and 1 deletions
+1
View File
@@ -1968,6 +1968,7 @@ export const dict: Record<I18nKey, string> = {
"chat.chatInput.toast.addedFileMentions": "Se añadieron {count} mención(es) de archivo",
"chat.chatInput.toast.attachFileFailed": "No se pudo adjuntar el archivo",
"chat.chatInput.toast.attachNamedFailed": "No se pudo adjuntar {name}",
"chat.chatInput.toast.unsupportedAttachmentModalities": "{model} no admite la entrada de {modalities} necesaria para {files}. Aún puedes enviar el mensaje, pero estos adjuntos podrían ignorarse.",
"chat.chatInput.toast.someFilesSkipped": "Algunos archivos se omitieron:\n{summary}",
"chat.chatInput.toast.vscodePickFailed": "No se pudieron seleccionar archivos en VS Code",
"chat.chatInput.toast.openSessionFirst": "Abre una sesión primero",