diff --git a/.wolf/buglog.json b/.wolf/buglog.json index 419b908..654c0f1 100644 --- a/.wolf/buglog.json +++ b/.wolf/buglog.json @@ -24,6 +24,17 @@ "dashboard" ], "date": "2026-10-13" + }, + { + "error_message": "Discard in the composer did not discard the draft", + "root_cause": "The button was a Link to /user/mail/inbox; the autosaved draft stayed in Drafts, and a save already in flight could recreate it. Delete would also only have moved it to Trash", + "fix": "discardMessage stops autosave, calls /mail/delete with discard_draft:true (WebmailUseCase.DiscardDraft expunges from Drafts only) and cleans up an in-flight save via discardedRef. Covered by compose-draft-integrity.test.ts and TestDiscardingADraftRemovesItForGood", + "tags": [ + "webmail", + "compose", + "drafts" + ], + "date": "2026-10-22" } ] } \ No newline at end of file