Skip to content

Follow mail reply contract changes - #482

Merged
neuromechanist merged 3 commits into
stagingfrom
fix/mail-reply-error-body
Oct 25, 2026
Merged

neuromechanist merged 3 commits into
stagingfrom
fix/mail-reply-error-body

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Follows nemar-cli #1952 (epic nemarOrg/nemar-cli#1893).

Summary

  • src/lib/mail-admin-contract.ts: ReplyResponse.header_message_id is string | null; a repeated unknown-outcome reply is 409 reply_delivery_unknown; TicketSummary.ref documents the three-word and legacy forms. Matches nemar-cli's shared/contract/mail-admin.ts on #1952.
  • A test pins that a 5xx JSON body passes through the /api/v1 proxy into the mail client with its code intact. On staging a 502's body did not reach the page, and the site code was shown not to be the cause; the API now answers these errors with 409 and 422 instead.
  • CHANGELOG entry under Unreleased.

Draft until nemar-cli #1952 reaches nemar-cli dev: CI's drift test reads the contract from dev.

Test plan

  • Mail drift test against #1952's contract, mail API, reply flow, admin mail UI and proxy tests: 121 pass
  • tsc --noEmit: clean

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 92c2a78
Status: ✅  Deploy successful!
Preview URL: https://88411fb2.nemar-website.pages.dev
Branch Preview URL: https://fix-mail-reply-error-body.nemar-website.pages.dev

View logs

@neuromechanist
neuromechanist marked this pull request as ready for review October 25, 2026 19:13
@neuromechanist
neuromechanist merged commit b85dc75 into staging Oct 25, 2026
5 checks passed
@neuromechanist
neuromechanist deleted the fix/mail-reply-error-body branch October 25, 2026 19:18
@neuromechanist neuromechanist mentioned this pull request Oct 26, 2026
2 tasks
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.

1 participant