Skip to content

fix: keep email failure fallback generic - #1122

Merged
sidneyswift merged 2 commits into
mainfrom
codex/email-error-fallback-current-main
Oct 24, 2026
Merged

sidneyswift merged 2 commits into
mainfrom
codex/email-error-fallback-current-main

Conversation

@sswiftdrtv

@sswiftdrtv sswiftdrtv commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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_email tool 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 689ee09a through 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, tree d39891a9.

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.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 24, 2026 6:33am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T06:25:41.550727Z 172552f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sidneyswift
sidneyswift merged commit 66b84be into main Oct 24, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 9f2ec37e Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants