Update shell.ts

This commit is contained in:
Aishanee Shah
2026-02-18 00:06:27 -05:00
committed by GitHub
parent aa5f09626e
commit 72bf0c0add

View File

@@ -363,6 +363,7 @@ export class ShellToolInvocation extends BaseToolInvocation<
this.params.command,
);
parts.push(`<error><![CDATA[${finalError}]]></error>`);
}
if (result.exitCode !== null) {
parts.push(`<exit_code>${result.exitCode}</exit_code>`);