Repository navigation
Mark a vanished face room Closed so it leaves the active list - #1080
Conversation
|
Verdict: PASS at 166201c The hosted room stayed No new peer text reaches a trusted header. Members on the Past row are the ones the hosted room already had. Ran:
Red at base 1748b49, same #1070 command, before the source change: hosted status stayed Not run: smoke bench (no |
166201c to
309170c
Compare
|
Verdict: PASS at 309170c The hosted room stayed open when Bot Social dropped it, so the sidebar kept a room Past rooms already showed as Closed. Rebase onto Ran:
Not run: smoke bench, Desktop, a live room on social.botawaken.com. Red at base |
|
Verdict: PASS at 309170c Reviewed the tip tree against The two halves are both right. On the drop-off path the row now reads Ran: $ cd plugins/social && TZ=UTC TMPDIR=… DSH_HARNESS=/opt/flybot node --import ./test/resolve.mjs --test "test/*.test.js"
1..458
# tests 458
# pass 458
# fail 0
# skipped 0
$ (knife 1) drop the `upsertFace(status: 'closed')` block
not ok 135 - #1070: a room that drops off Bot Social is Closed once and leaves the active list
# tests 458
# pass 457
# fail 1
$ (knife 2) drop the `endedAt: snapshot.closedAt` spread
not ok 85 - #1070: Past rooms uses the server close time when Bot Social sends one
# tests 405
# pass 404
# fail 1Each knife reddens exactly its own case and nothing else, so both halves are load-bearing. CI on the tip is green everywhere except Note: the earlier
|
|
Verdict: INC at 309170c Ran (my own trees; the PR's own CI was still running
The blocking thing (one fix)
What I checked on the code itself (so this does not need a second round)
Non-blocking
|
|
Verdict: PASS at 309170c Supersedes the earlier INC at this tip (same tip still good). Fixes #1070: vanished face rooms marked closed leave the active list; Left stays Left. Ran:
|
A room that drops off Bot Social was filed under Past rooms while the hosted room stayed open, so the sidebar kept it beside the Closed row. Mark that room closed (a room this home already left stays Left) and use Bot Social's closed_at as the Past row time when the snapshot has one. Fixes #1070 Co-authored-by: Danyang Chen <birfychen@gmail.com>
309170c to
84eb8be
Compare
|
Written-by: Dev Self-review note for 84eb8be Rebased onto origin/main Checked before the push:
Not queued. |
|
Verdict: PASS at 84eb8be Fixes #1070. Rebased tip keeps #1046 coverage ( Ran:
|
|
Verdict: PASS at 84eb8be Ran (my own trees;
What I checked
Non-blocking
|
|
Correction from Reviewer: of the four conclusions signed
Reviewer2's PASS |
Written-by: Dev
Owner: Dev
Reviewer: Reviewer2
Fixes #1070
A face room Bot Social no longer lists stayed in the sidebar. Past rooms recorded it as Closed, and the hosted room stayed open, so the active list kept it too. The hosted room is now marked closed, the sidebar drops it, and Past rooms keeps one row. A room this home already left stays Left. When the snapshot carries
closed_at, that time is the Past row's time.List sync: leaving marks the hosted room (
upsertFacestatusclosed) and does not drop it; a second poll keeps the same row and the firstendedAt; the mark sends no member list, so who was in the room stays.Rebased onto
43e5579. The #1046 tests from #1061 stay inplugins/social/test/social.test.js. The social page keeps this close rule beside the lines that landed on main.Verification at the tip
Tip SHA: 84eb8be
Ran:
grep -c "#1046" plugins/social/test/social.test.js→ 2git diff origin/main...HEAD --stat→ the four Face room listed in both active list and Past rooms as Closed #1070 files only (changelog.d/1070-closed-face-room-leaves-active-list.fixed.md,docs/subsystems/social.md,plugins/social/src/social.js,plugins/social/test/social.test.js)git diff origin/main...HEAD -- plugins/social/test/social.test.js→ one hunk adding the two Face room listed in both active list and Past rooms as Closed #1070 cases; no deleted linesTZ=UTC npm run verifyat this tip → exit 0. Core tests 1413/1413, social 461/461, tree 125/125, timeline 125/125.arch-docs: OK (4 changed file(s)). Plugin lint, client--check, andds-bot-patches checkpassed. The github-scripts, interop, and live-e2e steps finished in that same exit 0.node .github/scripts/changelog.mjs check→ 13 fragments well formed.Red at base
1748b49191100fa08186e76c219e5bd75e6ce512, before the source change,node --import ./test/resolve.mjs --test --test-name-pattern '#1070' test/social.test.jsinplugins/social:face.statusstayedopen(expectedclosed)closed_at:endedAtwas the local clock, not2026-10-25T13:22:00.000ZNot run: smoke bench (no
index.jsorsrc/hostchange), Desktop, a live room on social.botawaken.com.Not queued. The coordinator records the PASS at this tip.