fix: handle @dir in command (#2533)

This commit is contained in:
Aiden Cline
2025-09-10 13:27:44 -05:00
committed by GitHub
parent 518f449396
commit 16eac2dea6
2 changed files with 51 additions and 4 deletions
+2 -2
View File
@@ -487,8 +487,8 @@ export namespace MessageV2 {
text: part.text,
},
]
// text/plain files are converted into text parts, ignore them
if (part.type === "file" && part.mime !== "text/plain")
// text/plain and directory files are converted into text parts, ignore them
if (part.type === "file" && part.mime !== "text/plain" && part.mime !== "application/x-directory")
return [
{
type: "file",