Q87: provider errors keep status and provider code; text never decides recovery

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 14:52:31 -04:00
1 parent 7ecffe84e3
commit 4668396f25
28 files changed
+285 -108

No files matched your search

@@ -6,6 +6,7 @@ import { OperationsService } from "./operations-service";
import { providerRateLimitStateFromError } from "./provider-adapters";
import { ProviderRateLimitRegistry } from "./provider-rate-limit-registry";
import { ProviderRequestStore } from "./provider-request-store";
import { ProviderHttpError } from "./provider-http";
const HEALTH_STATE_HEALTHY = "healthy";
const HEALTH_STATE_FAILED = "failed";
@@ -73,6 +74,8 @@ export class ProviderResponseObserver {
orgId: input.orgId,
requestId: input.requestId,
errorMessage: message,
errorStatus: input.error instanceof ProviderHttpError ? input.error.status : null,
errorCode: input.error instanceof ProviderHttpError ? input.error.code : null,
completedAt: new Date().toISOString(),
rawResponseJson: input.rawResponseJson,
});