Skip to content

Commit 1804d08

Browse files
committed
Update and internationalize mistake limit guidance
1 parent 51475ab commit 1804d08

File tree

18 files changed

+36
-20
lines changed

18 files changed

+36
-20
lines changed

src/core/task/Task.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { ProviderSettings } from "../../shared/api"
2020
import { findLastIndex } from "../../shared/array"
2121
import { combineApiRequests } from "../../shared/combineApiRequests"
2222
import { combineCommandSequences } from "../../shared/combineCommandSequences"
23+
import { t } from "../../i18n"
2324
import {
2425
ClineApiReqCancelReason,
2526
ClineApiReqInfo,
@@ -1039,9 +1040,7 @@ export class Task extends EventEmitter<ClineEvents> {
10391040
if (this.consecutiveMistakeCount >= this.consecutiveMistakeLimit) {
10401041
const { response, text, images } = await this.ask(
10411042
"mistake_limit_reached",
1042-
this.api.getModel().id.includes("claude")
1043-
? `This may indicate a failure in his thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. "Try breaking down the task into smaller steps").`
1044-
: "Roo Code uses complex prompts and iterative task execution that may be challenging for less capable models. For best results, it's recommended to use Claude 3.7 Sonnet for its advanced agentic coding capabilities.",
1043+
t("common:errors.mistake_limit_guidance"),
10451044
)
10461045

10471046
if (response === "messageResponse") {

src/i18n/locales/ca/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"failed_remove_directory": "Ha fallat l'eliminació del directori de tasques: {{error}}",
5757
"custom_storage_path_unusable": "La ruta d'emmagatzematge personalitzada \"{{path}}\" no és utilitzable, s'utilitzarà la ruta predeterminada",
5858
"cannot_access_path": "No es pot accedir a la ruta {{path}}: {{error}}",
59-
"settings_import_failed": "Ha fallat la importació de la configuració: {{error}}."
59+
"settings_import_failed": "Ha fallat la importació de la configuració: {{error}}.",
60+
"mistake_limit_guidance": "Això pot indicar un error en el procés de pensament del model o la incapacitat d'utilitzar una eina correctament, que es pot mitigar amb orientació de l'usuari (p. ex. \"Prova de dividir la tasca en passos més petits\")."
6061
},
6162
"warnings": {
6263
"no_terminal_content": "No s'ha seleccionat contingut de terminal",

src/i18n/locales/de/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"failed_remove_directory": "Fehler beim Entfernen des Aufgabenverzeichnisses: {{error}}",
5353
"custom_storage_path_unusable": "Benutzerdefinierter Speicherpfad \"{{path}}\" ist nicht verwendbar, Standardpfad wird verwendet",
5454
"cannot_access_path": "Zugriff auf Pfad {{path}} nicht möglich: {{error}}",
55-
"settings_import_failed": "Fehler beim Importieren der Einstellungen: {{error}}."
55+
"settings_import_failed": "Fehler beim Importieren der Einstellungen: {{error}}.",
56+
"mistake_limit_guidance": "Dies kann auf einen Fehler im Denkprozess des Modells oder die Unfähigkeit hinweisen, ein Tool richtig zu verwenden, was durch Benutzerführung behoben werden kann (z.B. \"Versuche, die Aufgabe in kleinere Schritte zu unterteilen\")."
5657
},
5758
"warnings": {
5859
"no_terminal_content": "Kein Terminal-Inhalt ausgewählt",

src/i18n/locales/en/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"custom_storage_path_unusable": "Custom storage path \"{{path}}\" is unusable, will use default path",
5353
"cannot_access_path": "Cannot access path {{path}}: {{error}}",
5454
"failed_update_project_mcp": "Failed to update project MCP servers",
55-
"settings_import_failed": "Settings import failed: {{error}}."
55+
"settings_import_failed": "Settings import failed: {{error}}.",
56+
"mistake_limit_guidance": "This may indicate a failure in the model's thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. \"Try breaking down the task into smaller steps\")."
5657
},
5758
"warnings": {
5859
"no_terminal_content": "No terminal content selected",

src/i18n/locales/es/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"failed_remove_directory": "Error al eliminar el directorio de tareas: {{error}}",
5353
"custom_storage_path_unusable": "La ruta de almacenamiento personalizada \"{{path}}\" no es utilizable, se usará la ruta predeterminada",
5454
"cannot_access_path": "No se puede acceder a la ruta {{path}}: {{error}}",
55-
"settings_import_failed": "Error al importar la configuración: {{error}}."
55+
"settings_import_failed": "Error al importar la configuración: {{error}}.",
56+
"mistake_limit_guidance": "Esto puede indicar un fallo en el proceso de pensamiento del modelo o la incapacidad de usar una herramienta correctamente, lo cual puede mitigarse con orientación del usuario (ej. \"Intenta dividir la tarea en pasos más pequeños\")."
5657
},
5758
"warnings": {
5859
"no_terminal_content": "No hay contenido de terminal seleccionado",

src/i18n/locales/fr/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"failed_remove_directory": "Échec de la suppression du répertoire de tâches : {{error}}",
5353
"custom_storage_path_unusable": "Le chemin de stockage personnalisé \"{{path}}\" est inutilisable, le chemin par défaut sera utilisé",
5454
"cannot_access_path": "Impossible d'accéder au chemin {{path}} : {{error}}",
55-
"settings_import_failed": "Échec de l'importation des paramètres : {{error}}"
55+
"settings_import_failed": "Échec de l'importation des paramètres : {{error}}",
56+
"mistake_limit_guidance": "Cela peut indiquer un échec dans le processus de réflexion du modèle ou une incapacité à utiliser un outil correctement, ce qui peut être atténué avec des conseils de l'utilisateur (par ex. \"Essaie de diviser la tâche en étapes plus petites\")."
5657
},
5758
"warnings": {
5859
"no_terminal_content": "Aucun contenu de terminal sélectionné",

src/i18n/locales/hi/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"failed_remove_directory": "टास्क डायरेक्टरी हटाने में विफल: {{error}}",
5353
"custom_storage_path_unusable": "कस्टम स्टोरेज पाथ \"{{path}}\" उपयोग योग्य नहीं है, डिफ़ॉल्ट पाथ का उपयोग किया जाएगा",
5454
"cannot_access_path": "पाथ {{path}} तक पहुंच नहीं पा रहे हैं: {{error}}",
55-
"settings_import_failed": "सेटिंग्स इम्पोर्ट करने में विफल: {{error}}।"
55+
"settings_import_failed": "सेटिंग्स इम्पोर्ट करने में विफल: {{error}}।",
56+
"mistake_limit_guidance": "यह मॉडल की सोच प्रक्रिया में विफलता या किसी टूल का सही उपयोग न कर पाने का संकेत हो सकता है, जिसे उपयोगकर्ता के मार्गदर्शन से ठीक किया जा सकता है (जैसे \"कार्य को छोटे चरणों में बांटने की कोशिश करें\")।"
5657
},
5758
"warnings": {
5859
"no_terminal_content": "कोई टर्मिनल सामग्री चयनित नहीं",

src/i18n/locales/it/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"failed_remove_directory": "Impossibile rimuovere la directory delle attività: {{error}}",
5353
"custom_storage_path_unusable": "Il percorso di archiviazione personalizzato \"{{path}}\" non è utilizzabile, verrà utilizzato il percorso predefinito",
5454
"cannot_access_path": "Impossibile accedere al percorso {{path}}: {{error}}",
55-
"settings_import_failed": "Importazione delle impostazioni fallita: {{error}}."
55+
"settings_import_failed": "Importazione delle impostazioni fallita: {{error}}.",
56+
"mistake_limit_guidance": "Questo può indicare un fallimento nel processo di pensiero del modello o l'incapacità di utilizzare correttamente uno strumento, che può essere mitigato con la guida dell'utente (ad es. \"Prova a suddividere l'attività in passaggi più piccoli\")."
5657
},
5758
"warnings": {
5859
"no_terminal_content": "Nessun contenuto del terminale selezionato",

src/i18n/locales/ja/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"failed_remove_directory": "タスクディレクトリの削除に失敗しました:{{error}}",
5353
"custom_storage_path_unusable": "カスタムストレージパス \"{{path}}\" が使用できないため、デフォルトパスを使用します",
5454
"cannot_access_path": "パス {{path}} にアクセスできません:{{error}}",
55-
"settings_import_failed": "設定のインポートに失敗しました:{{error}}"
55+
"settings_import_failed": "設定のインポートに失敗しました:{{error}}",
56+
"mistake_limit_guidance": "これは、モデルの思考プロセスの失敗やツールを適切に使用できないことを示している可能性があり、ユーザーのガイダンスによって軽減できます(例:「タスクをより小さなステップに分割してみてください」)。"
5657
},
5758
"warnings": {
5859
"no_terminal_content": "選択されたターミナルコンテンツがありません",

src/i18n/locales/ko/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"failed_remove_directory": "작업 디렉토리 제거 실패: {{error}}",
5353
"custom_storage_path_unusable": "사용자 지정 저장 경로 \"{{path}}\"를 사용할 수 없어 기본 경로를 사용합니다",
5454
"cannot_access_path": "경로 {{path}}에 접근할 수 없습니다: {{error}}",
55-
"settings_import_failed": "설정 가져오기 실패: {{error}}."
55+
"settings_import_failed": "설정 가져오기 실패: {{error}}.",
56+
"mistake_limit_guidance": "이는 모델의 사고 과정 실패나 도구를 제대로 사용하지 못하는 것을 나타낼 수 있으며, 사용자 가이드를 통해 완화할 수 있습니다 (예: \"작업을 더 작은 단계로 나누어 시도해보세요\")."
5657
},
5758
"warnings": {
5859
"no_terminal_content": "선택된 터미널 내용이 없습니다",

0 commit comments

Comments
 (0)