Skip to content

fix(drafts): preserve reply drafts across forum moves - #460

Merged
jouwdan merged 1 commit into
mainfrom
codex/reply-draft-forums
Oct 31, 2026
Merged

jouwdan merged 1 commit into
mainfrom
codex/reply-draft-forums

Conversation

@jouwdan

@jouwdan jouwdan commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Reply drafts were stored under the old forum after a thread move, hiding them from the composer and allowing deletion of the old forum to delete the draft. Identify reply drafts by owner and thread, read their live forum, update stored references during moves, and save under the locked current thread forum so stale composers cannot restore the old reference. New-thread drafts retain their forum identity.

Migration 0073_reply_draft_forums repairs existing references without changing saved content or timestamps. It cannot restore drafts already deleted by earlier forum deletion. Adds database regressions for resuming, saving, removal, forum deletion, migration repair, and a real PostgreSQL two-connection move/autosave race.

Formatting, comment, and diff checks passed. Tests and migration drift validation run in CI per maintainer instruction.

Addresses post-v0.38.0 audit finding #4.

@jouwdan
jouwdan merged commit 2977d1c into main Oct 31, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant