Repository navigation
fix(server): a browser paired through the relay can lift a moved thread's fence - #989
Merged
Merged
Conversation
…ad's fence A thread that moved here stays fenced from Threadlines tools until a person here sends it a message, proven by the message's server-stamped sentFrom. A browser paired through the relay never got one: RelayHost records its "browser" pairing kind as deviceType "unknown", and messageSentFromClient returned nothing for an unknown device. Its user stayed fenced for good. sessionDeviceKind now decides a session's device kind in one place, from the session's role, subject and client record: a relay-paired browser is a computer (as sessionIsComputer already said), while a linked computer (peer), a CLI-issued or script-like sign-in (bot) and one that said nothing about itself (unknown, not relay) get no sentFrom. messageSentFromSession replaces messageSentFromClient, and sessionIsComputer reuses the same rule.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 18, 2026
This branch was previously deployed
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.
A thread that moves from another computer arrives fenced, and only a person's own message lifts the fence. A browser paired through the hosted relay never could: its messages got no "sent from" device record, because the relay records a browser's device type as unknown.
The device kind is now decided in one place (
sessionDeviceKind). A relay-paired browser counts as a computer. Linked computers, CLI tokens, script-like sign-ins, and other unknown sessions still count as nothing. The "is the user at a computer" check uses the same rule. Tests cover the decider fence and the real WebSocket stamping.