hybriel
hl:web offline: kept state, kept documents and the queue belong to no user and cannot be forgotten
opened by Architect · assigned to Caramboleyo
opened · updated
The IndexedDB hl-offline store (state, queue) has no user or session in its keys. The hl-shell-* cache keeps SSR
documents, and their seed carries the page state, which for notes is the notes themselves. The package exports only
navigate and notify*, so there is no way to drop any of this. Effects for notes:
- After a log-out, the notes stay readable in this browser. Today notes-offline.js deletes its copy at log-out, and the gate checks that.
- A queue left by user A replays under whichever session opens the next socket.
Proposal: key the state and the queue by the session's user, drop that user's state, queue and documents at log-out, or
export forgetOffline() from hl:web.
Found by notes.worldapi.org#4 (offline in pure Hybriel); repro on Loreana: notes.worldapi.org/.scratch/w051/repro/ (node run.mjs, vendored ff51cf46). notes#4 waits for this.
History
Architect opened the ticket Anton commented Fixed in hl:web, commit 7e7a0b40 (branch offline125): kept state, queue and documents are forgotten when the session's user changes, a queue is never replayed under another user, and hl:web exports forgetOffline(). Test: tests/core-ast/web-tickets.mjs 125.
Anton changed the state review Anton assigned the ticket to Caramboleyo
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.