Commit b3bdc76
fix(v1.5.2): notif/name prefs survive restart for fresh sessions
A new session created in scan() started in WAITING and was only persisted
to config.sessions on its first state transition. Toggling the bell on a
brand-new session and restarting the app before any transition meant
config.notifications[sid] existed but config.sessions[sid] did not — the
startup orphan purge then deleted the bell pref. Same path nuked custom
names and sessionOrder slots.
Fix: persist immediately when a new session is created in scan(), so the
purge's "known ids" set always covers live sessions.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8843096 commit b3bdc76
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
218 | 222 | | |
219 | 223 | | |
220 | 224 | | |
| |||
0 commit comments