馃悶Describe the bug
During a chat, uploading a Latex file with extension .tex is allowed, but it's causing an error "Failed to run stream handler: An error occurred (ValidationException) when calling the ConverseStream operation: Document format is required.".
Renaming the file with ".txt" is not solving the problem, it's causing another MIME error: "Failed to run stream handler: An error occurred (ValidationException) when calling the ConverseStream operation: Unsupported MIME type: application/x-tex. Retry your request with a supported file type: xlsx, txt, pdf, csv, md, doc, html, xls, docx".
const TEXT_FILE_EXTENSIONS in frontend/src/constants/supportedAttachedFiles.ts provides .tex as an allowed extension for text file.
馃攧 To Reproduce
Steps to reproduce the behavior:
- Go to new chat using for instance Claude Sonnet 4.6
- Upload a Latex file (.tex)
- Ask something (send request)
- A "Failed to run stream handler: An error occurred (ValidationException) when calling the ConverseStream operation: Document format is required." shows up.
馃摲 Screenshots

馃悶Describe the bug
During a chat, uploading a Latex file with extension .tex is allowed, but it's causing an error "Failed to run stream handler: An error occurred (ValidationException) when calling the ConverseStream operation: Document format is required.".
Renaming the file with ".txt" is not solving the problem, it's causing another MIME error: "Failed to run stream handler: An error occurred (ValidationException) when calling the ConverseStream operation: Unsupported MIME type: application/x-tex. Retry your request with a supported file type: xlsx, txt, pdf, csv, md, doc, html, xls, docx".
const TEXT_FILE_EXTENSIONS in
frontend/src/constants/supportedAttachedFiles.tsprovides .tex as an allowed extension for text file.馃攧 To Reproduce
Steps to reproduce the behavior:
馃摲 Screenshots