354e65acdf
persistCurrentDraft() no longer skips while editing — leaving a chat mid-edit abandons the edit (openConvo clears editTarget) but now keeps whatever's in the composer as that chat's draft, so your typing isn't lost. It returns as a normal draft (sending posts a new message, not an edit). The edit-cancel (X) path still restores the pre-edit draft, unchanged. Verified with puppeteer: edit "hi bob" -> "hi bob EDITED" -> switch chats -> back -> composer holds "hi bob EDITED" (PASS). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>