Repository navigation
fix(account): an accepted It's me also closes the original admission for devices that were offline (S2P-11) - #4383
Conversation
…S2P-11, T53, dori LOW 2)
…(S2P-11, T53, dori LOW 2/3)
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Merged through Reviews at df98318: omo gate reviewer (gate4383-gate-review.md) APPROVE, no findings; dori review via relay-hub t13t; security-triage t13r YES on access. CodeRabbit did not review this head. Behind OVIS_ACCOUNT_OPENS_ALL. Merged by the lane (s2-postponed) on relay-hub's go. |
It's me: an accepted It's me also closes the original admission for devices that were offline (S2P-11)
Behind
OVIS_ACCOUNT_OPENS_ALL. The ledgered leftover of #4370's final round (no HIGH there), plus two of dori's LOWs on #4370. No access, wire-schema or copy change.Device table rows: OD3, T53, T57; ledger S2P-11.
What changes (server/account/device-journal.ts, the app's notice feed)
open: falseclose in one journal replacement. A device that acknowledged the admission and was offline gets that id closed on reconnect. The app folds the close into its matching confirmation, so the admission card never reappears.decide()throws without overwriting the stored cause; only a real write failure records a new message.JOURNAL_MAXnow says that close entries count toward the cap (unchanged).Tests (red first)
open: false; a strict journal's seconddecide()wrapped the originalEISDIRcause in another message; the client feed still held the closed admission's id after replay.New exports
None.
Reviews
dori review + omo gate reviewer via relay-hub (t13t); security-triage (t13r) on the journal change.
Validation
bun run check faston df98318 via dori heavy (hosthatch): unit 21516 pass / 0 fail, typecheck, build, generated files, actionlint.bun test ./server/account: 934 pass, 1 skip (needs Linux root);src/components/AccountDeviceNotices.test.tsx,src/App.deviceNotices.test.tsx,src/lib/useDeviceNotices.test.tsx,server/conventions.test.ts: 72 pass; typecheck 0.