Repository navigation
fix(mattermost): normal replies silently drop buttons and presentation - #129579
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 3:46 PM ET / 19:46 UTC. ClawSweeper reviewWhat this changesThe PR makes normal and streamed Mattermost agent replies render presentation fallback text and supported native buttons instead of dropping them. Merge readinessKeep open: this maintainer-labeled PR repairs a current, source-proven Mattermost delivery gap with one plugin-owned presentation path; no blocking patch defect was found. Likely related person: Peter Steinberger (high confidence). Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherMattermost inbound turns produce agent reply payloads that the plugin converts into posts, optional native controls, and delivery receipts. Draft-preview streaming can either edit a post or delegate the final payload to the same delivery owner. flowchart LR
A[Agent reply payload] --> B[Presentation normalization]
B --> C[Normal reply delivery]
B --> D[Draft preview finalization]
C --> E[Mattermost post and controls]
D --> E
E --> F[Delivery receipt]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +241. Total +241 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one Mattermost-owned presentation conversion path and land it once the exact-head checks complete successfully. Do we have a high-confidence way to reproduce the issue? Yes—current main routes normal replies through a text-only conversion at extensions/mattermost/src/mattermost/reply-delivery.ts:78, while the documented presentation contract requires visible fallback content and controls; this read-only review did not execute the failing path. Is this the best way to solve the issue? Yes—the shared plugin-owned resolver is the narrowest maintainable solution because outbound delivery and normal replies then use the same presentation semantics, while draft finalization delegates presentation payloads to that owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 66bfdeffb9b4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where ordinary Mattermost agent replies silently discarded presentation text, native buttons, action URLs, and selection menus. Presentation-only responses produced no message and no diagnostic; text replies lost their controls; the default streamed-preview path also discarded pending presentation content.
Why This Change Was Made
Mattermost's existing plugin-owned presentation renderer and native-button builder are now shared by normal inbound agent delivery, streamed draft finalization, outbound delivery, and message actions. The repair preserves authored fallback text, first-post-only controls, multi-media fallback, existing provider card receipts, and current callback/action security restrictions. Consolidation keeps production LOC exactly neutral across the four affected owners.
User Impact
Mattermost operators now reliably receive documented presentation content and interactive controls in ordinary and streamed agent replies, including actionable connection URLs and selection fallbacks, instead of seeing silent missing messages or stranded text without its controls.
Evidence