docs(gmail): clarify that drafts delete is permanent#659
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 30, 2026, 1:43 PM ET / 17:43 UTC. Summary Reproducibility: not applicable. for this docs/help PR as a runtime bug reproduction. Current main source confirms the old generic wording, and the PR body provides branch terminal output for the updated help and refusal path. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Next step before merge
Security Review detailsBest possible solution: Land this wording-only PR if maintainers accept documentation as the path for #656, keeping CLI help and generated docs aligned. Do we have a high-confidence way to reproduce the issue? Not applicable for this docs/help PR as a runtime bug reproduction. Current main source confirms the old generic wording, and the PR body provides branch terminal output for the updated help and refusal path. Is this the best way to solve the issue? Yes. For the documentation path requested by the linked issue, updating the command help, destructive confirmation text, and generated command reference is the narrowest maintainable fix without changing Gmail API behavior. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 32ad20a0306e. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
b7d7161 to
d2fa813
Compare
d2fa813 to
e911005
Compare
|
@clawsweeper re-review — added real-behavior proof (help + confirmation prompt terminal output) to the PR body, regenerated the command docs via |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
The Gmail Drafts API only supports an irreversible delete — drafts are not moved to Trash and there is no untrash path — but `gog gmail drafts delete` advertised a generic "Delete a draft" and confirmed with "delete gmail draft <id>", reading like a recoverable operation. Surface the permanence in the command help, the destructive-confirmation prompt, and a doc comment on the command type, and regenerate the command reference (make docs-commands) so the published docs match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
c5d3c9d to
89827b1
Compare
Fixes #656.
Problem
gog gmail drafts deleteis permanent and irreversible — the Gmail API'susers.drafts.deletedeletes the draft outright; drafts are not moved to Trash and there's no untrash path (gog gmail trashoperates on message IDs only). But the command's help ("Delete a draft") and confirmation prompt ("delete gmail draft <id>") read like an ordinary, recoverable delete, so the irreversibility wasn't surfaced before confirming.Change
Permanently delete a draft (not recoverable; drafts are not moved to Trash).permanently delete gmail draft <id> (not recoverable; drafts are not moved to Trash).GmailDraftsDeleteCmdexplaining why it's irreversible.make docs-commands) so the published docs match.No behavioural change — same API call, same
dryRunAndConfirmDestructiveguard; only the wording is clarified.Real-behavior proof (built from this branch)
gog gmail drafts --help(parent listing):gog gmail drafts delete --help:Destructive confirmation/refusal (
gog gmail drafts delete <id>, no--force):--dry-runintended action:{ "dry_run": true, "op": "gmail.drafts.delete", "request": { "draft_id": "demo-draft-id-12345" } }Review follow-ups addressed
make docs-commands;docs/commands/gog-gmail-drafts-delete.md,gog-gmail-drafts.md,commands.generated.md, andcommands/README.mdnow carry the permanent-delete wording (no staleDelete a draft).make fmt+go test ./internal/cmd/green.