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
This commit is contained in:
Hannes Rudolph 2025-08-25 18:02:09 -06:00
parent 44e4feecb8
commit a0d37f95ce
2 changed files with 1 additions and 8 deletions

View file

@ -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,

View file

@ -209,13 +209,6 @@ export const ChatRowContent = ({
const [icon, title] = useMemo(() => {
switch (type) {
case "error":
return [
<span
className="codicon codicon-error"
style={{ color: errorColor, marginBottom: "-1.5px" }}></span>,
<span style={{ color: errorColor, fontWeight: "bold" }}>{message.title || t("chat:error")}</span>,
]
case "mistake_limit_reached":
return [
<span