From 9474ddab97bd0120fbb16472ded80adcd6d35f5c Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Tue, 1 Dec 2026 04:03:10 -0800 Subject: [PATCH] fix: name the extension as the reason read_s3_file skips a file Co-Authored-By: Claude Opus 5.5 --- backend/windmill-api/src/ai_session_tools/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/windmill-api/src/ai_session_tools/storage.rs b/backend/windmill-api/src/ai_session_tools/storage.rs index 060710c6eb..c2d18b96de 100644 --- a/backend/windmill-api/src/ai_session_tools/storage.rs +++ b/backend/windmill-api/src/ai_session_tools/storage.rs @@ -256,7 +256,7 @@ async fn read_s3_file(ctx: &Ctx<'_>, args: &Value) -> ToolResult { // could not see the file either, even while it is open in the side panel. let reason = match preview["msg"].as_str() { Some(m) if m.starts_with("Preview is not available") => { - "it is not a text, table or image file" + "it does not read files with this extension" } Some(m) => m, None => "the server returned no content",