From a0d37f95ce01551b2bafcd1623b14a41a3270c1a Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Mon, 25 Aug 2025 18:02:09 -0600 Subject: [PATCH] fix: correct i18n key format and remove dead error icon/title code - Fixed i18n key format in executeCommandTool.ts: changed 'common:errors:command_timeout' to 'common:errors.command_timeout' to match the actual key structure - Removed dead code path for error icon/title in ChatRow.tsx since 'say:error' messages are rendered via CollapsibleErrorSection component --- src/core/tools/executeCommandTool.ts | 2 +- webview-ui/src/components/chat/ChatRow.tsx | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/core/tools/executeCommandTool.ts b/src/core/tools/executeCommandTool.ts index e3a9637214..032cac5579 100644 --- a/src/core/tools/executeCommandTool.ts +++ b/src/core/tools/executeCommandTool.ts @@ -278,7 +278,7 @@ export async function executeCommand( provider?.postMessageToWebview({ type: "commandExecutionStatus", text: JSON.stringify(status) }) await task.say( "error", - t("common:errors:command_timeout", { seconds: commandExecutionTimeoutSeconds }), + t("common:errors.command_timeout", { seconds: commandExecutionTimeoutSeconds }), undefined, undefined, undefined, diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index c666257705..89198c0fab 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -209,13 +209,6 @@ export const ChatRowContent = ({ const [icon, title] = useMemo(() => { switch (type) { - case "error": - return [ - , - {message.title || t("chat:error")}, - ] case "mistake_limit_reached": return [