fix(cli): classify token and tracking errors#796
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 13, 2026, 5:57 PM ET / 21:57 UTC. Summary Reproducibility: yes. by source inspection: current main returns raw JSON/time parse errors and plain tracking fmt.Errorf values, and ExitCode maps those to generic exit 1. I did not run tests because this review is read-only. 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. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused exit-code classification once maintainers accept the documented compatibility change and required checks are green. Do we have a high-confidence way to reproduce the issue? Yes by source inspection: current main returns raw JSON/time parse errors and plain tracking fmt.Errorf values, and ExitCode maps those to generic exit 1. I did not run tests because this review is read-only. Is this the best way to solve the issue? Yes. The PR uses the existing ExitError helpers for usage/config classifications and adds focused regression coverage and docs for the stable distinction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 965d9691ec39. 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
|
Summary
auth tokens importJSON and RFC3339 fields as usage errors (exit 2)Verification
go test ./internal/cmd -count=1make docs-checkmake cicreated_at, andaccess_token_expires_atall exit 2; tracking opens/key paths exit 10auth tokens import1→2,gmail track opens1→10); no new file-writing rowsclawdbot@gmail.comGmail sender preflight with isolated tracking state: auth valid, real Gmail API path reached, exited 10 before send; no message sent