Fix duplicate attachment sync upserts#108
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 22, 2026, 10:05 AM ET / 14:05 UTC. Summary Reproducibility: yes. from source inspection: current main declares Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Preserve per-message attachment associations while reusing media cache by attachment ID, or land an explicit maintainer-approved last-writer-wins policy with focused upgrade and regression coverage. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main declares Is this the best way to solve the issue? No. The upsert is narrow, but it avoids the constraint failure by moving the only attachment row to the later message, which is not the safest archive behavior without an explicit maintainer decision. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against 4c5630d48a1b. 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
message_attachmentson duplicateattachment_idinstead of failing syncVerification
GOWORK=off go test ./...discrawland verifieddiscrawl sync --source discordno longer fails on the duplicate attachment constraint