aboutsummaryrefslogtreecommitdiffstats
path: root/src/contextvm.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-09 10:13:48 -0700
committerAdam Soltys <[email protected]>2026-10-09 10:13:48 -0700
commitad028dd1c61e41913e4628046b96bf162bc4ba4a (patch)
tree5aceddeaa0e8352d5b58111adc598c335aa3e8cd /src/contextvm.js
parent479959cdd77fdd18ca03f63af9b94eae291d0e2a (diff)
downloadcoinosv3-ad028dd1c61e41913e4628046b96bf162bc4ba4a.tar.gz
coinosv3-ad028dd1c61e41913e4628046b96bf162bc4ba4a.zip
Accounts: switching no longer leaks the previous identity's notifications and DMs into the next. A notifications query (up to 5 s on the relays) or a wrap mid-decrypt that was still out at the switch landed in the NEW account's list and was saved there under its key — a throwaway account showed adam's zaps, reactions and conversations for good. A session counter bumped in stop() is checked after every await on both paths; notifications only take events p-tagging this identity, and an incoming DM must come from or name it. Healing: notification caches saved before this (no notifsV 2) are dropped once and refetched; a cached DM thread holding a row from someone who is neither us nor the peer is swept. tools/account-switch-leak-test.js (fails on the old code: the reaction and the thread both leak)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vps2H27rhbG9ZqseGfMrc3
Diffstat (limited to 'src/contextvm.js')
0 files changed, 0 insertions, 0 deletions