From 3c60c6e290cc89d828a7b141c103d94c7ed8007d Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Fri, 5 Sep 2025 17:27:18 -0600 Subject: [PATCH] fix(prompts): title-case tool error headers and align en i18n keys to match tests --- src/core/prompts/responses.ts | 4 ++-- src/i18n/locales/en/tools.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/prompts/responses.ts b/src/core/prompts/responses.ts index a72de0a9ae..b4591bc422 100644 --- a/src/core/prompts/responses.ts +++ b/src/core/prompts/responses.ts @@ -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\n${error}\n` }, diff --git a/src/i18n/locales/en/tools.json b/src/i18n/locales/en/tools.json index 4f24c6ae84..3e683c481c 100644 --- a/src/i18n/locales/en/tools.json +++ b/src/i18n/locales/en/tools.json @@ -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",