From 4710fb4f7a5b72a9fa058ec05923f4f0418c90ef Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Thu, 19 Mar 2026 14:31:30 -0400 Subject: [PATCH] add withTransientReadRetry to Installation HTTP client --- packages/opencode/src/installation/effect.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/installation/effect.ts b/packages/opencode/src/installation/effect.ts index 825a98d0ce..e6ec1f0aee 100644 --- a/packages/opencode/src/installation/effect.ts +++ b/packages/opencode/src/installation/effect.ts @@ -1,6 +1,7 @@ import { NodeChildProcessSpawner, NodeFileSystem, NodePath } from "@effect/platform-node" import { Effect, Layer, Schema, ServiceMap, Stream } from "effect" import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http" +import { withTransientReadRetry } from "@/util/effect-http-client" import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process" import path from "path" import z from "zod" @@ -76,7 +77,7 @@ export namespace Installation { Service, Effect.gen(function* () { const http = yield* HttpClient.HttpClient - const httpOk = HttpClient.filterStatusOk(http) + const httpOk = HttpClient.filterStatusOk(withTransientReadRetry(http)) const spawner = yield* ChildProcessSpawner.ChildProcessSpawner const text = Effect.fnUntraced(