3822c21194
Copy a password (30s auto-clear armed), then copy something else from another app before the timer fires: the tick emptied the clipboard anyway, destroying the user's newer content. Guard with the Win32 clipboard sequence number: SetText snapshots GetClipboardSequenceNumber, ClearIfOurs only empties when it hasn't moved. Applied to the auto-clear timer AND the clear-on-minimize path (same bug class); the explicit JS clipboard/clear command stays unconditional (user-initiated). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>