docs(remote): document the wake-on-LAN invariants; drop wake state on bulk delete

Self-review pass: the input-ladder's two 'buffer' branches were the same three
lines, and bulk delete left a session's (bounded, per-random-uuid) wake state
behind. Documents the design where the code refers to it - remote-sessions.md
section, the architecture invariant, and the CLAUDE.md key pattern.
This commit is contained in:
Randalix
2026-09-15 10:45:01 +02:00
parent 0f3eea2fb5
commit 3f0bfde54a
5 changed files with 109 additions and 52 deletions
+1
View File
@@ -1322,6 +1322,7 @@ export function registerSessionRoutes(
for (const id of sessionIds) {
if (ctx.sessions.has(id)) {
remoteWake.drop(id);
await ctx.cleanupSession(id, true, 'user_bulk_delete');
killed++;
}