mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
Chat attachments with non-ASCII filenames (e.g. Chinese) get sanitized at upload time — `人人有虾.docx` is stored as `1777391026594_____.docx`. Tools then receive only the original filename via '[Attachment] foo.docx' and fail with 'file not found'. - renderMessageContent now appends the actual server-side path so any tool the LLM picks (read_file / extract_document_text / detect_file_type) gets a path that resolves directly. - New ChatUploadResolver helper performs basename-suffix matching inside the conversation's chat-upload directory; ReadFileTool, DocumentExtractTool and FileTypeDetectorTool fall through to it when the literal path does not exist (defense in depth for cases where the LLM ignores the path hint). Refs https://github.com/matevip/mateclaw/issues/29 |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||
| settings.xml | ||