You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sharing: a person whose access changed is asked for a name by their next link, then told it is taken #732
A person already on a shared server opens a new share link in the browser they paired. The join page asks for their name. When they type it, the server refuses: "Someone on openclaw already has that name."
This happens when an Owner changed their access while they didn't have the app open. For example, the Owner added them as a Collaborator on another thread, or raised them to the whole server from People. Several people have hit this after being sent a second link.
Steps to reproduce
Pair a person, e.g. "Sam", as a Viewer on one thread.
Move Sam's tab away from the app (e.g. to about:blank). Don't close it.
As the Owner, raise Sam: make them a Collaborator on another thread, or a server Collaborator from People.
Open an open ("Anyone with the link") share link in Sam's tab.
The page asks for a name. Join as "Sam": 409 name_taken.
Reproduced live on 882256d. Both kinds of raise do it. A tab still open on the app renews on its own about a second later and is unaffected.
Why
A change of level that alters a device's permissions ends that device's session and marks it for renewal (Access.changing, revokeForRenewal).
The app renews such a session as it loads (bootstrapServerAuth), and SessionRenewalWatcher renews it while the app is open.
A share link opens /pair with a token. There the auth gate sets explicitPairingRequested and never renews.
JoinLinkPairingSurface then describes the link with the ended cookie. The server sees no live session and answers device: unpaired. The page asks for a name, and the person's own name is taken.
On name_taken the page also replaces the server's LINK_NAME_TAKEN message, which says what to do, with a bare "already has that name".
Workaround
Open the server's root address in the same browser first. That renews the session, and the link then works.
Fix
The join page renews a session J5 ended for renewal before it describes the link.
When a name is refused as taken, the page shows the server's message about opening the link on the device paired before.
Related: #614 (the same symptom from an earlier cause, fixed in #615).
Activity