Repository navigation
feat(gmail): add signature flags to draft create, update, and forward - #1193
Conversation
…nature resolution
|
Codex review: needs real behavior proof before merge. What this changesThis PR extends the existing optional signature flags to Gmail draft creation, draft updates, and forwarding. Example: Create a draft with --body 'Hello Alice' --signature when the account signature is 'Kind regards, Sam'.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain This PR adds a useful capability still absent from main; the earlier forwarding defects are fixed, while the previously reported draft-update warning defect remains. Priority: P2 Decision needed
Before merge
Findings
Tests
Agent review detailsHow this fits togetherGmail compose commands turn CLI recipients, sender identity, body, attachments, and optional signatures into RFC822 MIME submitted to Gmail draft or send endpoints. flowchart TD
A[CLI compose flags] --> B[Validate inputs]
B --> C[Resolve sender and signature]
C --> D[Compose body and quote]
D --> E[Build RFC822 MIME]
E --> F[Gmail draft endpoint]
E --> G[Gmail send endpoint]
Technical reviewBest possible solution: Extend the shared signature capability while accurately warning about discarded draft formatting and retaining the existing sender, raw-MIME, and no-send contracts. Do we have a high-confidence way to reproduce the issue? Current-main option structs establish the missing capability, and the introduced HTML-generation branch establishes the diagnostic mismatch; this read-only review ran no target code. Is this the best way to solve the issue? Reusing existing signature options and compose builders is a focused implementation that preserves sender selection and dispatch boundaries. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cf44fccd8174. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 10, 2026, 1:03 AM ET / 05:03 UTC (Revision 5). |
…signature behavior
Add the existing signature flags to Gmail draft creation, draft updates, and forwards. Resolve the signature for the selected sending identity and place it above quoted or forwarded content. Preserve HTML-only signatures when the input body is plain text. Raw MIME input rejects compose signature flags.
No signature flag means no signature lookup. The shared formatter preserves existing send/reply placement.
Validation: the contributor reported live Gmail draft creation, update, quote, forward, MIME readback, and fixture cleanup. Maintainer validation reproduced and fixed the plain-body/image-only-signature regression, passed the signature fixture suite and full make ci on AWS Crabbox, and completed independent review through P2. Final-head CI is green: https://github.com/openclaw/gogcli/actions/runs/38025911637 and https://github.com/openclaw/gogcli/actions/runs/38025911654.