This commit is contained in:
Cristina Poncela Cubeiro
2026-05-04 15:43:45 +02:00
parent 59a89e0c1c
commit cbf3c333ef
14 changed files with 31 additions and 395 deletions

View File

@@ -502,8 +502,10 @@ function extractTextContent(message: Message): string {
if (typeof content === "string") {
return content;
}
const textBlocks = content.filter((block): block is TextContent => block.type === "text") as TextContent[];
return textBlocks.map((block) => block.text).join(" ");
return content
.filter((block): block is TextContent => block.type === "text")
.map((block) => block.text)
.join(" ");
}
function getLastActivityTime(entries: FileEntry[]): number | undefined {