From aa5f09626ec19aff2e057ddf6b87fe1e3f90d22d Mon Sep 17 00:00:00 2001 From: Aishanee Shah Date: Wed, 18 Feb 2026 00:01:33 -0500 Subject: [PATCH] Update shell.ts Wrap XML content in CDATA --- packages/core/src/tools/shell.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core/src/tools/shell.ts b/packages/core/src/tools/shell.ts index 185c176593..aadfd8e394 100644 --- a/packages/core/src/tools/shell.ts +++ b/packages/core/src/tools/shell.ts @@ -354,16 +354,15 @@ export class ShellToolInvocation extends BaseToolInvocation< } else { // Create a formatted error string for display, replacing the wrapper command // with the user-facing command. - const output = result.output || '(empty)'; - const parts = [`${output}`]; + const output = result.output || '(empty)'; + const parts = [``]; if (result.error) { const finalError = result.error.message.replaceAll( commandToExecute, this.params.command, ); - parts.push(`${finalError}`); - } + parts.push(``); if (result.exitCode !== null) { parts.push(`${result.exitCode}`);