feat(coding-agent): add blockImages setting to prevent image uploads

This commit is contained in:
Josh 2026-01-06 00:20:44 -06:00
parent 9063a71fe6
commit b582a6b70d
No known key found for this signature in database
9 changed files with 266 additions and 25 deletions

View file

@ -592,7 +592,13 @@ export class AgentSession {
// Add user message
const userContent: (TextContent | ImageContent)[] = [{ type: "text", text: expandedText }];
if (options?.images) {
userContent.push(...options.images);
const blockImages = this.settingsManager.getBlockImages();
if (blockImages) {
// Log warning for blocked images
console.warn(`[blockImages] Blocked ${options.images.length} image(s) from being sent to provider`);
} else {
userContent.push(...options.images);
}
}
messages.push({
role: "user",