mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
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:
parent
44e4feecb8
commit
a0d37f95ce
2 changed files with 1 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue