From 6a7adb4e9476d6d1c59c6d279d854a3f1b94c6b3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Feb 2026 16:31:28 +0100 Subject: [PATCH] fix: The detected filetype is PLAIN_TEXT, but the provided filetype was HTML (#6885) Co-authored-by: blackgirlbytes <22990146+blackgirlbytes@users.noreply.github.com> Co-authored-by: David Katz --- crates/goose/src/providers/formats/bedrock.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/goose/src/providers/formats/bedrock.rs b/crates/goose/src/providers/formats/bedrock.rs index 9eb6a2c2..8fc71e21 100644 --- a/crates/goose/src/providers/formats/bedrock.rs +++ b/crates/goose/src/providers/formats/bedrock.rs @@ -264,13 +264,12 @@ fn to_bedrock_document( Some((name, "txt")) => (name, bedrock::DocumentFormat::Txt), Some((name, "csv")) => (name, bedrock::DocumentFormat::Csv), Some((name, "md")) => (name, bedrock::DocumentFormat::Md), - Some((name, "html")) => (name, bedrock::DocumentFormat::Html), _ => return Ok(None), // Not a supported document type }; // Since we can't use the full path (due to character limit and also Bedrock does not accept `/` etc.), // and Bedrock wants document names to be unique, we're adding `tool_use_id` as a prefix to make - // document names unique. + // document names unique let name = format!("{tool_use_id}-{name}"); Ok(Some(