Repository navigation
fix: keep email failure fallback generic - #1122
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch was successfully 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.
When sending an email fails, Recoup normally builds its own fallback message because the adapter returns a generic error string rather than a nested error message. That fallback currently adds sender and recipient addresses. Return "Failed to send email." from the shared processor so both the API handler and
send_emailtool use the generic fallback.This preserves explicit nested provider messages, successful recipient/CC/from confirmation, payloads, authorization, response status/envelopes and existing raw diagnostics/attempt logging. It is not a broader provider-error sanitization change. All three email-fix files and the full patch retain the previously accepted bytes exactly.
The branch includes current main
689ee09athrough a normal merge without rewriting history. Its three released branch-merge files do not overlap the 89 frozen email source/test/config files; all 78 local email dependency blobs remain unchanged. Successor:9f2ec37e, treed39891a9.Validation: 34 focused cases across six files pass on the combined source: 18 email cases and 16 branch-merge cases. These exercise the actual adapter, shared processor, API handler and registered tool callback with external boundaries mocked. Before the email repair, four fallback comparisons fail while the successful-send control passes. Repository lint, targeted formatting, focused email/branch production/test TypeScript and diff checks pass. Fresh required CI, compatibility and Vercel preview pass at the successor commit. Both integration review axes report zero findings. No real email, GitHub/provider request or database operation was performed.
Related: API #295 finding, tracked under Mono #358. This narrow repair does not accept or restore the entire historical PR.