feat(gmail): warn on rich draft downgrade - #957
Conversation
Co-authored-by: Jake <mcinteerj@gmail.com>
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 9:04 AM ET / 13:04 UTC. ClawSweeper reviewWhat this changesThe PR warns on stderr when a Gmail rich-text draft is replaced with plain text only, while preserving JSON stdout and making the additional MIME inspection non-fatal when it is advisory. Merge readinessKeep open for normal collaborator PR review: current main lacks this warning, and the patch has no supported correctness or security blocker. The linked contributor proof and focused regression coverage support the maintainer landing path. Priority: P2 Review scores
Verification
How this fits togetherGmail draft updates can read an existing draft, rebuild its MIME message, and submit the replacement through the Gmail API. This change inspects the stored MIME structure before rebuilding so users learn when a plain-only update will remove rich text. flowchart LR
A[Draft update flags] --> B[Gmail draft update]
B --> C[Read stored draft]
C --> D[Inspect MIME body]
D --> E[Warn on rich-text downgrade]
E --> F[Rebuild message]
F --> G[Update Gmail draft]
Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Land the focused stderr-only safeguard after normal required checks complete, retaining the advisory-read behavior so a warning lookup cannot block an otherwise valid update. Do we have a high-confidence way to reproduce the issue? Yes—current source rebuilds draft MIME from supplied bodies, and the provided real-Gmail transcript demonstrates that a rich draft updated with only plain text loses its HTML part without this warning. Is this the best way to solve the issue? Yes—the stderr-only warning is the narrowest maintainable safeguard because the requested plain-body replacement remains unchanged and machine-readable stdout stays intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d4a1a6e94707. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Summary
Proof
make cimultipart/alternativeAutoreview: clean, no accepted/actionable findings.
Co-authored-by: Jake mcinteerj@gmail.com