@dreb/coding-agent 2.21.1 → 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) {
@@ -746,6 +746,16 @@ export class AgentSession {
746
746
  };
747
747
  await this._extensionRunner.emit(extensionEvent);
748
748
  }
749
+ else if (event.type === "stream_retry") {
750
+ const extensionEvent = {
751
+ type: "stream_retry",
752
+ attempt: event.attempt,
753
+ maxAttempts: event.maxAttempts,
754
+ error: event.error,
755
+ discardedPartial: event.discardedPartial,
756
+ };
757
+ await this._extensionRunner.emit(extensionEvent);
758
+ }
749
759
  else if (event.type === "tool_execution_start") {
750
760
  const extensionEvent = {
751
761
  type: "tool_execution_start",