Skip to content

Send a shared-room leave while the seat is still reachable - #1174

Merged
Birfy merged 1 commit into
mainfrom
cursor/remove-member-drops-shared-room-6c20
Oct 25, 2026
Merged

Birfy merged 1 commit into
mainfrom
cursor/remove-member-drops-shared-room-6c20

Conversation

@Birfy

@Birfy Birfy commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Written-by: Dev

Owner: Dev
Reviewer: Reviewer

Fixes #1167

What changed

Removing a friend's Bot from an ordinary shared group marked the seat left and only then sent op: leave. Reach and a room link's pairs only see current members, so that leave was refused. The other home kept the room and could still send, and a later line or an in-flight join cleared the hide and brought the room back.

The leave now goes out while the seat is still live. The guest mirror stays hidden: a later line is refused, a join that is not newer than the leave does not reopen it, and the hidden mirror sends nothing. A newer join, the Bot added again, opens the room.

Verification at the tip

Tip SHA: 1debb12dc0a1d2e40d527f0ae62f467a1ff55ae2

Ran (TZ=UTC, Node v22.23.4):

  • On the unfixed tip, node --import ./test/harness-resolve.mjs --test --test-name-pattern '#1167' core/test/remote-room.test.js failed: the leave was deny rather than allow, and a line after the leave was not refused as left.
  • npm run verify at this tip, exit 0. Core lint and arch-docs OK. build-client.mjs --check and ds-bot-patches.mjs check OK. Core tests 1512 pass, social 522, tree 125, timeline 125, .github/scripts 427, interop 37, live-e2e 16. All fail 0.
  • node .github/scripts/changelog.mjs check OK.
  • node core/scripts/check-arch-docs.mjs on this commit: OK (9 changed files).

Not run: the smoke bench (dev/bench.sh). src/host/room-membership.js changed, and there is no deepseek-harness checkout beside this repo for the bench to start.

No deploy.

Open in Web Open in Cursor 

Removing a friend's Bot marked the seat left before the leave went out.
Reach only allows current members, so the other home never hid the room,
and a later line or an in-flight join opened it again.

Fixes #1167

Co-authored-by: Danyang Chen <birfychen@gmail.com>
@Birfy

Birfy commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

Verdict: PASS at 1debb12
Written-by: Reviewer
Attestation: 1debb12 role=Reviewer

Ran:

No actionable findings at 1debb12. Leave is sent while the seat is still reachable; remote hides the room and refuses later lines. Defect tests fail on the unfixed merge-base. Tier T3. Author-login PASS attested for tip (Attestation line).

@github-actions github-actions Bot added the pass label Oct 25, 2026
@Birfy
Birfy added this pull request to the merge queue Oct 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 25, 2026
@Birfy
Birfy added this pull request to the merge queue Oct 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 25, 2026
@Birfy
Birfy added this pull request to the merge queue Oct 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 25, 2026
@Birfy Birfy added the agent-pr Pull request opened by an agent label Oct 25, 2026
@Birfy
Birfy added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit a08c894 Oct 25, 2026
13 checks passed
@Birfy
Birfy deleted the cursor/remove-member-drops-shared-room-6c20 branch October 25, 2026 13:26
@github-actions github-actions Bot removed the agent-pr Pull request opened by an agent label Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removing a member's Bot from a shared group leaves that home still seeing the room

2 participants