Skip to content

Commit 3c60c6e

Browse files
committed
fix(prompts): title-case tool error headers and align en i18n keys to match tests
1 parent b5a93fe commit 3c60c6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/core/prompts/responses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const formatResponse = {
1616

1717
toolError: (error?: string, toolName?: string) => {
1818
const title = toolName
19-
? t("tools:errors.toolCallError", { toolName, defaultValue: `Tool call error: ${toolName}` })
20-
: t("tools:errors.toolExecutionError", { defaultValue: "Tool execution error" })
19+
? t("tools:errors.toolCallError", { toolName, defaultValue: `Tool Call Error: ${toolName}` })
20+
: t("tools:errors.toolExecutionError", { defaultValue: "Tool Execution Error" })
2121
return `${title}\n<error>\n${error}\n</error>`
2222
},
2323

src/i18n/locales/en/tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"changesRejected": "Changes were rejected by the user."
3030
},
3131
"errors": {
32-
"toolCallError": "Tool call error: {{toolName}}",
33-
"toolExecutionError": "Tool execution error",
32+
"toolCallError": "Tool Call Error: {{toolName}}",
33+
"toolExecutionError": "Tool Execution Error",
3434
"fileNotFound": "File Not Found",
3535
"parseError": "Parse error",
3636
"commandTimeout": "Command timeout",

0 commit comments

Comments
 (0)