You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7ca65ce
Browse filesBrowse the repository at this point in the historyBrowse files
fix(plugin-approvals): approval notifications carry their text in body, the field messaging reads
Every notification the approvals service sent put its text in
payload.message. The messaging service builds the delivered notification
from payload.title and payload.body only (the inline fan-out, the outbox
snapshot and the dispatcher alike), so GET /api/v1/notifications served
each one as a title over an empty body.
- The twelve call sites now send the text as body. The texts themselves
are byte-identical; who is notified, and when, is unchanged.
- notify() declares its payload (title, body, actionUrl, and a
reminder's actions), so a call site that spells the text any other way
does not compile.
- No alias in service-messaging: one field, as EmitInput documents.
Claude-Session: https://claude.ai/code/session_011K3zqE8Pv1Evw5hc8tZCnN
Co-authored-by: Claude <noreply@anthropic.com>
Approval notifications reach their recipient with their text (#21847). The approvals service put each notification's text in `payload.message`. The messaging service builds the delivered notification from `payload.title` and `payload.body`, the fields its `EmitInput` documents, and no channel reads `message`. So `GET /api/v1/notifications` served every approval notification as a title over an empty `body`, and the inbox row's `body_md` was empty too. The lost texts were comments, request-info questions, send-back notes, reassignments, reminders, escalations, SLA breaches and out-of-office substitutions. Every one of them now travels in `payload.body`.
6
+
7
+
Clause-②: no
8
+
9
+
- The texts are unchanged. Only the field they travel in moved. Who is notified, and when, is unchanged.
10
+
- Approval notifications no longer carry `payload.message`. Nothing in the platform or the console read it. A tenant-authored `sys_notification_template` for an `approval.*` topic that wrote `{{ message }}` should write `{{ body }}`.
11
+
- The service's notify helper now declares its payload: `title`, `body`, `actionUrl`, and a reminder's `actions`. A call site that spells the text any other way no longer compiles.
12
+
-`@objectstack/service-messaging` is unchanged. There is one field, as documented, and no alias for the old one.
0 commit comments