Skip to content

Commit 9cad0f8

Browse files
committed
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
1 parent 2d8ee79 commit 9cad0f8

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/core/tools/executeCommandTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export async function executeCommand(
278278
provider?.postMessageToWebview({ type: "commandExecutionStatus", text: JSON.stringify(status) })
279279
await task.say(
280280
"error",
281-
t("common:errors:command_timeout", { seconds: commandExecutionTimeoutSeconds }),
281+
t("common:errors.command_timeout", { seconds: commandExecutionTimeoutSeconds }),
282282
undefined,
283283
undefined,
284284
undefined,

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,6 @@ export const ChatRowContent = ({
152152

153153
const [icon, title] = useMemo(() => {
154154
switch (type) {
155-
case "error":
156-
return [
157-
<span
158-
className="codicon codicon-error"
159-
style={{ color: errorColor, marginBottom: "-1.5px" }}></span>,
160-
<span style={{ color: errorColor, fontWeight: "bold" }}>{message.title || t("chat:error")}</span>,
161-
]
162155
case "mistake_limit_reached":
163156
return [
164157
<span

0 commit comments

Comments
 (0)