Repository navigation
feat(openclaw-id): name invited members from their email and ask who they are on first visit - #198491
Conversation
An approved member whose account reports no name was created nameless and shown as "Person <id>". Name them from the local part of the reported email, as an email sign-in is named, including an existing nameless profile on its next sign-in. A chosen name is never replaced. openclaw-189.1
A member who has not chosen a name lands on a new session, where the page asks for a name and then a photo before it offers a composer. The chat page shows the same step in place of its composer. Both answers are saved to this Gateway's profile; skipping keeps the email-derived name and is remembered in that browser.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR gives unnamed invited members an email-derived name and a skippable first-visit name-and-photo welcome. Example: An invited member signs in as [email protected] without a display name.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it provides useful, owner-approved onboarding, addresses the prior findings, and introduces no new actionable defect found in this review. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherGateway profile creation supplies member names; the Control UI reads membership and profile preferences to replace the chat or new-session composer with onboarding. flowchart TD
A[Invited member] --> B[Gateway profile owner]
B --> C[Profile database]
B --> D[Membership status]
D --> E[Member welcome owner]
C --> E
E --> F[Name and photo welcome]
F --> G[Chat composer]
Technical reviewBest possible solution: Retain the focused profile-owner naming change and shared welcome presentation using the existing profile, avatar, and preference APIs. Do we have a high-confidence way to reproduce the issue? Current-main source confirms that an account without a reported name produces a nameless profile and the Person fallback; supplied live captures demonstrate the affected arrival flow. Is this the best way to solve the issue? The invariant is that unnamed members receive a usable default while chosen names remain intact and onboarding answers follow the profile across devices. The smallest complete implementation uses the existing worker, profile preferences, avatar processor, and one welcome owner shared by both composer locations; the reviewed structure follows that boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 97dd78cc2cbd. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +620, Tests +365, Docs +5, Other +7. Total +997 across 18 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (7 earlier review cycles)
Reviewed November 15, 2026, 12:29 PM ET / 17:29 UTC (Revision 8). |
… repair review findings - Record the answer as a profile preference, so a chosen name equal to the email's local part is not asked about again on another device. - Dismiss the welcome even when browser storage cannot be written. - Explain avatar validation failures in the photo step. - Tolerate an application context without a config owner, and hand the new-session composer through untouched when no welcome stands in.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…ber-welcome # Conflicts: # scripts/check-control-ui-performance.mts
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…they are on first visit (openclaw#198491) * feat(openclaw-id): name a member from their OpenClaw ID email An approved member whose account reports no name was created nameless and shown as "Person <id>". Name them from the local part of the reported email, as an email sign-in is named, including an existing nameless profile on its next sign-in. A chosen name is never replaced. openclaw-189.1 * feat(openclaw-id): ask a newly invited member who they are A member who has not chosen a name lands on a new session, where the page asks for a name and then a photo before it offers a composer. The chat page shows the same step in place of its composer. Both answers are saved to this Gateway's profile; skipping keeps the email-derived name and is remembered in that browser. * fix(openclaw-id): keep the member welcome answer with the profile and repair review findings - Record the answer as a profile preference, so a chosen name equal to the email's local part is not asked about again on another device. - Dismiss the welcome even when browser storage cannot be written. - Explain avatar validation failures in the photo step. - Tolerate an application context without a config owner, and hand the new-session composer through untouched when no welcome stands in. * chore(ui): assign the member welcome modules to the boot groups * chore(ui): accept the member welcome asset cost and steady its browser test * chore(ui): re-measure the member welcome asset cost on current main * chore(ui): re-measure the member welcome asset cost on current main * fix(openclaw-id): offer the composer when a member's profile cannot be read * test(openclaw-id): listen for the file chooser before the member welcome keypress * test(openclaw-id): drop diagnostic code from the member welcome browser test * chore(ui): re-measure the member welcome asset cost on current main
What Problem This Solves
Someone invited to a claw through OpenClaw ID arrives as "Person c33358cb" when their account reports no display name, and stays that way in sessions, mentions and presence until they find Settings → Profile.
User Impact
User impact: a newly approved member is named from the part of their email before the
@, and on their first visit lands on a new session that asks for a name and then a photo before it offers a composer.Why This Change Was Made
The name and photo are stored only in this Gateway's own profile. OpenClaw ID keeps holding just the account email; nothing is sent back to it.
The email-derived name is written to the profile when the member is approved, the same way an email sign-in is named, so every surface that shows a display name picks it up without a protocol change.
A member who still owes the step is taken from the default landing to a new session, because the main session is shared history. An explicit link to another session is kept, and the step replaces that session's composer.
Evidence
Before: a newly approved member lands in the main session with an ordinary composer.
After: the same arrival lands on a new session and is asked for a name, then a photo.
The screenshots are from the live runs below and show throwaway staging accounts. The "before" capture is from an earlier commit of this branch in which the chat page was still unchanged.
Live proof. An isolated Gateway on a Mac Studio, linked as a throwaway staging claw, with real Chromium browsers for the owner and two invited members over the tunnel against staging OpenClaw ID. 12 of 12 steps passed on
ca209c9d44cc:/newwith the name field focused and no composer rendered at any point before answering;That run predates the rebase and the review fixes below. The upgrade and second-browser run that follows is on the current head.
Live upgrade and second-browser proof on
8cd9df5a0d21(2026-11-14). Same setup: an isolated Gateway on a Mac Studio, real Chromium, staging OpenClaw ID, a throwaway claw and throwaway accounts.Upgrade from the latest stable release:
v2026.11.3(847611dcaa3b) was started on fresh state. Through a real browser connection its owner profile was given a name, a photo and two preferences.openclaw doctor --fix --non-interactivefrom this head migrated the same state directory (agent database schema v27 to v42), and this head was started on it.Second browser, on the upgraded Gateway (8 of 8 steps passed):
sam.rivera-20261114@…was namedsam.rivera-20261114and asked who they are. They typed that same name, continued, and declined a photo./chat/main; the welcome never rendered.users.prefs.getover that browser's tunnel connection returnedui.openclawId.memberWelcomeAnswered: true, and its storage held no per-account answer on arrival.Notes on this run:
mainwas not exercised live; the profile test covers it.Tests on
5e9d6cf3665d:src/state/user-profile-openclaw-id.test.ts: the new naming case fails without the worker change and passes with it.ui/src/lib/openclaw-id/member-welcome.test.ts: who is due the step, the answer saved with the profile and honoured in another browser, dismissal when browser storage cannot be written, the one-time landing, and re-asking after a reconnect (fails without its fix).ui/src/e2e/openclaw-id-member-welcome.e2e.test.ts: the built Control UI against a mocked Gateway at 1280 and 390 px, covering landing, both steps, keyboard activation of the photo button, the kept explicit link, and reload.tsgo:core,tsgo:ui, oxlint on changed files, the Solid guard, i18n verify and format check pass.Review. One independent agent review (GPT-6 Astra, high reasoning) of the full diff at
7d95b4259654against its merge base, with a read-only checkout. No P0 or P1 findings; three P2 findings, all verified and fixed inbde3f05985ac:The fixes were not re-reviewed. Local ClawSweeper was not run.
Follow-up to the hosted ClawSweeper review of
bde3f05985ac(inb8d4f0d1e2e8and8af5af5bf4fc):ui.openclawId.memberWelcomeAnswered), read before the step is offered, so naming or skipping on one device ends it everywhere. A member whose account reports a name equal to their email's local part, and who has never answered, is still asked once.ui/config/control-ui-boot-modules.json), which restores the chat boot request counts. The remaining byte growth is accepted in the budgets; see below.CI unit failures on
bde3f05985acinchat-composer-video.test.ts,chat-composer-context-retention.test.tsxandhosted-environment.test.tswere caused by this PR and pass now: the composer crashed where a test supplies an application without a config owner, and the new-session composer is now handed through untouched when no welcome stands in.Pre-landing review of
27448abc4e84(GPT-6 Astra, high reasoning, read-only, against merge base5dbf569b4b85). One P2, verified and fixed in1f7946c4f050: when the member's own profile read failed, the welcome stayed undecided for that connection and the page showed neither the welcome nor a composer. The status read no longer waits for the profile; if a welcome would be due and the profile cannot be read, the member gets the ordinary composer. A unit test covers it and fails without the fix.Asset budgets (
5e9d6cf3665d). Josh Lehman approved the growth on 2026-11-14. The budgets are fixed numbers, so each merge ofmainis re-measured; this head mergesmain97dd78cc2cbd. Against that base this PR adds 1,215 B gzip to chat boot JavaScript, 1,122 B to new-session boot JavaScript, 1,010 B to the largest chunk, and 371 B gzip / 771 B raw of CSS. Those five caps are set to measured head values plus 64 B. For the largest chunk, new-session boot and total CSS,mainwas already over its cap, so those also absorbmain's overage. The document cap is unchanged frommain.pnpm ui:check-performance:basepasses locally. The checker's own overage test needed two more fixture stylesheets to stay above the new CSS caps.The member-welcome browser test failed in CI on
1f7946c4f050waiting for the file chooser. Under CPU load it failed 4 of 4 local runs. An event trace of a failing run showed the product behaving correctly (Enter on the focused button, a trusted click, then the hidden input's click); the browser test had started listening for the chooser too late.dce2777c9c63starts listening before the name is submitted, and the test passed 8 of 8 runs under the same load.Gaps:
chat-history-reading-stability.e2e.test.ts(webkit, 390 px) is flaky and not changed here: it failed 2 of 5 local runs onmain005850723d3cand 2 of 3 on this branch.8cd9df5a0d21. Since then this branch mergedmainthree times and re-measured the budget numbers. The second merge resolved one conflict inchat-composer-view.tsx:mainremoved itsshowComposercondition, and the welcome check is kept beside what remains.🦞 Made with OpenClaw