Switching accounts without a sign-out skipped resetToFree, and if the
subscription lookup then failed the new account kept the old one's Pro badge
and ad decision, persisted across restarts.
Signing in as a different account (e.g. while the previous one was still
waiting on an offline restore) swapped the database under a live
recording, so its final save and audio upload went into the new account.
The sign-out capture shutdown now also runs whenever the open database
belongs to another user.
The PC-wide slowdown was not a leak but model residency: boot warmup loaded
gemma4:e4b (~11.6 GB RAM incl. 5.9 GB pinned host buffer, no mmap on Windows
CUDA) and kept it for 30m, next to the large-v3 sidecar. Measured on the HEAD
build: free RAM 7.9 GB -> 32 MB within 20 s; after this change 10.8 GB with no
Ollama model loaded until typing starts.
- single LOCAL_LLM_KEEP_ALIVE (10m) for every local request; no boot warmup
- unload this app's resident Ollama models (keep_alive 0) on quit
- sidecar POST /unload for the aux slot; captions release it on stop
- partial dictation copies only the tail window, not the whole recording
- cap the voice-conversation listen buffer at 5 minutes
- mic test: generation guard so re-entry cannot orphan lease/timers
- startRealtime: single-flight and removeChannel to stop duplicate bindings
- meeting WAV save writes header and PCM without a concat copy
Docs: AI-01 policy note, GAP-PERF-01 with remaining work.