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

Function createStreamErrorMessage

src/node/services/utils/sendMessageError.ts:156–162  ·  view source on GitHub ↗
(payload: StreamErrorPayload)

Source from the content-addressed store, hash-verified

154 return errorType;
155};
156export const createStreamErrorMessage = (payload: StreamErrorPayload): StreamErrorMessage => ({
157 type: "stream-error",
158 messageId: payload.messageId,
159 error: payload.error,
160 errorType: payload.errorType ?? "unknown",
161 acpPromptId: payload.acpPromptId,
162});
163
164/**
165 * Build a stream-error payload for pre-stream failures so the UI can surface them immediately.

Callers 4

handleStreamErrorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected