MCPcopy
hub / github.com/coder/mux / handleStreamFailureForAutoRetry

Method handleStreamFailureForAutoRetry

src/node/services/agentSession.ts:815–825  ·  view source on GitHub ↗
(error: RetryFailureError)

Source from the content-addressed store, hash-verified

813 }
814
815 private async handleStreamFailureForAutoRetry(error: RetryFailureError): Promise<void> {
816 assert(
817 typeof error.type === "string" && error.type.length > 0,
818 "handleStreamFailureForAutoRetry requires a non-empty error.type"
819 );
820
821 // Load persisted preference before scheduling retries so an on-disk opt-out is
822 // honored even when the first failure happens before startup recovery runs.
823 await this.loadAutoRetryEnabledPreference();
824 this.retryManager.handleStreamFailure(error);
825 }
826
827 private setAutoRetryResumeState(
828 options: SendMessageOptions | undefined,

Callers 6

retryActiveStreamMethod · 0.95
streamWithHistoryMethod · 0.95
handleStreamErrorMethod · 0.95
attachAiListenersMethod · 0.95

Calls 3

assertFunction · 0.50
handleStreamFailureMethod · 0.45

Tested by

no test coverage detected