Repository navigation
Honor Retry-After in HttpClient.retryTransient - #9053
Merged
tim-smart merged 10 commits intoOct 12, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: 9105db9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
retryTransient retried 429 and 503 responses on the caller's schedule and ignored the server's Retry-After header. The schedule delay now becomes at least the Retry-After delay, read from the transient response or from the response of a status code error. A longer schedule delay still wins, and responses without the header retry as before. A caller with a deadline cannot wait out a long Retry-After, and retrying sooner only earns another 429. The maxRetryAfter option stops retrying when Retry-After is longer than it, returning the response or failing with the error as is. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The delay and the maxRetryAfter limit are now computed together from each schedule input, replacing the effectful while predicates that read the clock separately from the schedule.
Tarekkharsa
force-pushed
the
http-retry-transient-retry-after
branch
from
October 12, 2026 10:16
225149e to
034f780
Compare
This was referenced Oct 19, 2026
laithalsaadoon
added a commit
to memhtml/memhtml
that referenced
this pull request
Oct 20, 2026
Moves the Effect catalog set (`effect`, `@effect/platform-node`, `@effect/platform-node-shared`, `@effect/vitest`) from 4.0.3 to 4.0.5 with no source or test change. One 4.0.4 entry changes what `packages/telemetry` does when tracing is on, so this move was held for a maintainer's decision and merged on it.
What moves:
- `pnpm-workspace.yaml:61-64`: the four catalog lines.
- `pnpm-lock.yaml`: only the four Effect entries and their peer suffixes (10 lines in the peer-stripped table).
- Docs: the 17 mentions of the pin on 15 lines in `docs/architecture/system-overview.md`, `docs/diagrams/structural/dependency-graph.md`, `docs/insights/debugging-guide.md`, `docs/insights/tech-debt.md` and `docs/reference/rpc-tools.md`. Each claim those lines make was re-checked at 4.0.5 (five MCP protocol adapters, `layerStdio`'s `instructions` option, the `@stability unstable` tags, `Schema.Struct({})` and `Tool.EmptyParams` JSON Schemas, `Config.String`). The same lines' citations into `pnpm-workspace.yaml`, `apps/cli/src/head-server.ts` and `CLAUDE.md`, stale since #265 and #287 moved those files, now name the lines they mean. Every edit keeps its cell width.
Behavior that reaches memhtml:
- Effect-TS/effect#9053 (4.0.4), telemetry on only: the OTLP exporter waits for a collector's `Retry-After` between its three retries after a 408 or 5xx, never less than the 1 s it waited before. Measured on this tree against a local collector: arrivals at 0, 2, 4 and 6 s instead of 0, 1, 2 and 3 s for a 503 with `Retry-After: 2`; unchanged without the header.
- Effect-TS/effect#9014 (4.0.4): Node HTTP text decoding drops a leading UTF-8 BOM, so a BOM-prefixed JSON body to the head server's `/v1/search`, `/v1/read`, `/v1/neighbors`, `/v1/commit` or `/v1/rebase` now decodes instead of answering 400. `/v1/exec` parses its body itself and still refuses one. memhtml's own head client never sends a BOM, so its traffic is unchanged.
- Effect-TS/effect#9136 (4.0.5): the values of `sig`, `Signature`, `AWSAccessKeyId` and `X-Goog-Signature` query parameters are redacted in the request line a head-server 400 echoes and, with telemetry on, in server span `url.full` and `url.query`. memhtml's client sends no query string.
- Measured identical on this tree: interrupt merging (#9113), JSON Schema bounds on the two new decode-only schemas (#9081), the MCP server's shared codecs (#9031, 15 tools, identical transcripts), `Duration` conversion (#9109, #9161), and server span timing (#9066).
Verified:
- `mise run check`: 75/75 tasks on this branch.
- A reader compiled all 16 TypeScript packages plus `tests-integration` against the 4.0.5 tarballs with the repo's compiler options (0 errors), with a two-way self-check: a probe using APIs that exist only in 4.0.5 (`UrlParams.redactUrl`, `NodeHttpClient.layerNodeHttpOptions`) fails on 4.0.3 and passes on 4.0.5, and a probe that #9112 breaks passes on 4.0.3 and fails on 4.0.5.
- The unit suites of `packages/session`, `head`, `curator`, `snapshot`, `telemetry`, `store`, `eval`, `apps/cli` and `apps/mcp` pass 1443/1443 on both versions.
Effect 4.0.6 is not published; its "Version Packages" PR (Effect-TS/effect#9197) queues entries on the head server's Node HTTP paths, MCP stdio streams and OTLP serialization, so the next move gets its own read.
Supersedes the Effect members of Dependabot's minor-and-patch group.
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Honor
Retry-AfterinHttpClient.retryTransientfor transient responses and status code errors. Supports both seconds and HTTP dates.Includes regression coverage for response and error retries, a five-minute delay, custom schedules, and absent headers.
Builds on the HTTP-date parsing fix in #9052 (merged).
Closes EFF-2011