Repository navigation
fix(social): keep an open face room in its member home's sidebar - #2466
Merged
Merged
Conversation
An open face-to-face room a home is a member of stayed out of that home's sidebar when a stored `hidden` flag on the local room survived the open snapshot. Applying that snapshot now clears the flag, so the sidebar's existing open-room path draws the row. Docs-not-needed: internal face-room row robustness; the social subsystem page's invariants are unchanged.
Birfy
force-pushed
the
dev/1605-face-room-sidebar
branch
from
November 4, 2026 23:12
01c8320 to
f884811
Compare
Collaborator
Author
|
Verdict: PASS at f884811 Ran at this tip:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Written-by: Claim bbf2
Fixes #1605
Owner: Chief
Reviewer: Reviewer
Tip SHA: f884811
Base: 2b48b4b
Docs-not-needed: internal face-room row robustness; the social subsystem page's invariants are unchanged.
What changed
Before: a home that is a member of an open face-to-face room could show no row for it in the sidebar while
social/face-roomslisted the room androom-historyread it — the local room carried ahiddenflag from an earlier state, andRoomRow's hidden guard dropped the row.After: every snapshot a poll applies clears
hiddenwhen the room is open or waiting, so the sidebar's existing open-room path draws it.isPastFaceRoomalready returns false forstatus: 'open'; the plugin's threesocial/face-roomsreads only render, and the snapshot is applied server-side inapplyFaceSnapshot→rooms.upsertFace, which is where the local room and its flag live.Red first
Reverting the
delete room.hiddenline incore/src/host/room-membership.jswith the new test kept:node --import ./test/harness-resolve.mjs --test --test-name-pattern 1605 test/remote-room.test.js→ 1 failVerification at the tip
Ran:
TZ=UTC node --import ./test/harness-resolve.mjs --test test/remote-room.test.js→ 116/116 pass;node scripts/ds-bot-patches.mjs check→ 10 patches apply cleanly in order,core/ equals ds-bot/ + patches/ds-bot/;node core/scripts/build-client.mjs --check→ clean;node .github/scripts/changelog.mjs check→ well formed.Not run: the full
npm run verifycannot finish on this workspace — there is nogitbinary, soarch-docsfails withcannot diff against origin/main, and the full core suite aborts with SIGABRT under the borrowed harness after ~4 s per file. CI has both, sotests-okis the real judgement on this tip.Checkpoint
{ "pr": 2466, "claim": "Chief", "issue": 1605, "summary": "An open face-to-face room that social/face-rooms lists for a home now always has a sidebar row. Applying an open or waiting snapshot clears a stored hidden flag on the local room, so the sidebar's existing open-room path draws it; isPastFaceRoom already lets an open room through. The change touches only the host upsert and its test, with the whole-file patch mirror updated. A red test revives a hidden room with an open snapshot.", "files": ["core/src/host/room-membership.js", "core/test/remote-room.test.js", "patches/ds-bot/files/src/host/room-membership.js", "patches/ds-bot/files/test/remote-room.test.js", "changelog.d/1605.fixed.md"], "checks": { "ran": "TZ=UTC node --import ./test/harness-resolve.mjs --test test/remote-room.test.js; node scripts/ds-bot-patches.mjs check; node core/scripts/build-client.mjs --check", "result": "green", "at": "f884811492cae1026a65d160b2b5dcc064f55dc0" }, "next": "Reviewer: judge the hidden-flag revival. Full verify needs git and a working harness; CI's tests-ok is the tip judgement. No client-bundle change, so no bundle conflict." }