summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/atCommandProcessor.ts
diff options
context:
space:
mode:
authorSeth Troisi <[email protected]>2025-06-12 16:17:44 -0700
committerGitHub <[email protected]>2025-06-12 16:17:44 -0700
commitdc378e8d604030d934959cceefed4aef5a1ea6b0 (patch)
treeedfeed860ef666af3f1120c882e602885926aa9e /packages/cli/src/ui/hooks/atCommandProcessor.ts
parentb7daa7c7021691e3466c4b629e600b7b3af949f0 (diff)
Have @ pass through images and other Part objects (#990)
Diffstat (limited to 'packages/cli/src/ui/hooks/atCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/atCommandProcessor.ts5
1 files changed, 5 insertions, 0 deletions
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 ---' });