(({ onDone, t
showRooIgnoredFiles,
remoteBrowserEnabled,
maxReadFileLine,
+ maxImageFileSize,
+ maxTotalImageSize,
terminalCompressProgressBar,
maxConcurrentFileReads,
condensingApiConfigId,
@@ -321,6 +323,8 @@ const SettingsView = forwardRef(({ onDone, t
vscode.postMessage({ type: "maxWorkspaceFiles", value: maxWorkspaceFiles ?? 200 })
vscode.postMessage({ type: "showRooIgnoredFiles", bool: showRooIgnoredFiles })
vscode.postMessage({ type: "maxReadFileLine", value: maxReadFileLine ?? -1 })
+ vscode.postMessage({ type: "maxImageFileSize", value: maxImageFileSize ?? 5 })
+ vscode.postMessage({ type: "maxTotalImageSize", value: maxTotalImageSize ?? 20 })
vscode.postMessage({ type: "maxConcurrentFileReads", value: cachedState.maxConcurrentFileReads ?? 5 })
vscode.postMessage({ type: "includeDiagnosticMessages", bool: includeDiagnosticMessages })
vscode.postMessage({ type: "maxDiagnosticMessages", value: maxDiagnosticMessages ?? 50 })
@@ -667,6 +671,8 @@ const SettingsView = forwardRef(({ onDone, t
maxWorkspaceFiles={maxWorkspaceFiles ?? 200}
showRooIgnoredFiles={showRooIgnoredFiles}
maxReadFileLine={maxReadFileLine}
+ maxImageFileSize={maxImageFileSize}
+ maxTotalImageSize={maxTotalImageSize}
maxConcurrentFileReads={maxConcurrentFileReads}
profileThresholds={profileThresholds}
includeDiagnosticMessages={includeDiagnosticMessages}
diff --git a/webview-ui/src/context/ExtensionStateContext.tsx b/webview-ui/src/context/ExtensionStateContext.tsx
index ff1ce31c53..3d39613eda 100644
--- a/webview-ui/src/context/ExtensionStateContext.tsx
+++ b/webview-ui/src/context/ExtensionStateContext.tsx
@@ -120,6 +120,10 @@ export interface ExtensionStateContextType extends ExtensionState {
setAwsUsePromptCache: (value: boolean) => void
maxReadFileLine: number
setMaxReadFileLine: (value: number) => void
+ maxImageFileSize: number
+ setMaxImageFileSize: (value: number) => void
+ maxTotalImageSize: number
+ setMaxTotalImageSize: (value: number) => void
machineId?: string
pinnedApiConfigs?: Record
setPinnedApiConfigs: (value: Record) => void
@@ -208,6 +212,8 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
showRooIgnoredFiles: true, // Default to showing .rooignore'd files with lock symbol (current behavior).
renderContext: "sidebar",
maxReadFileLine: -1, // Default max read file line limit
+ maxImageFileSize: 5, // Default max image file size in MB
+ maxTotalImageSize: 20, // Default max total image size in MB
pinnedApiConfigs: {}, // Empty object for pinned API configs
terminalZshOhMy: false, // Default Oh My Zsh integration setting
maxConcurrentFileReads: 5, // Default concurrent file reads
@@ -448,6 +454,8 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
setRemoteBrowserEnabled: (value) => setState((prevState) => ({ ...prevState, remoteBrowserEnabled: value })),
setAwsUsePromptCache: (value) => setState((prevState) => ({ ...prevState, awsUsePromptCache: value })),
setMaxReadFileLine: (value) => setState((prevState) => ({ ...prevState, maxReadFileLine: value })),
+ setMaxImageFileSize: (value) => setState((prevState) => ({ ...prevState, maxImageFileSize: value })),
+ setMaxTotalImageSize: (value) => setState((prevState) => ({ ...prevState, maxTotalImageSize: value })),
setPinnedApiConfigs: (value) => setState((prevState) => ({ ...prevState, pinnedApiConfigs: value })),
setTerminalCompressProgressBar: (value) =>
setState((prevState) => ({ ...prevState, terminalCompressProgressBar: value })),
diff --git a/webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx b/webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx
index 1e5867d3fc..d9f8101113 100644
--- a/webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx
+++ b/webview-ui/src/context/__tests__/ExtensionStateContext.spec.tsx
@@ -209,6 +209,8 @@ describe("mergeExtensionState", () => {
sharingEnabled: false,
profileThresholds: {},
hasOpenedModeSelector: false, // Add the new required property
+ maxImageFileSize: 5,
+ maxTotalImageSize: 20,
}
const prevState: ExtensionState = {
diff --git a/webview-ui/src/i18n/locales/ca/settings.json b/webview-ui/src/i18n/locales/ca/settings.json
index ab929d724d..7264c85791 100644
--- a/webview-ui/src/i18n/locales/ca/settings.json
+++ b/webview-ui/src/i18n/locales/ca/settings.json
@@ -526,6 +526,16 @@
"profileDescription": "Llindar personalitzat només per a aquest perfil (substitueix el per defecte global)",
"inheritDescription": "Aquest perfil hereta el llindar per defecte global ({{threshold}}%)",
"usesGlobal": "(utilitza global {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "Mida màxima d'arxiu d'imatge",
+ "mb": "MB",
+ "description": "Mida màxima (en MB) per a arxius d'imatge que poden ser processats per l'eina de lectura d'arxius."
+ },
+ "maxTotalImageSize": {
+ "label": "Mida total màxima d'imatges",
+ "mb": "MB",
+ "description": "Límit de mida acumulativa màxima (en MB) per a totes les imatges processades en una sola operació read_file. Quan es llegeixen múltiples imatges, la mida de cada imatge s'afegeix al total. Si incloure una altra imatge excediria aquest límit, serà omesa."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/de/settings.json b/webview-ui/src/i18n/locales/de/settings.json
index 766bc891e4..1ba4286772 100644
--- a/webview-ui/src/i18n/locales/de/settings.json
+++ b/webview-ui/src/i18n/locales/de/settings.json
@@ -526,6 +526,16 @@
"profileDescription": "Benutzerdefinierter Schwellenwert nur für dieses Profil (überschreibt globalen Standard)",
"inheritDescription": "Dieses Profil erbt den globalen Standard-Schwellenwert ({{threshold}}%)",
"usesGlobal": "(verwendet global {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "Maximale Bilddateigröße",
+ "mb": "MB",
+ "description": "Maximale Größe (in MB) für Bilddateien, die vom read file Tool verarbeitet werden können."
+ },
+ "maxTotalImageSize": {
+ "label": "Maximale Gesamtbildgröße",
+ "mb": "MB",
+ "description": "Maximales kumulatives Größenlimit (in MB) für alle Bilder, die in einer einzelnen read_file-Operation verarbeitet werden. Beim Lesen mehrerer Bilder wird die Größe jedes Bildes zur Gesamtsumme addiert. Wenn das Einbeziehen eines weiteren Bildes dieses Limit überschreiten würde, wird es übersprungen."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/en/settings.json b/webview-ui/src/i18n/locales/en/settings.json
index cfd5b04286..8f40db0bff 100644
--- a/webview-ui/src/i18n/locales/en/settings.json
+++ b/webview-ui/src/i18n/locales/en/settings.json
@@ -502,6 +502,16 @@
"lines": "lines",
"always_full_read": "Always read entire file"
},
+ "maxImageFileSize": {
+ "label": "Max image file size",
+ "mb": "MB",
+ "description": "Maximum size (in MB) for image files that can be processed by the read file tool."
+ },
+ "maxTotalImageSize": {
+ "label": "Max total image size",
+ "mb": "MB",
+ "description": "Maximum cumulative size limit (in MB) for all images processed in a single read_file operation. When reading multiple images, each image's size is added to the total. If including another image would exceed this limit, it will be skipped."
+ },
"diagnostics": {
"includeMessages": {
"label": "Automatically include diagnostics in context",
diff --git a/webview-ui/src/i18n/locales/es/settings.json b/webview-ui/src/i18n/locales/es/settings.json
index f536863909..e6c101285d 100644
--- a/webview-ui/src/i18n/locales/es/settings.json
+++ b/webview-ui/src/i18n/locales/es/settings.json
@@ -502,6 +502,16 @@
"label": "Límite de lecturas simultáneas",
"description": "Número máximo de archivos que la herramienta 'read_file' puede procesar simultáneamente. Valores más altos pueden acelerar la lectura de múltiples archivos pequeños pero aumentan el uso de memoria."
},
+ "maxImageFileSize": {
+ "label": "Tamaño máximo de archivo de imagen",
+ "mb": "MB",
+ "description": "Tamaño máximo (en MB) para archivos de imagen que pueden ser procesados por la herramienta de lectura de archivos."
+ },
+ "maxTotalImageSize": {
+ "label": "Tamaño total máximo de imágenes",
+ "mb": "MB",
+ "description": "Límite de tamaño acumulativo máximo (en MB) para todas las imágenes procesadas en una sola operación read_file. Al leer múltiples imágenes, el tamaño de cada imagen se suma al total. Si incluir otra imagen excedería este límite, será omitida."
+ },
"diagnostics": {
"includeMessages": {
"label": "Incluir automáticamente diagnósticos en el contexto",
diff --git a/webview-ui/src/i18n/locales/fr/settings.json b/webview-ui/src/i18n/locales/fr/settings.json
index 0e12c58d38..bbe657082a 100644
--- a/webview-ui/src/i18n/locales/fr/settings.json
+++ b/webview-ui/src/i18n/locales/fr/settings.json
@@ -502,6 +502,16 @@
"label": "Limite de lectures simultanées",
"description": "Nombre maximum de fichiers que l'outil 'read_file' peut traiter simultanément. Des valeurs plus élevées peuvent accélérer la lecture de plusieurs petits fichiers mais augmentent l'utilisation de la mémoire."
},
+ "maxImageFileSize": {
+ "label": "Taille maximale des fichiers d'image",
+ "mb": "MB",
+ "description": "Taille maximale (en MB) pour les fichiers d'image qui peuvent être traités par l'outil de lecture de fichier."
+ },
+ "maxTotalImageSize": {
+ "label": "Taille totale maximale des images",
+ "mb": "MB",
+ "description": "Limite de taille cumulée maximale (en MB) pour toutes les images traitées dans une seule opération read_file. Lors de la lecture de plusieurs images, la taille de chaque image est ajoutée au total. Si l'inclusion d'une autre image dépasserait cette limite, elle sera ignorée."
+ },
"diagnostics": {
"includeMessages": {
"label": "Inclure automatiquement les diagnostics dans le contexte",
diff --git a/webview-ui/src/i18n/locales/hi/settings.json b/webview-ui/src/i18n/locales/hi/settings.json
index d2cfa971ff..33a23b2d11 100644
--- a/webview-ui/src/i18n/locales/hi/settings.json
+++ b/webview-ui/src/i18n/locales/hi/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "केवल इस प्रोफ़ाइल के लिए कस्टम सीमा (वैश्विक डिफ़ॉल्ट को ओवरराइड करता है)",
"inheritDescription": "यह प्रोफ़ाइल वैश्विक डिफ़ॉल्ट सीमा को इनहेरिट करता है ({{threshold}}%)",
"usesGlobal": "(वैश्विक {{threshold}}% का उपयोग करता है)"
+ },
+ "maxImageFileSize": {
+ "label": "अधिकतम छवि फ़ाइल आकार",
+ "mb": "MB",
+ "description": "छवि फ़ाइलों के लिए अधिकतम आकार (MB में) जो read file tool द्वारा प्रसंस्कृत किया जा सकता है।"
+ },
+ "maxTotalImageSize": {
+ "label": "अधिकतम कुल छवि आकार",
+ "mb": "MB",
+ "description": "एकल read_file ऑपरेशन में संसाधित सभी छवियों के लिए अधिकतम संचयी आकार सीमा (MB में)। कई छवियों को पढ़ते समय, प्रत्येक छवि का आकार कुल में जोड़ा जाता है। यदि किसी अन्य छवि को शामिल करने से यह सीमा पार हो जाएगी, तो उसे छोड़ दिया जाएगा।"
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/id/settings.json b/webview-ui/src/i18n/locales/id/settings.json
index 3f362f650d..12352cdeb8 100644
--- a/webview-ui/src/i18n/locales/id/settings.json
+++ b/webview-ui/src/i18n/locales/id/settings.json
@@ -531,6 +531,16 @@
"description": "Roo membaca sejumlah baris ini ketika model menghilangkan nilai start/end. Jika angka ini kurang dari total file, Roo menghasilkan indeks nomor baris dari definisi kode. Kasus khusus: -1 menginstruksikan Roo untuk membaca seluruh file (tanpa indexing), dan 0 menginstruksikannya untuk tidak membaca baris dan hanya menyediakan indeks baris untuk konteks minimal. Nilai yang lebih rendah meminimalkan penggunaan konteks awal, memungkinkan pembacaan rentang baris yang tepat selanjutnya. Permintaan start/end eksplisit tidak dibatasi oleh pengaturan ini.",
"lines": "baris",
"always_full_read": "Selalu baca seluruh file"
+ },
+ "maxImageFileSize": {
+ "label": "Ukuran file gambar maksimum",
+ "mb": "MB",
+ "description": "Ukuran maksimum (dalam MB) untuk file gambar yang dapat diproses oleh alat baca file."
+ },
+ "maxTotalImageSize": {
+ "label": "Ukuran total gambar maksimum",
+ "mb": "MB",
+ "description": "Batas ukuran kumulatif maksimum (dalam MB) untuk semua gambar yang diproses dalam satu operasi read_file. Saat membaca beberapa gambar, ukuran setiap gambar ditambahkan ke total. Jika menyertakan gambar lain akan melebihi batas ini, gambar tersebut akan dilewati."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/it/settings.json b/webview-ui/src/i18n/locales/it/settings.json
index 14deda20ea..5bb2e422a6 100644
--- a/webview-ui/src/i18n/locales/it/settings.json
+++ b/webview-ui/src/i18n/locales/it/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "Soglia personalizzata solo per questo profilo (sovrascrive il predefinito globale)",
"inheritDescription": "Questo profilo eredita la soglia predefinita globale ({{threshold}}%)",
"usesGlobal": "(usa globale {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "Dimensione massima file immagine",
+ "mb": "MB",
+ "description": "Dimensione massima (in MB) per i file immagine che possono essere elaborati dallo strumento di lettura file."
+ },
+ "maxTotalImageSize": {
+ "label": "Dimensione totale massima immagini",
+ "mb": "MB",
+ "description": "Limite di dimensione cumulativa massima (in MB) per tutte le immagini elaborate in una singola operazione read_file. Durante la lettura di più immagini, la dimensione di ogni immagine viene aggiunta al totale. Se l'inclusione di un'altra immagine supererebbe questo limite, verrà saltata."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/ja/settings.json b/webview-ui/src/i18n/locales/ja/settings.json
index d7864e40db..eb6c30bfe1 100644
--- a/webview-ui/src/i18n/locales/ja/settings.json
+++ b/webview-ui/src/i18n/locales/ja/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "このプロファイルのみのカスタムしきい値(グローバルデフォルトを上書き)",
"inheritDescription": "このプロファイルはグローバルデフォルトしきい値を継承します({{threshold}}%)",
"usesGlobal": "(グローバル {{threshold}}% を使用)"
+ },
+ "maxImageFileSize": {
+ "label": "最大画像ファイルサイズ",
+ "mb": "MB",
+ "description": "read fileツールで処理できる画像ファイルの最大サイズ(MB単位)。"
+ },
+ "maxTotalImageSize": {
+ "label": "最大合計画像サイズ",
+ "mb": "MB",
+ "description": "単一のread_file操作で処理されるすべての画像の累積サイズ制限(MB単位)。複数の画像を読み取る際、各画像のサイズが合計に加算されます。別の画像を含めるとこの制限を超える場合、その画像はスキップされます。"
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/ko/settings.json b/webview-ui/src/i18n/locales/ko/settings.json
index adbe216463..9bbaa6ca0c 100644
--- a/webview-ui/src/i18n/locales/ko/settings.json
+++ b/webview-ui/src/i18n/locales/ko/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "이 프로필만을 위한 사용자 정의 임계값 (글로벌 기본값 재정의)",
"inheritDescription": "이 프로필은 글로벌 기본 임계값을 상속합니다 ({{threshold}}%)",
"usesGlobal": "(글로벌 {{threshold}}% 사용)"
+ },
+ "maxImageFileSize": {
+ "label": "최대 이미지 파일 크기",
+ "mb": "MB",
+ "description": "read file 도구로 처리할 수 있는 이미지 파일의 최대 크기(MB 단위)입니다."
+ },
+ "maxTotalImageSize": {
+ "label": "최대 총 이미지 크기",
+ "mb": "MB",
+ "description": "단일 read_file 작업에서 처리되는 모든 이미지의 최대 누적 크기 제한(MB 단위)입니다. 여러 이미지를 읽을 때 각 이미지의 크기가 총계에 추가됩니다. 다른 이미지를 포함하면 이 제한을 초과하는 경우 해당 이미지는 건너뜁니다."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/nl/settings.json b/webview-ui/src/i18n/locales/nl/settings.json
index 6085be8fb1..228da40231 100644
--- a/webview-ui/src/i18n/locales/nl/settings.json
+++ b/webview-ui/src/i18n/locales/nl/settings.json
@@ -502,6 +502,16 @@
"label": "Limiet gelijktijdige bestandslezingen",
"description": "Maximum aantal bestanden dat de 'read_file' tool tegelijkertijd kan verwerken. Hogere waarden kunnen het lezen van meerdere kleine bestanden versnellen maar verhogen het geheugengebruik."
},
+ "maxImageFileSize": {
+ "label": "Maximum afbeeldingsbestandsgrootte",
+ "mb": "MB",
+ "description": "Maximale grootte (in MB) voor afbeeldingsbestanden die kunnen worden verwerkt door de read file tool."
+ },
+ "maxTotalImageSize": {
+ "label": "Maximale totale afbeeldingsgrootte",
+ "mb": "MB",
+ "description": "Maximale cumulatieve groottelimiet (in MB) voor alle afbeeldingen die in één read_file-bewerking worden verwerkt. Bij het lezen van meerdere afbeeldingen wordt de grootte van elke afbeelding bij het totaal opgeteld. Als het toevoegen van een andere afbeelding deze limiet zou overschrijden, wordt deze overgeslagen."
+ },
"diagnostics": {
"includeMessages": {
"label": "Automatisch diagnostiek opnemen in context",
diff --git a/webview-ui/src/i18n/locales/pl/settings.json b/webview-ui/src/i18n/locales/pl/settings.json
index 9107fd959e..615c0d68d7 100644
--- a/webview-ui/src/i18n/locales/pl/settings.json
+++ b/webview-ui/src/i18n/locales/pl/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "Niestandardowy próg tylko dla tego profilu (zastępuje globalny domyślny)",
"inheritDescription": "Ten profil dziedziczy globalny domyślny próg ({{threshold}}%)",
"usesGlobal": "(używa globalnego {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "Maksymalny rozmiar pliku obrazu",
+ "mb": "MB",
+ "description": "Maksymalny rozmiar (w MB) plików obrazów, które mogą być przetwarzane przez narzędzie do czytania plików."
+ },
+ "maxTotalImageSize": {
+ "label": "Maksymalny całkowity rozmiar obrazów",
+ "mb": "MB",
+ "description": "Maksymalny skumulowany limit rozmiaru (w MB) dla wszystkich obrazów przetwarzanych w jednej operacji read_file. Podczas odczytu wielu obrazów rozmiar każdego obrazu jest dodawany do sumy. Jeśli dołączenie kolejnego obrazu przekroczyłoby ten limit, zostanie on pominięty."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/pt-BR/settings.json b/webview-ui/src/i18n/locales/pt-BR/settings.json
index 8137d917ae..96ab854bfb 100644
--- a/webview-ui/src/i18n/locales/pt-BR/settings.json
+++ b/webview-ui/src/i18n/locales/pt-BR/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "Limite personalizado apenas para este perfil (substitui o padrão global)",
"inheritDescription": "Este perfil herda o limite padrão global ({{threshold}}%)",
"usesGlobal": "(usa global {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "Tamanho máximo do arquivo de imagem",
+ "mb": "MB",
+ "description": "Tamanho máximo (em MB) para arquivos de imagem que podem ser processados pela ferramenta de leitura de arquivos."
+ },
+ "maxTotalImageSize": {
+ "label": "Tamanho total máximo da imagem",
+ "mb": "MB",
+ "description": "Limite máximo de tamanho cumulativo (em MB) para todas as imagens processadas em uma única operação read_file. Ao ler várias imagens, o tamanho de cada imagem é adicionado ao total. Se incluir outra imagem exceder esse limite, ela será ignorada."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/ru/settings.json b/webview-ui/src/i18n/locales/ru/settings.json
index e93f24e9d7..bda495d04a 100644
--- a/webview-ui/src/i18n/locales/ru/settings.json
+++ b/webview-ui/src/i18n/locales/ru/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "Пользовательский порог только для этого профиля (переопределяет глобальный по умолчанию)",
"inheritDescription": "Этот профиль наследует глобальный порог по умолчанию ({{threshold}}%)",
"usesGlobal": "(использует глобальный {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "Максимальный размер файла изображения",
+ "mb": "MB",
+ "description": "Максимальный размер (в МБ) для файлов изображений, которые могут быть обработаны инструментом чтения файлов."
+ },
+ "maxTotalImageSize": {
+ "label": "Максимальный общий размер изображений",
+ "mb": "МБ",
+ "description": "Максимальный совокупный лимит размера (в МБ) для всех изображений, обрабатываемых в одной операции read_file. При чтении нескольких изображений размер каждого изображения добавляется к общему. Если включение другого изображения превысит этот лимит, оно будет пропущено."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/tr/settings.json b/webview-ui/src/i18n/locales/tr/settings.json
index 450738183b..e3e71633f3 100644
--- a/webview-ui/src/i18n/locales/tr/settings.json
+++ b/webview-ui/src/i18n/locales/tr/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "Sadece bu profil için özel eşik (küresel varsayılanı geçersiz kılar)",
"inheritDescription": "Bu profil küresel varsayılan eşiği miras alır ({{threshold}}%)",
"usesGlobal": "(küresel {{threshold}}% kullanır)"
+ },
+ "maxImageFileSize": {
+ "label": "Maksimum görüntü dosyası boyutu",
+ "mb": "MB",
+ "description": "Dosya okuma aracı tarafından işlenebilecek görüntü dosyaları için maksimum boyut (MB cinsinden)."
+ },
+ "maxTotalImageSize": {
+ "label": "Maksimum toplam görüntü boyutu",
+ "mb": "MB",
+ "description": "Tek bir read_file işleminde işlenen tüm görüntüler için maksimum kümülatif boyut sınırı (MB cinsinden). Birden çok görüntü okurken, her görüntünün boyutu toplama eklenir. Başka bir görüntü eklemek bu sınırı aşacaksa, atlanacaktır."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/vi/settings.json b/webview-ui/src/i18n/locales/vi/settings.json
index 87e99ce6f5..9bcbb1263a 100644
--- a/webview-ui/src/i18n/locales/vi/settings.json
+++ b/webview-ui/src/i18n/locales/vi/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "Ngưỡng tùy chỉnh chỉ cho hồ sơ này (ghi đè mặc định toàn cục)",
"inheritDescription": "Hồ sơ này kế thừa ngưỡng mặc định toàn cục ({{threshold}}%)",
"usesGlobal": "(sử dụng toàn cục {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "Kích thước tối đa của tệp hình ảnh",
+ "mb": "MB",
+ "description": "Kích thước tối đa (tính bằng MB) cho các tệp hình ảnh có thể được xử lý bởi công cụ đọc tệp."
+ },
+ "maxTotalImageSize": {
+ "label": "Kích thước tổng tối đa của hình ảnh",
+ "mb": "MB",
+ "description": "Giới hạn kích thước tích lũy tối đa (tính bằng MB) cho tất cả hình ảnh được xử lý trong một thao tác read_file duy nhất. Khi đọc nhiều hình ảnh, kích thước của mỗi hình ảnh được cộng vào tổng. Nếu việc thêm một hình ảnh khác sẽ vượt quá giới hạn này, nó sẽ bị bỏ qua."
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/zh-CN/settings.json b/webview-ui/src/i18n/locales/zh-CN/settings.json
index e94c857e65..5cbd80aed6 100644
--- a/webview-ui/src/i18n/locales/zh-CN/settings.json
+++ b/webview-ui/src/i18n/locales/zh-CN/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "仅此配置文件的自定义阈值(覆盖全局默认)",
"inheritDescription": "此配置文件继承全局默认阈值({{threshold}}%)",
"usesGlobal": "(使用全局 {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "最大图像文件大小",
+ "mb": "MB",
+ "description": "read file工具可以处理的图像文件的最大大小(以MB为单位)。"
+ },
+ "maxTotalImageSize": {
+ "label": "图片总大小上限",
+ "mb": "MB",
+ "description": "单次 read_file 操作中处理的所有图片的最大累计大小限制(MB)。读取多张图片时,每张图片的大小会累加到总大小中。如果包含另一张图片会超过此限制,则会跳过该图片。"
}
},
"terminal": {
diff --git a/webview-ui/src/i18n/locales/zh-TW/settings.json b/webview-ui/src/i18n/locales/zh-TW/settings.json
index fa10cf3028..b9e9f1ef06 100644
--- a/webview-ui/src/i18n/locales/zh-TW/settings.json
+++ b/webview-ui/src/i18n/locales/zh-TW/settings.json
@@ -527,6 +527,16 @@
"profileDescription": "僅此檔案的自訂閾值(覆蓋全域預設)",
"inheritDescription": "此檔案繼承全域預設閾值({{threshold}}%)",
"usesGlobal": "(使用全域 {{threshold}}%)"
+ },
+ "maxImageFileSize": {
+ "label": "最大圖像檔案大小",
+ "mb": "MB",
+ "description": "read file工具可以處理的圖像檔案的最大大小(以MB為單位)。"
+ },
+ "maxTotalImageSize": {
+ "label": "圖片總大小上限",
+ "mb": "MB",
+ "description": "單次 read_file 操作中處理的所有圖片的最大累計大小限制(MB)。讀取多張圖片時,每張圖片的大小會累加到總大小中。如果包含另一張圖片會超過此限制,則會跳過該圖片。"
}
},
"terminal": {