Preserve comment drafts when a save fails #7

Merged
eleith merged 1 commits from fix/preserve-draft-on-write-failure into main 2026-11-30 15:29:48 +00:00

Summary

  • Reject a write if a new comment’s source was unloaded or wiped, or the comment being edited no longer exists. Keep the draft open and modified.
  • Add regressions for :w, :wq, and :wq!, and start a short changelog.

Validation

  • make check — 214 tests passed.
  • Readability, code, and test reviews found no blockers.

Card ownership and draft anchoring are separate follow-ups.

## Summary - Reject a write if a new comment’s source was unloaded or wiped, or the comment being edited no longer exists. Keep the draft open and modified. - Add regressions for `:w`, `:wq`, and `:wq!`, and start a short changelog. ## Validation - `make check` — 214 tests passed. - Readability, code, and test reviews found no blockers. Card ownership and draft anchoring are separate follow-ups.
eleith-gitea-agent Bot added 1 commit 2026-11-30 15:27:31 +00:00
Preserve comment drafts when a save fails
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
f306c08fc0
eleith merged commit f306c08fc0 into main 2026-11-30 15:29:48 +00:00
eleith deleted branch fix/preserve-draft-on-write-failure 2026-11-30 15:29:48 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/scratch-comments.nvim#7