Repository navigation
Remove HttpRequestDetails from AI errors and response metadata - #10010
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 9fbca56 The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 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 |
effect-bot
force-pushed
the
agent/nelson-effect-bot/a52f296c0e5b
branch
from
October 27, 2026 03:39
09ae7f5 to
585993f
Compare
tim-smart
force-pushed
the
v4/next-minor
branch
from
October 27, 2026 04:01
4f49b72 to
b1dc4d8
Compare
effect-bot
force-pushed
the
agent/nelson-effect-bot/a52f296c0e5b
branch
from
October 27, 2026 04:10
2b93985 to
9fbca56
Compare
tim-smart
enabled auto-merge (squash)
October 27, 2026 04:15
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
Merged
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
tim-smart
pushed a commit
that referenced
this pull request
Oct 27, 2026
tim-smart
pushed a commit
that referenced
this pull request
Oct 27, 2026
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
tim-smart
pushed a commit
that referenced
this pull request
Oct 27, 2026
effect-bot
added a commit
that referenced
this pull request
Oct 27, 2026
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 27, 2026
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 27, 2026
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 27, 2026
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 27, 2026
2 of 5 tasks
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
effect-bot
added a commit
that referenced
this pull request
Oct 28, 2026
effect-bot
added a commit
to wmaurer/effect
that referenced
this pull request
Oct 28, 2026
effect-bot
added a commit
that referenced
this pull request
Oct 28, 2026
tim-smart
pushed a commit
that referenced
this pull request
Oct 28, 2026
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.
Removes
HttpRequestDetailsfrom the AI modules, along with each of its three uses:AiError.NetworkErrorhas flatmethodandurlfields in place ofrequest.messageis unchanged, since it only ever read those two fields.AiError.HttpContextis now{ response?, body? }. Nothing readhttp.request; providers already put(METHOD url)into the description throughbuildErrorDescription.Response.ResponseMetadataPartno longer hasrequest, and theResponse.HttpRequestDetailsalias is gone. Four language models were attaching the full request, headers included, to every response's metadata part, so it ended up in persistedChathistories.These APIs are marked unstable, so this ships as a minor release.
Provider changes:
NetworkErrorwithNetworkError.fromRequestError, which keepsmain's description and reason handling. The status-code mappers takemethodandurldirectly.buildHttpRequestDetailsandrequestDetailshelpers are removed from the provider error modules and language models.request.headersinto the error without callingRedactable.redact. They now record only the method and URL.Errors and response metadata no longer carry request headers or query parameters at all, so credential redaction no longer depends on the header redaction rules. Diagnostics stay the same: reason, description, method and URL.
The migration annotations and
migration/v3-to-v4.mdare updated to match. This is independent of #9984 and does not include its cause-derived NetworkError descriptions.Checks:
pnpm check,pnpm lint, thepackages/effect/test/aiandpackages/aisuites (1613 passed), and doc examples forAiError.tsandResponse.ts.Closes EFF-2992