{message.text}
- > +{source},
+}))
+
+describe("ChatRow Error Display", () => {
+ const mockOnToggleExpand = vi.fn()
+ const mockOnSuggestionClick = vi.fn()
+ const mockOnBatchFileResponse = vi.fn()
+ const mockOnFollowUpUnmount = vi.fn()
+
+ const baseProps = {
+ isExpanded: false,
+ isLast: false,
+ isStreaming: false,
+ onToggleExpand: mockOnToggleExpand,
+ onSuggestionClick: mockOnSuggestionClick,
+ onBatchFileResponse: mockOnBatchFileResponse,
+ onFollowUpUnmount: mockOnFollowUpUnmount,
+ isFollowUpAnswered: false,
+ editable: false,
+ }
+
+ beforeEach(() => {
+ vi.clearAllMocks()
+ })
+
+ describe("Error Message Display", () => {
+ it("should render error message with collapsible section", () => {
+ const errorMessage: ClineMessage = {
+ ts: Date.now(),
+ type: "say",
+ say: "error",
+ text: "This is an error message",
+ }
+
+ render({{query}} a {{path}}:",
"didSearch_one": "S'ha trobat 1 resultat",
"didSearch_other": "S'han trobat {{count}} resultats",
- "resultTooltip": "Puntuació de similitud: {{score}} (fes clic per obrir el fitxer)"
+ "resultTooltip": "Puntuació de similitud: {{score}} (fes clic per obrir el fitxer)",
+ "errorDisplayingResults": "Error en mostrar els resultats de la cerca."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/de/chat.json b/webview-ui/src/i18n/locales/de/chat.json
index 82f1c77fbf..d5b96b563d 100644
--- a/webview-ui/src/i18n/locales/de/chat.json
+++ b/webview-ui/src/i18n/locales/de/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "Aufgabe abgeschlossen",
"powershell": {
- "issues": "Es scheint, dass du Probleme mit Windows PowerShell hast, bitte sieh dir dies an"
+ "issues": "Es scheint, dass du Probleme mit Windows PowerShell hast, bitte sieh dir dies an",
+ "troubleshootingGuide": "Troubleshooting-Guide"
},
"autoApprove": {
"title": "Automatische Genehmigung:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo möchte den Codebase nach {{query}} in {{path}} durchsuchen:",
"didSearch_one": "1 Ergebnis gefunden",
"didSearch_other": "{{count}} Ergebnisse gefunden",
- "resultTooltip": "Ähnlichkeitswert: {{score}} (klicken zum Öffnen der Datei)"
+ "resultTooltip": "Ähnlichkeitswert: {{score}} (klicken zum Öffnen der Datei)",
+ "errorDisplayingResults": "Fehler beim Anzeigen der Suchergebnisse."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json
index 72eacc5c58..b78e88ad5c 100644
--- a/webview-ui/src/i18n/locales/en/chat.json
+++ b/webview-ui/src/i18n/locales/en/chat.json
@@ -216,7 +216,8 @@
"wantsToSearchWithPath": "Roo wants to search the codebase for {{query}} in {{path}}:",
"didSearch_one": "Found 1 result",
"didSearch_other": "Found {{count}} results",
- "resultTooltip": "Similarity score: {{score}} (click to open file)"
+ "resultTooltip": "Similarity score: {{score}} (click to open file)",
+ "errorDisplayingResults": "Error displaying search results."
},
"commandOutput": "Command Output",
"commandExecution": {
@@ -266,7 +267,8 @@
},
"troubleMessage": "Roo is having trouble...",
"powershell": {
- "issues": "It seems like you're having Windows PowerShell issues, please see this"
+ "issues": "It seems like you're having Windows PowerShell issues, please see this",
+ "troubleshootingGuide": "troubleshooting guide"
},
"autoApprove": {
"title": "Auto-approve:",
diff --git a/webview-ui/src/i18n/locales/es/chat.json b/webview-ui/src/i18n/locales/es/chat.json
index e63731b095..e0e75cc3e2 100644
--- a/webview-ui/src/i18n/locales/es/chat.json
+++ b/webview-ui/src/i18n/locales/es/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "Tarea completada",
"powershell": {
- "issues": "Parece que estás teniendo problemas con Windows PowerShell, por favor consulta esta"
+ "issues": "Parece que estás teniendo problemas con Windows PowerShell, por favor consulta esta",
+ "troubleshootingGuide": "guía de solución de problemas"
},
"autoApprove": {
"title": "Auto-aprobar:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo quiere buscar en la base de código {{query}} en {{path}}:",
"didSearch_one": "Se encontró 1 resultado",
"didSearch_other": "Se encontraron {{count}} resultados",
- "resultTooltip": "Puntuación de similitud: {{score}} (haz clic para abrir el archivo)"
+ "resultTooltip": "Puntuación de similitud: {{score}} (haz clic para abrir el archivo)",
+ "errorDisplayingResults": "Error al mostrar los resultados de la búsqueda."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/fr/chat.json b/webview-ui/src/i18n/locales/fr/chat.json
index 2575489787..439590b1aa 100644
--- a/webview-ui/src/i18n/locales/fr/chat.json
+++ b/webview-ui/src/i18n/locales/fr/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "Tâche terminée",
"powershell": {
- "issues": "Il semble que vous rencontriez des problèmes avec Windows PowerShell, veuillez consulter ce"
+ "issues": "Il semble que vous rencontriez des problèmes avec Windows PowerShell, veuillez consulter ce",
+ "troubleshootingGuide": "guide de dépannage"
},
"autoApprove": {
"title": "Auto-approbation :",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo veut rechercher dans la base de code {{query}} dans {{path}} :",
"didSearch_one": "1 résultat trouvé",
"didSearch_other": "{{count}} résultats trouvés",
- "resultTooltip": "Score de similarité : {{score}} (cliquer pour ouvrir le fichier)"
+ "resultTooltip": "Score de similarité : {{score}} (cliquer pour ouvrir le fichier)",
+ "errorDisplayingResults": "Erreur lors de l’affichage des résultats de recherche."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/hi/chat.json b/webview-ui/src/i18n/locales/hi/chat.json
index 28fc26fcaf..c35dd11c31 100644
--- a/webview-ui/src/i18n/locales/hi/chat.json
+++ b/webview-ui/src/i18n/locales/hi/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "कार्य पूरा हुआ",
"powershell": {
- "issues": "ऐसा लगता है कि आपको Windows PowerShell के साथ समस्याएँ हो रही हैं, कृपया इसे देखें"
+ "issues": "ऐसा लगता है कि आपको Windows PowerShell के साथ समस्याएँ हो रही हैं, कृपया इसे देखें",
+ "troubleshootingGuide": "ट्रबलशूटिंग गाइड"
},
"autoApprove": {
"title": "स्वत:-स्वीकृति:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo {{path}} में कोडबेस में {{query}} खोजना चाहता है:",
"didSearch_one": "1 परिणाम मिला",
"didSearch_other": "{{count}} परिणाम मिले",
- "resultTooltip": "समानता स्कोर: {{score}} (फ़ाइल खोलने के लिए क्लिक करें)"
+ "resultTooltip": "समानता स्कोर: {{score}} (फ़ाइल खोलने के लिए क्लिक करें)",
+ "errorDisplayingResults": "खोज परिणाम दिखाने में त्रुटि।"
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/id/chat.json b/webview-ui/src/i18n/locales/id/chat.json
index 0425a02b8f..5a498a2716 100644
--- a/webview-ui/src/i18n/locales/id/chat.json
+++ b/webview-ui/src/i18n/locales/id/chat.json
@@ -219,7 +219,8 @@
"wantsToSearchWithPath": "Roo ingin mencari codebase untuk {{query}} di {{path}}:",
"didSearch_one": "Ditemukan 1 hasil",
"didSearch_other": "Ditemukan {{count}} hasil",
- "resultTooltip": "Skor kemiripan: {{score}} (klik untuk membuka file)"
+ "resultTooltip": "Skor kemiripan: {{score}} (klik untuk membuka file)",
+ "errorDisplayingResults": "Galat menampilkan hasil pencarian."
},
"commandOutput": "Output Perintah",
"commandExecution": {
@@ -269,7 +270,8 @@
},
"troubleMessage": "Roo mengalami masalah...",
"powershell": {
- "issues": "Sepertinya kamu mengalami masalah Windows PowerShell, silakan lihat ini"
+ "issues": "Sepertinya kamu mengalami masalah Windows PowerShell, silakan lihat ini",
+ "troubleshootingGuide": "panduan pemecahan masalah"
},
"autoApprove": {
"title": "Auto-approve:",
diff --git a/webview-ui/src/i18n/locales/it/chat.json b/webview-ui/src/i18n/locales/it/chat.json
index 4dd1270e34..8e08844843 100644
--- a/webview-ui/src/i18n/locales/it/chat.json
+++ b/webview-ui/src/i18n/locales/it/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "Attività completata",
"powershell": {
- "issues": "Sembra che tu stia avendo problemi con Windows PowerShell, consulta questa"
+ "issues": "Sembra che tu stia avendo problemi con Windows PowerShell, consulta questa",
+ "troubleshootingGuide": "guida alla risoluzione dei problemi"
},
"autoApprove": {
"title": "Auto-approvazione:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo vuole cercare nella base di codice {{query}} in {{path}}:",
"didSearch_one": "Trovato 1 risultato",
"didSearch_other": "Trovati {{count}} risultati",
- "resultTooltip": "Punteggio di somiglianza: {{score}} (clicca per aprire il file)"
+ "resultTooltip": "Punteggio di somiglianza: {{score}} (clicca per aprire il file)",
+ "errorDisplayingResults": "Errore durante la visualizzazione dei risultati di ricerca."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/ja/chat.json b/webview-ui/src/i18n/locales/ja/chat.json
index 9a5d47fec8..5da0832852 100644
--- a/webview-ui/src/i18n/locales/ja/chat.json
+++ b/webview-ui/src/i18n/locales/ja/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "タスク完了",
"powershell": {
- "issues": "Windows PowerShellに問題があるようです。こちらを参照してください"
+ "issues": "Windows PowerShellに問題があるようです。こちらを参照してください",
+ "troubleshootingGuide": "トラブルシューティングガイド"
},
"autoApprove": {
"title": "自動承認:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Rooは {{path}} 内のコードベースで {{query}} を検索したい:",
"didSearch_one": "1件の結果が見つかりました",
"didSearch_other": "{{count}}件の結果が見つかりました",
- "resultTooltip": "類似度スコア: {{score}} (クリックしてファイルを開く)"
+ "resultTooltip": "類似度スコア: {{score}} (クリックしてファイルを開く)",
+ "errorDisplayingResults": "検索結果の表示中にエラーが発生しました。"
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/ko/chat.json b/webview-ui/src/i18n/locales/ko/chat.json
index aaf29243b7..11418012e7 100644
--- a/webview-ui/src/i18n/locales/ko/chat.json
+++ b/webview-ui/src/i18n/locales/ko/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "작업 완료",
"powershell": {
- "issues": "Windows PowerShell에 문제가 있는 것 같습니다. 다음을 참조하세요"
+ "issues": "Windows PowerShell에 문제가 있는 것 같습니다. 다음을 참조하세요",
+ "troubleshootingGuide": "문제 해결 가이드"
},
"autoApprove": {
"title": "자동 승인:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo가 {{path}}에서 {{query}}을(를) 검색하고 싶어합니다:",
"didSearch_one": "1개의 결과를 찾았습니다",
"didSearch_other": "{{count}}개의 결과를 찾았습니다",
- "resultTooltip": "유사도 점수: {{score}} (클릭하여 파일 열기)"
+ "resultTooltip": "유사도 점수: {{score}} (클릭하여 파일 열기)",
+ "errorDisplayingResults": "검색 결과 표시 중 오류가 발생했습니다."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/nl/chat.json b/webview-ui/src/i18n/locales/nl/chat.json
index c6d52fa92e..fd2acc7fa8 100644
--- a/webview-ui/src/i18n/locales/nl/chat.json
+++ b/webview-ui/src/i18n/locales/nl/chat.json
@@ -242,7 +242,8 @@
},
"troubleMessage": "Roo ondervindt problemen...",
"powershell": {
- "issues": "Het lijkt erop dat je problemen hebt met Windows PowerShell, zie deze"
+ "issues": "Het lijkt erop dat je problemen hebt met Windows PowerShell, zie deze",
+ "troubleshootingGuide": "probleemoplossingsgids"
},
"autoApprove": {
"title": "Automatisch goedkeuren:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo wil de codebase doorzoeken op {{query}} in {{path}}:",
"didSearch_one": "1 resultaat gevonden",
"didSearch_other": "{{count}} resultaten gevonden",
- "resultTooltip": "Gelijkenisscore: {{score}} (klik om bestand te openen)"
+ "resultTooltip": "Gelijkenisscore: {{score}} (klik om bestand te openen)",
+ "errorDisplayingResults": "Fout bij het weergeven van zoekresultaten."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/pl/chat.json b/webview-ui/src/i18n/locales/pl/chat.json
index 2028cb705b..e4eb2cc5f2 100644
--- a/webview-ui/src/i18n/locales/pl/chat.json
+++ b/webview-ui/src/i18n/locales/pl/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "Zadanie zakończone",
"powershell": {
- "issues": "Wygląda na to, że masz problemy z Windows PowerShell, proszę zapoznaj się z tym"
+ "issues": "Wygląda na to, że masz problemy z Windows PowerShell, proszę zapoznaj się z tym",
+ "troubleshootingGuide": "poradnik rozwiązywania problemów"
},
"autoApprove": {
"title": "Automatyczne zatwierdzanie:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo chce przeszukać bazę kodu w poszukiwaniu {{query}} w {{path}}:",
"didSearch_one": "Znaleziono 1 wynik",
"didSearch_other": "Znaleziono {{count}} wyników",
- "resultTooltip": "Wynik podobieństwa: {{score}} (kliknij, aby otworzyć plik)"
+ "resultTooltip": "Wynik podobieństwa: {{score}} (kliknij, aby otworzyć plik)",
+ "errorDisplayingResults": "Błąd podczas wyświetlania wyników wyszukiwania."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/pt-BR/chat.json b/webview-ui/src/i18n/locales/pt-BR/chat.json
index 6ee23ca627..b53605feab 100644
--- a/webview-ui/src/i18n/locales/pt-BR/chat.json
+++ b/webview-ui/src/i18n/locales/pt-BR/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "Tarefa concluída",
"powershell": {
- "issues": "Parece que você está tendo problemas com o Windows PowerShell, por favor veja este"
+ "issues": "Parece que você está tendo problemas com o Windows PowerShell, por favor veja este",
+ "troubleshootingGuide": "guia de solução de problemas"
},
"autoApprove": {
"title": "Aprovação automática:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo quer pesquisar na base de código por {{query}} em {{path}}:",
"didSearch_one": "Encontrado 1 resultado",
"didSearch_other": "Encontrados {{count}} resultados",
- "resultTooltip": "Pontuação de similaridade: {{score}} (clique para abrir o arquivo)"
+ "resultTooltip": "Pontuação de similaridade: {{score}} (clique para abrir o arquivo)",
+ "errorDisplayingResults": "Erro ao exibir os resultados da pesquisa."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/ru/chat.json b/webview-ui/src/i18n/locales/ru/chat.json
index 6cafe6bac9..758c519768 100644
--- a/webview-ui/src/i18n/locales/ru/chat.json
+++ b/webview-ui/src/i18n/locales/ru/chat.json
@@ -242,7 +242,8 @@
},
"troubleMessage": "У Roo возникли проблемы...",
"powershell": {
- "issues": "Похоже, у вас проблемы с Windows PowerShell, пожалуйста, ознакомьтесь с этим"
+ "issues": "Похоже, у вас проблемы с Windows PowerShell, пожалуйста, ознакомьтесь с этим",
+ "troubleshootingGuide": "руководство по устранению неполадок"
},
"autoApprove": {
"title": "Автоодобрение:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo хочет выполнить поиск в кодовой базе по {{query}} в {{path}}:",
"didSearch_one": "Найден 1 результат",
"didSearch_other": "Найдено {{count}} результатов",
- "resultTooltip": "Оценка схожести: {{score}} (нажмите, чтобы открыть файл)"
+ "resultTooltip": "Оценка схожести: {{score}} (нажмите, чтобы открыть файл)",
+ "errorDisplayingResults": "Ошибка при отображении результатов поиска."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/tr/chat.json b/webview-ui/src/i18n/locales/tr/chat.json
index 867acfbc9f..e2d3e8fae9 100644
--- a/webview-ui/src/i18n/locales/tr/chat.json
+++ b/webview-ui/src/i18n/locales/tr/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "Görev Tamamlandı",
"powershell": {
- "issues": "Windows PowerShell ile ilgili sorunlar yaşıyor gibi görünüyorsunuz, lütfen şu konuya bakın"
+ "issues": "Windows PowerShell ile ilgili sorunlar yaşıyor gibi görünüyorsunuz, lütfen şu konuya bakın",
+ "troubleshootingGuide": "sorun giderme kılavuzu"
},
"autoApprove": {
"title": "Otomatik-onay:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo {{path}} içinde kod tabanında {{query}} aramak istiyor:",
"didSearch_one": "1 sonuç bulundu",
"didSearch_other": "{{count}} sonuç bulundu",
- "resultTooltip": "Benzerlik puanı: {{score}} (dosyayı açmak için tıklayın)"
+ "resultTooltip": "Benzerlik puanı: {{score}} (dosyayı açmak için tıklayın)",
+ "errorDisplayingResults": "Arama sonuçları görüntülenirken hata oluştu."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/vi/chat.json b/webview-ui/src/i18n/locales/vi/chat.json
index ef8e951aac..fe5996dc5e 100644
--- a/webview-ui/src/i18n/locales/vi/chat.json
+++ b/webview-ui/src/i18n/locales/vi/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "Nhiệm vụ hoàn thành",
"powershell": {
- "issues": "Có vẻ như bạn đang gặp vấn đề với Windows PowerShell, vui lòng xem"
+ "issues": "Có vẻ như bạn đang gặp vấn đề với Windows PowerShell, vui lòng xem",
+ "troubleshootingGuide": "hướng dẫn khắc phục sự cố"
},
"autoApprove": {
"title": "Tự động phê duyệt:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo muốn tìm kiếm trong cơ sở mã cho {{query}} trong {{path}}:",
"didSearch_one": "Đã tìm thấy 1 kết quả",
"didSearch_other": "Đã tìm thấy {{count}} kết quả",
- "resultTooltip": "Điểm tương tự: {{score}} (nhấp để mở tệp)"
+ "resultTooltip": "Điểm tương tự: {{score}} (nhấp để mở tệp)",
+ "errorDisplayingResults": "Lỗi khi hiển thị kết quả tìm kiếm."
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json
index 1e430200a1..6f9b97e712 100644
--- a/webview-ui/src/i18n/locales/zh-CN/chat.json
+++ b/webview-ui/src/i18n/locales/zh-CN/chat.json
@@ -242,7 +242,8 @@
},
"taskCompleted": "任务完成",
"powershell": {
- "issues": "看起来您遇到了Windows PowerShell问题,请参阅此"
+ "issues": "看起来您遇到了Windows PowerShell问题,请参阅此",
+ "troubleshootingGuide": "疑难解答指南"
},
"autoApprove": {
"title": "自动批准:",
@@ -338,7 +339,8 @@
"wantsToSearchWithPath": "Roo 需要在 {{path}} 中搜索: {{query}}",
"didSearch_one": "找到 1 个结果",
"didSearch_other": "找到 {{count}} 个结果",
- "resultTooltip": "相似度评分: {{score}} (点击打开文件)"
+ "resultTooltip": "相似度评分: {{score}} (点击打开文件)",
+ "errorDisplayingResults": "显示搜索结果时出错。"
},
"read-batch": {
"approve": {
diff --git a/webview-ui/src/i18n/locales/zh-TW/chat.json b/webview-ui/src/i18n/locales/zh-TW/chat.json
index f5183d65a9..983de77566 100644
--- a/webview-ui/src/i18n/locales/zh-TW/chat.json
+++ b/webview-ui/src/i18n/locales/zh-TW/chat.json
@@ -216,7 +216,8 @@
"wantsToSearchWithPath": "Roo 想要在 {{path}} 中搜尋程式碼庫:{{query}}",
"didSearch_one": "找到 1 個結果",
"didSearch_other": "找到 {{count}} 個結果",
- "resultTooltip": "相似度評分:{{score}} (點選開啟檔案)"
+ "resultTooltip": "相似度評分:{{score}} (點選開啟檔案)",
+ "errorDisplayingResults": "顯示搜尋結果時發生錯誤。"
},
"commandOutput": "命令輸出",
"commandExecution": {
@@ -266,7 +267,8 @@
},
"troubleMessage": "Roo 遇到問題...",
"powershell": {
- "issues": "您似乎遇到了 Windows PowerShell 的問題,請參閱此說明文件"
+ "issues": "您似乎遇到了 Windows PowerShell 的問題,請參閱此說明文件",
+ "troubleshootingGuide": "疑難排解指南"
},
"autoApprove": {
"title": "自動核准:",