Repository navigation
fix(j5): a guest who opens a second open link joins as themselves - #615
Merged
Merged
Conversation
A guest already signed in on a browser who opened another open link was asked for a name again, and their own name was then refused as taken. The join route now passes the browser's session. With no name given, a guest's browser is given the link's thread as that guest: View, unless a grant on the thread is already held, and nothing is paired again. With a name, a new person joins as before, so two people can still share one browser. The describe route tells the page whom the browser can join as. Who joined through each link is now a table of joins, so one person can be counted on several links. joined_open_link_id stays as the link a person first came in by, which is what marks their name as self-given. Closes #614 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Jacksondr5
added a commit
that referenced
this pull request
Oct 14, 2026
…ounts From review of #615: describe now skips the cap for a guest the link already counts, as join does; a failed join as oneself brings back the name form; the decode refusal no longer demands a name; the new person's name is carried out of the guard instead of defaulted; AC26's summary sentence reads unambiguously. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in the live test of #615: the join page sent the browser straight to the new thread's address, and the app first drew from a cached thread list that predated the grant. Upstream's thread page leaves an address its list does not hold, so the guest landed on their list instead. The join page now keeps the thread in the tab's storage and goes to the first screen, which opens it once the server's list holds it. The route answers with the thread alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jacksondr5
added a commit
that referenced
this pull request
Oct 14, 2026
Jacksondr5
marked this pull request as ready for review
October 14, 2026 17:38
This was referenced Oct 14, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
This branch was successfully 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.
Problem
A guest who joined thread A through an open link, then opened another open link for thread B in the same browser, was asked for a name again. Their own name was then refused as already in use. Closes #614.
What changed
OpenLinks.join.joiningAs: <name>./. The guest's first screen then opens the thread once the live thread list holds it.j5_a2a_open_link_join(link_id, person_id, joined_at)records each person who joins through each link. It feeds each link's joined list and its 50-person cap. Existing joins are copied in fromjoined_open_link_id, and removing a guest clears their rows.joined_open_link_idstays, as the link a person first joined the server through, which is what makes their name self-given.nameSelfGiven, confirming a self-given name before Collaborate, and the person contract.docs/j5/product/features/shared-server.mdnow describe a guest who is already signed in.The Multiplayer agent signed off on this design. It is holding the collaborate stack (#598–#602) until this merges, and will renumber that stack's migrations to 39–41.
UI changes
Joining a second thread as Bob opens that thread:
Live testing
Pass on the head,
10ff79ab30. The tester was a GPT-6 Astra peer agent; the report istest-reports/j5code-reuse-known-share-name.md. The full run was on3db8a0a2b5. The paths that changed after it were re-tested at4867673762and10ff79ab30.guest --level collaborate), joins C's link and keeps Collaborate.--freshrun.10ff79ab30, and the A → B → C regression passes at that head.vp run migrate-dev-dbfails in its snapshot step withFOREIGN KEY constraint failed, before 038 runs, and does the same with a fixture source.3db8a0a2b5: later commits changed only the join page and the landing, not the turn path or storage.Checklist
FORK.md(case text and file-table row) in this PR — no upstream-owned files are editeddocs/j5/product/upstream.md— not applicableSharingLinkDescription.joiningAs, andSharingJoinRequest.displayNameis now optional.docs/j5/product/and user docs rewritten where this changes them (AC26; there is no user page for sharing yet, see Share links: the access model as its own definition, and a user docs page for sharing #608)Built with Claude Opus 5.5 in Claude Code (J5 Code). Review: a Claude Opus 5.5 peer reviewer, three rounds. Live test: a GPT-6 Astra peer agent.
🤖 Generated with Claude Code