From ff89e9dc44e06d8701384708787f97afc22ad390 Mon Sep 17 00:00:00 2001 From: Lucas Rayan Date: Thu, 22 Oct 2026 16:03:20 -0300 Subject: [PATCH] chore(wolf): log the discard-draft bug Co-Authored-By: Claude Sonnet 5.5 --- .wolf/buglog.json | 11 +++++++++++ 1 file changed, 11 insertions(+) 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