From dc378e8d604030d934959cceefed4aef5a1ea6b0 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Thu, 12 Jun 2025 16:17:44 -0700 Subject: Have @ pass through images and other Part objects (#990) --- packages/cli/src/ui/hooks/atCommandProcessor.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/cli/src/ui/hooks/atCommandProcessor.ts') diff --git a/packages/cli/src/ui/hooks/atCommandProcessor.ts b/packages/cli/src/ui/hooks/atCommandProcessor.ts index 04e64f45..edbbdc21 100644 --- a/packages/cli/src/ui/hooks/atCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/atCommandProcessor.ts @@ -381,7 +381,12 @@ export async function handleAtCommand({ text: `\nContent from @${filePathSpecInContent}:\n`, }); processedQueryParts.push({ text: fileActualContent }); + } else { + processedQueryParts.push({ text: part }); } + } else { + // part is a Part object. + processedQueryParts.push(part); } } processedQueryParts.push({ text: '\n--- End of content ---' }); -- cgit v1.2.3