fix(prompts): title-case tool error headers and align en i18n keys to match tests

This commit is contained in:
Hannes Rudolph 2025-09-05 17:27:18 -06:00
parent b5a93fe11d
commit 3c60c6e290
2 changed files with 4 additions and 4 deletions

View file

@ -16,8 +16,8 @@ export const formatResponse = {
toolError: (error?: string, toolName?: string) => {
const title = toolName
? t("tools:errors.toolCallError", { toolName, defaultValue: `Tool call error: ${toolName}` })
: t("tools:errors.toolExecutionError", { defaultValue: "Tool execution error" })
? t("tools:errors.toolCallError", { toolName, defaultValue: `Tool Call Error: ${toolName}` })
: t("tools:errors.toolExecutionError", { defaultValue: "Tool Execution Error" })
return `${title}\n<error>\n${error}\n</error>`
},

View file

@ -29,8 +29,8 @@
"changesRejected": "Changes were rejected by the user."
},
"errors": {
"toolCallError": "Tool call error: {{toolName}}",
"toolExecutionError": "Tool execution error",
"toolCallError": "Tool Call Error: {{toolName}}",
"toolExecutionError": "Tool Execution Error",
"fileNotFound": "File Not Found",
"parseError": "Parse error",
"commandTimeout": "Command timeout",