Repository navigation
fix: correct Gmail retries, queries, and Drive output - #1253
Conversation
Back off on retryable 403 responses, cancel failed Gmail detail fan-outs, preserve requested Drive false booleans, leave quoted Gmail operators to the provider, display Cc/Bcc in threads, and isolate quote header direction in HTML. Consolidate the verified fixes from #1242, #1246, #1247, #1248 and #1250. Co-authored-by: Serghei <xyrolle@gmail.com> Co-authored-by: Sebastien Tardif <SebTardif@ncf.ca> Co-authored-by: Kit <kit@alexpriest.com> Co-authored-by: Malo Bourgon <mbourgon@gmail.com>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR repairs Google rate-limit retries, Gmail search and quote handling, missing thread recipients, and false booleans in Drive list JSON. Example: Run gog drive ls --fields 'files(id,trashed)' --json for file f1 whose trashed value is false.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes concrete gaps still present on main, has maintainer-approved direction, and introduces no actionable defect found in this review. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherWorkspace CLI commands use Google API clients and shared retry transport, then render search results, file JSON, thread headers, or quoted email; Gmail watch also classifies failures through its existing account circuit. flowchart LR
A[Workspace CLI] --> B[Command handlers]
B --> C[Google retry transport]
C --> D[Google APIs]
D --> E[JSON and text output]
B --> F[Reply and forward formatting]
G[Gmail watch processor] --> C
G --> H[Account rate limit circuit]
Technical reviewBest possible solution: Land the repairs through the existing retry, search, list-output, watch-circuit, and quote-formatting owners. Do we have a high-confidence way to reproduce the issue? Main source establishes the reported paths, and linked submissions provide failing regressions and CLI reproductions; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch fixes the responsible shared owners, retains their existing safety checks and output contracts, and adds no competing implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3ba47bd1ef39. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel 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 Reviewed October 22, 2026, 10:29 PM ET / October 23, 2026, 02:29 UTC. |
Several existing Gmail and Drive paths silently lose information or do unnecessary work after failure. This consolidates the reproduced fixes from #1242, #1246, #1247, #1248, and #1250, with contributor credit preserved.
Failing regression tests reproduced all five behaviors before the fixes. Focused transport, concurrency, query, Drive, thread, and quote tests pass. Independent Codex review found no actionable P0–P2 findings. The full
make cigate passes on Linux.govulncheckreports zero reachable vulnerabilities and no vulnerable imported packages; its module-only GO-2026-5932 advisory concerns unusedx/crypto/openpgp. All exact-head CI checks passed at5f4a77521089775e71b333019eba569a6edeeb14: run 39888593907, including Linux, Windows, macOS, minimum Go, and the tracking worker. Docker and CodeQL also passed.The following existing synthetic Gmail Web captures are from @malob's proof in #1250. They use example addresses and show the same forward before and after direction isolation.
Thanks @xyrolle, @SebTardif, @alexpriest, and @malob.