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 2b0577c725
commit 29310957c8
2 changed files with 51 additions and 4 deletions

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",