@dreb/coding-agent 2.22.0 → 2.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -404,7 +404,7 @@ export class AgentSession {
404
404
  if (cancelled) {
405
405
  parts.push("This agent was cancelled by the user.");
406
406
  }
407
- if (result.exitCode !== 0) {
407
+ if (!cancelled && result.exitCode !== 0) {
408
408
  parts.push(`Error: ${result.errorMessage || "unknown"}`);
409
409
  }
410
410
  if (result.output) {