Files
beads/cmd/bd
Steve Yegge e5068df3aa fix(sync): preserve tombstones in sanitizeJSONLWithDeletions (bd-kzxd)
The sanitizeJSONLWithDeletions function was incorrectly removing ALL issues
whose ID appeared in deletions.jsonl, including tombstones. This caused:

1. Second sync after delete: tombstone removed from JSONL by sanitize
2. Import sees ID in deletions.jsonl but no tombstone in JSONL
3. Import creates new tombstone via convertDeletionToTombstone
4. UNIQUE constraint error: tombstone already exists in DB

The fix checks the issue status and only removes non-tombstone issues.
Tombstones are the proper representation of deletions and must be preserved.

Added test: TestSanitizeJSONLWithDeletions_PreservesTombstones

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 10:21:54 -08:00
..
2025-12-03 16:24:46 -08:00
2025-12-13 10:07:36 +11:00
2025-11-25 19:32:05 -08:00
2025-12-07 20:57:58 +11:00
2025-12-13 10:07:36 +11:00
2025-11-24 21:16:44 -08:00
2025-11-24 11:28:32 -08:00
2025-12-13 10:07:36 +11:00
2025-12-03 16:24:46 -08:00