diff options
| author | Seth Troisi <[email protected]> | 2025-06-12 16:17:44 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-12 16:17:44 -0700 |
| commit | dc378e8d604030d934959cceefed4aef5a1ea6b0 (patch) | |
| tree | edfeed860ef666af3f1120c882e602885926aa9e /packages/cli/src/ui/hooks/atCommandProcessor.ts | |
| parent | b7daa7c7021691e3466c4b629e600b7b3af949f0 (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.ts | 5 |
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 ---' }); |
