Repository navigation
improve: show configured names for shared operator profiles - #164593
vyctorbrzezowski merged 13 commits into
Conversation
|
🦞👀 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: blocked before merge. What this changesThis PR shows saved Profile names alongside the Shared owner qualifier throughout Control UI presence and session views. Example: A token-authenticated gateway-owner profile has the saved name Alex.
Review scores
ProductKind: Preference · Worth it: Needs a maintainer decision · Fix scope: Partial Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR provides a focused, proven presentation improvement, but changing the deliberately anonymous shared-owner label needs an area-owner product decision. Priority: P3 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe Control UI projects Gateway profile and session-actor metadata into labels through the existing shared presence-label helper. flowchart LR
A[Saved Profile name] --> B[Gateway presence and session metadata]
B --> C[Shared presence label helper]
C --> D[People and activity cards]
C --> E[Session viewers and groups]
C --> F[Usage creator labels]
Technical reviewBest possible solution: Adopt the qualified saved-name presentation through the existing helper if the area owner approves its use across shared-profile consumers. Do we have a high-confidence way to reproduce the issue? Current-main source and its named-owner test directly establish that saved names are intentionally hidden by the generic shared label. Is this the best way to solve the issue? The existing helper is the appropriate owner, and the patch preserves the authority qualifier while correcting fallback-name inputs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9e722cd27e44. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests +37, Docs 0, Other +1. Total +42 across 16 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 (11 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 2:43 PM ET / 18:43 UTC (Revision 12). |
|
Fixed both P2 findings in
The catalog regression and three Activity rows failed before repair; affected consumer/Activity suites now pass 194 tests. Production UI and selected test typechecks, scoped lint and P2 Codex AutoReview passed. Authentication, grouping and permissions are unchanged. The existing synthetic screenshots and mounted/unit tests are not being presented as a new live-Gateway before/after recording. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
CI caught one more existing sibling expectation; fixed in The offline sidebar fixture sets the shared profile's name to The other UI failures report a missing |
Backport the shared worker-runtime alias-owner entries from openclaw#164537. Reuse the shared aliases in standalone UI Vitest and cover them following openclaw#164061.
|
Added the inspected real-token baseline/current-head desktop and mobile comparisons to the body, plus acknowledged save → reload → rename results and the unchanged unnamed control. Canonical CI is green. This is a display-name change, not personal authentication or a data migration. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
vyctorbrzezowski
left a comment
There was a problem hiding this comment.
Reviewed the shared-profile label helper and its presence, session grouping, Activity, and Usage consumers, including unnamed-profile fallback, identity grouping, and the updated test cases. The change keeps the shared-owner qualifier while using genuine profile names and avoids substituting actor IDs or session-agent names as saved names. No actionable issue found in the reviewed diff.
Automated code review complete. No further changes are requested from the author at this stage. Final product and design review will be handled by the responsible maintainer before the PR is considered for merge.
|
Merged via squash.
|
…#164593) * improve: show configured names for shared operator profiles * fix(ui): preserve unnamed shared owner labels across consumers * test(ui): align sidebar shared owner name expectation * fix(test): share package aliases with UI Vitest projects Backport the shared worker-runtime alias-owner entries from openclaw#164537. Reuse the shared aliases in standalone UI Vitest and cover them following openclaw#164061. * fix(ui): reconcile named shared-owner locale expectations and scan coverage * chore: prepare reviewed contributor base integration * fix(ui): preserve shared profile labels across main integration * chore: remove duplicate scan target * style(ui): format shared profile name fixture --------- Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Related: #162164 (native identity umbrella). Independent of #163765.
What Problem This Solves
The people list ignores the configured operator Profile name and shows only Shared owner for token-authenticated access.
User Impact
A configured name appears as “Alex · Shared owner”; an unnamed profile still shows Shared owner. The card continues to explain that shared credentials are not personal sign-in. Authentication, permissions, identity grouping and activity ownership are unchanged.
Why This Change Was Made
The existing Profile already stores the name. The shared presence-label helper now uses it while retaining the explicit shared-authority qualifier across its existing consumers. This does not create another Profile, infer single-user mode, or treat a nickname as verified identity.
Vítor proposed reusing the operator's Profile name rather than leaving local/token-only app users with an anonymous label. This is the bounded presentation slice; personal sign-in and channel linking remain separate.
Evidence
The current head
52594f1645cce081b904f219abf3835739b1b633includes mainc2abf60148026929a676d59fd5cbd751099e7759, including the upstream test-fixture repair in #180628, and formats an existing test-table row without changing its values or assertions. The earlier duplicateworker-heap-flag.mjstarget was removed;scripts/check-duplicates.mtsis no longer part of the PR diff. The shared-profile behavior is unchanged.CI 39783116822 on the preceding head passed all three UI shards, UI E2E and i18n. It caught the test formatting and three upstream
sessions-patch.test.tstype errors repaired by #180628. Current-head CI 39785852454 passed; the runtime evidence below retains its original revision stamps.Earlier head
8fe059fbb858a1550469395c90f90fb0af503740normally merges canonical maind1557ad9af5e3abd786e2932f3c6355130d30c0a. Main replaced Usage'sview-creators.tswith Solidview-creators.tsx; the sole modify/delete conflict keeps that canonical component and carries the existing shared-name behavior into it. An absent or whitespace-only profile label is still passed as unnamed, not replaced with the identity ID. Authentication, permissions, Profile storage and unrelated migration files are unchanged. The complete 16-file contributor delta received scoped-clean Codex P2 review with exact public source and label-owner context. Pinned formatting, contributor whitespace checks and original commit hooks passed; the frozen tree survived the hooks unchanged. Earlier runtime images remain stamped to their actual historical heads.Canonical CI 38163855114 passed on this head, including all three UI shards, the applicable UI E2E shard, production/test typechecks, lint and guards. Its aggregate gate and the published CI/security/dependency gate 38164338501 passed. Terminal readback records 64 successful CheckRuns, 39 conditional skips, one neutral result and all three external status contexts successful, with no failed or pending checks. GitHub confirms
MERGEABLE/CLEAN; no merge was performed.Historical CI 38141297846 passed on
c6909c6789767512c0822d41a7e9e338f8b9d105. At terminal collection, 62 checks succeeded, 35 were conditionally skipped and one was neutral, with no failures or pending checks. That head was initiallyMERGEABLE/CLEAN, then became conflicting when main advanced; the current merge addresses that new conflict, not a new authentication defect.Preceding head
c6909c6789767512c0822d41a7e9e338f8b9d105addressed the two demonstrated failures in CI 38139026704. The duplicate scanner now includes main'sworker-heap-flag.mjsrather than leaving it outside scan coverage. The existing Solid locale-publication test now expects its fixture's saved name alongside the English and Portuguese shared-owner qualifier. It registers the named translation template and keeps theSOidentity-initials assertion. No production identity behavior, authentication, assertion, timeout or guard was removed. Exact-source Codex/Astra P2 review with the complete scanner and identity owners found no actionable issue. Original hooks and contributor whitespace checks passed; frozen tree and published fork/canonical head were read back exactly. Its completed CI is linked above.Earlier head
8b5e5ccf76b5223de53fe24ea87c18b56cf644cdnormally integrated canonical main841272e230d02001b6be7ea0a369238574dee565. The Sessions owner moved from the old view to Solidview.tsx; the resolution keeps that canonical migration and carries only the shared-name label distinction into the new owner. A missing label still renders as unnamed, not as the fallback identity ID. Named and unnamed literal expectations remain covered. Full contributor-delta Codex/Astra P2 review with the exact shared presence helper found no actionable issue. Contributor whitespace checks and original commit hooks passed; the published head was verified. Its runtime images were not relabelled as new-head visual parity.Historical head
409f7cf9b803e8c886c932ba6b4d72ab1de2f04apassed canonical CI 37250155152, including the applicable UI and real-Gateway shards. That is not a current-head result.Actual token-authenticated before/after
The production UI and a real Gateway were freshly built at each exact revision: baseline 37259526651 at
2a4dacc224c56ba48c9e5353eb0907156a8b35d4, and candidate 37259528519 at historical head409f7cf9b803e8c886c932ba6b4d72ab1de2f04a. Both passed the same isolated synthetic named, unnamed and rename cases on standard Ubuntu24.04.Synthetic operatorShared ownerSynthetic operator · Shared ownerShared ownerShared ownerSynthetic mutation probeand reloadedShared ownerSynthetic mutation probe · Shared ownerThe browser saves through the existing Profile controls. Each write is acknowledged for
gateway-owner, and the saved name survives reload in both revisions; the rename case performs two acknowledged saves. The candidate changes presentation, not persistence or authentication. The card retains “not a personal sign-in” in every case.Same comparison at the mobile viewport
All twelve actual desktop/mobile captures were inspected: the community invitation is absent, identifiers are synthetic, and unnamed access remains unchanged. The run artifacts contain source/build receipts, UI write/reload results and image digests. The helper verifies the local UI index, exact same-origin served JavaScript digest, separately hashed stable served HTML, and task browser/Gateway/port cleanup. The shared QA harness is pinned to
2ccc4eb272367e5ff97bc361df409355649f419f; it lives only on the fork QA branch, not in this PR.This is actual browser/Gateway behavior, not native-app, external-account authentication or OS-sandbox proof. No personal Gateway or live account was used. No stored-data format, migration, role or authority contract changes in this slice;
ui/vitest.config.tsonly reconciles existing test dependency aliases.Earlier code, regression and historical runtime receipts
Candidate
ed8f4431e064efaadd841a3e07e9717e4c60e738, pinned base2a4dacc224c56ba48c9e5353eb0907156a8b35d4.Real-Gateway comparison at the pinned candidate
At
ed8f4431e064efaadd841a3e07e9717e4c60e738, the production browser UI was compared with2a4dacc224c56ba48c9e5353eb0907156a8b35d4using the same backend and fresh task-owned state:Synthetic operatorShared ownerSynthetic operator · Shared ownerShared ownerShared ownerThe shared-credential/not-personal-sign-in explanation remained present in all four cases. A real
users.setDisplayNamerequest returnedok: true, and the configured name survived reload in both builds. This PR changes the displayed label; it does not repair backend name persistence or turn shared credentials into a personal sign-in.The served UI bundle matched its built asset: candidate SHA-256
5748eb68a7e0de96fec13254618a127fd8b3c1013250a245171c84bf3611b94d, baseline02728bf4beb4c17a240502685029b414093bb5e9c7ecdce0b706526e7bda5c5e. The retained summary's SHA-256 is81f8ca3daf9275824d09e6defe1dbbaf63d99ae77abdbfaf2ef8170eda61a648bc.This was an isolated-state loopback Gateway/browser run, not an enforced OS sandbox, native-app test, provider-response test or different-person authentication test. The summary records background
Gateway requester profile changedfailures on unrelated requests; they are not attributed to this label change. Task Gateway/browser processes were stopped afterward.The then-current Clawsweeper review covered this candidate and reports no new actionable code finding; it still asks for reviewable runtime proof. The saved before/after images contain the community invitation card excluded by the repository's screenshot guidance, so those images are not offered as completed visual proof. The new matched captures above supersede that visual gap.
Earlier code and test receipts
Hosted CI caught one further existing sidebar expectation: its shared-owner fixture supplies the name
bob, so the expected visible/card label isbob · Shared owner. The one-line correction passed both affected mounted cases, formatting, scoped lint and independent P2 Codex AutoReview. No production behavior changed in this follow-up. The preceding 194-test receipt remains atabc9126.The earlier Clawsweeper review at
abc9126confirmed the previous code findings were resolved. That earlier CI reported missing@openclaw/worker-runtime/lifecyclein the UI-node harness; the already-merged upstream alias fix was subsequently reconciled; historical canonical CI at409f7cfpassed as linked above.Follow-up to Clawsweeper's two P2 findings: catalog, sidebar, Sessions and Usage now pass genuine profile labels without turning fallback IDs into names. Activity also keeps an existing unnamed actor separate from its session agent. Named-owner sibling expectations and the user-model documentation follow the same contract.
Before the repair, the existing catalog blank-owner case failed, and three new Activity table rows reproduced the agent-name substitution. After repair, affected consumer suites passed 140 tests and Activity projection/rendering passed 54 (194 total). These are unit/mounted-render tests, not a live Gateway before/after recording.
The repair's production UI typecheck and selected UI-pages/UI-components test graphs passed. The exact nine-file repair received independent scoped-clean Codex AutoReview at P2. The reviewer could inspect the supplied unchanged label owner but did not execute it.
Earlier evidence at
b17ba83:The repair's scoped lint passed through the repository wrapper using its supported source-backed
config/tsconfig/oxlint.core.jsonpath, without plugin-declaration preparation. The default lint preparation timed out after 300 seconds before lint ran; it is not claimed passing. The selected test graphs subsequently passed. No rule or budget was relaxed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui.config.ts --configLoader runner ui/src/lib/presence-users.test.ts --maxWorkers=1(27.74 seconds including jsdom startup; individual cases 0–2 ms). Hosted CI seconds are not yet measured. The configured-name regression failed before the production change; blank names and existing personal/grouping behavior retain their coverage.Known boundaries: the bundled E2E attempt timed out without a result, and the complete changed-file wrapper stops at unchanged pinned-main changelog attribution. Neither is claimed green. Full repository build/check/test has not been rerun. The real-Gateway comparison above establishes the bounded label result; the newer captures above close that visual gap; this PR remains subject to upstream CI, proof and maintainer review gates. Naming/onboarding policy beyond this qualifier is not implemented here.