3b756648c5
Opening a fresh new entry while a dirty unsaved one was open skipped the discard prompt: both soState.id and id are null, so soState.id !== id was false and "switching" never triggered. Existing->anything worked (ids differ). OR in the null/null case. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>