You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Hover-only "Discard draft" X in the sidebar deletes the draft on one click, no confirmation or undo #12735
Each thread row with an unsent draft shows an X ("Discard draft") on hover, at the right edge next to Snooze and Settle. One click on it deletes the draft text and attachments. There is no confirmation, no undo, no toast. The X only appears on hover, so the first time you learn it exists is when your message is gone. I have lost drafts to it several times already.
Steps to reproduce
Open a thread, type a message in the composer, do not send.
Open another thread. The first row now shows the amber draft marker.
Move the pointer onto the first row to go back to it. The hover strip at the right edge shows X, Snooze and Settle over the time/status label.
Click while the pointer is on the X.
Expected behavior
A destructive action on user text needs a guard: a confirmation before, or an undo (toast) after. Alternatively the X should not sit inside the row's own click target, so a click meant to open the thread cannot delete its draft.
Actual behavior
The draft is cleared at once and the row loses its marker. Nothing brings the text back. The standalone new-thread draft rows above the pinned block have the same X with the same result.
Hover state right before the click. The X sits where the pointer lands when going back to the thread:
Source
Checked at main @ 7445aa733.
Thread row: X is rendered only on hover, inside the row, next to Snooze/Settle:
Area
apps/web (sidebar, shared with the desktop app)
Summary
Each thread row with an unsent draft shows an X ("Discard draft") on hover, at the right edge next to Snooze and Settle. One click on it deletes the draft text and attachments. There is no confirmation, no undo, no toast. The X only appears on hover, so the first time you learn it exists is when your message is gone. I have lost drafts to it several times already.
Steps to reproduce
Expected behavior
A destructive action on user text needs a guard: a confirmation before, or an undo (toast) after. Alternatively the X should not sit inside the row's own click target, so a click meant to open the thread cannot delete its draft.
Actual behavior
The draft is cleared at once and the row loses its marker. Nothing brings the text back. The standalone new-thread draft rows above the pinned block have the same X with the same result.
Hover state right before the click. The X sits where the pointer lands when going back to the thread:
Source
Checked at
main@7445aa733.t3code/apps/web/src/components/Sidebar.tsx
Lines 1860 to 1888 in 7445aa7
t3code/apps/web/src/components/Sidebar.tsx
Lines 1076 to 1084 in 7445aa7
clearDraftThread:t3code/apps/web/src/components/Sidebar.tsx
Lines 790 to 803 in 7445aa7
t3code/apps/web/src/components/Sidebar.tsx
Lines 897 to 906 in 7445aa7
docs/user/thread-sidebar.mddoes not mention the control.Relation to existing issues
Impact
Major degradation or frequent failure
Version or commit
Desktop 0.0.42, source checked at
main@7445aa733Environment
Windows 11 Home 10.0.26200, T3 Code desktop (Alpha), provider Claude Code
Workaround
None after the click. Prevention only: click the left part of the row, or copy the text before leaving the thread.
lovely composed in pair with Claude Fable 5.1 in Claude Code