Repository navigation
fix: keep linked people consistent across mentions and sign-ins - #147568
roboclaw-bot merged 7 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. Reviewed September 18, 2026, 1:03 AM ET / 05:03 UTC (Revision 20). ClawSweeper reviewWhat this changesThe PR preserves explicitly linked GitHub accounts under one person, expands mention searches to full names and verified handles, and adds accessible cards to selected mentions. Warning SQLite table change This PR modifies persisted SQLite tables in Merge readiness⛔ Blocked before merge - 2 items remain The central repair remains necessary on current main. No blocking introduced defect was found, and the documented downgrade tradeoff is already accepted rather than awaiting another decision. Priority: P2 Review scores
Verification
How this fits togetherGateway profiles connect authenticated accounts to a person's preferences, avatar, and mention Inbox. The Control UI consumes those profiles to search recipients and display person references without granting session access. flowchart TD
A[Verified sign-in] --> B[Gateway profile owner]
C[Administrator links profiles] --> B
B --> D[Canonical person and primary account]
D --> E[Authorized mention search]
E --> F[Selected transcript reference]
F --> G[Person card and Activity link]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +575, Tests +1053, Docs +16. Total +1644 across 32 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep canonical identity decisions in the existing profile owner, preserve literal transcript labels, and retain the accepted downgrade warning alongside the upgrade and authorization evidence. Do we have a high-confidence way to reproduce the issue? Yes, from source: explicitly merge two verified GitHub profiles and alternate sign-ins; current main deletes secondary account rows. This review did not execute that sequence. Is this the best way to solve the issue? Yes. Extending the existing profile owner and Gateway search avoids competing identity indexes, while selected-span rendering preserves transcript text and existing authorization boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7acf043d85c2. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (19 earlier review cycles; latest 8 shown)
|
904848a to
1b49d92
Compare
317db6d to
2c60dee
Compare
4fc48ed to
235a6f3
Compare
a51567d to
ed9b0e2
Compare
024aeac to
6f522c7
Compare
6f522c7 to
69dcb2b
Compare
Preserve verified account memberships, primary credit, and shared avatars. Add full-name/handle search and explicit person reference cards. Keep the schema version unchanged with the accepted older-writer downgrade limitation documented. Co-authored-by: steipete <[email protected]>
Use literal replacement callbacks, exercise the production avatar authorization handler with in-memory transport, and verify existing-account schema upgrade and reopen behavior. Co-authored-by: steipete <[email protected]>
Keep the prepared mention contract in render options. Runtime and Madge cycle checks report zero cycles; UI typechecking and all 23 focused Markdown tests pass. Co-authored-by: steipete <[email protected]>
Keep delimiters inside selected labels literal and translate masked reference keys through the existing Markdown parser owner. Cover shortcut/collapsed/explicit references, definition ordering, images, multiple selections and case-folded marker collisions. Eight original regressions fail before; 561 Markdown tests, types, i18n, lint and focused P0-P2 review pass. Co-authored-by: steipete <[email protected]>
Keep exact canonical hostname and cache-header validation plus cross-checkout request-order assertions on top of the now-main-owned repository identity response repairs. Main also owns the focused Codex model-attribution fixture; no duplicate mock remains. Co-authored-by: steipete <[email protected]>
Keep the existing record-coercion import needed by explicit mention rendering after main moved message-recovery helpers. UI types, 102 message/composer tests and 11 bundled browser cases pass. Co-authored-by: steipete <[email protected]>
Wait for the actual delayed child-roster request, its committed list snapshot, and a render boundary before measuring streamed deltas. Keep all counters, budgets and mutation assertions unchanged. Main now owns the compact planner fixture repair; do not duplicate it. Co-authored-by: steipete <[email protected]>
eed2d2c to
b786fac
Compare
|
Merged via squash.
|
…151417) Remove duplicate child-roster setup introduced by the clean textual composition of #147568 and #148447. Restore the exact previously landed browser-budget fixture while retaining committed-roster polling, scroll-idle synchronization, all six cases, and every assertion and budget. Validate current source files before measuring historical line-count debt. Only currently over-cap files need that allowance, so valid under-cap syntax repairs are no longer blocked by a malformed old file. Invalid current files and unmeasurable over-cap baselines still fail closed; no caps, baselines or suppression rules change. Co-authored-by: steipete <[email protected]>
…claw#147568) Keep explicitly linked GitHub accounts on one canonical person, preserving the primary public identity, consent, avatar, and mention Inbox across sign-ins. Search full names and verified handles, and render selected mentions as accessible person cards without changing permissions or literal copied text. Preserve Markdown reference links and selected labels. The nullable primary-account field does not introduce a shared-state schema-version bump. Older single-account writers may discard secondary links or split profiles; backup restoration or explicit relinking is required after such a downgrade. This tradeoff was explicitly accepted and remains documented. Preserve main’s shared-transcript page cache and committed resident profile-catalog publication while selecting the stable primary public account. Retain the record-coercion import needed by explicit mention rendering after the message-recovery refactor. Retain strict synthetic repository-identity request validation and cross-checkout assertions. Wait for committed startup child-roster work before measuring streamed-render budgets, keeping every budget and assertion intact; main owns the concurrent compact-planner fixture repair. Main now owns the repository-response and focused Codex fixture repairs; no duplicate fixture implementation remains. Earlier startup, Docker, cloud, database-fixture and wizard prerequisites are already on main and are not duplicated here. Co-authored-by: steipete <[email protected]>
…penclaw#151417) Remove duplicate child-roster setup introduced by the clean textual composition of openclaw#147568 and openclaw#148447. Restore the exact previously landed browser-budget fixture while retaining committed-roster polling, scroll-idle synchronization, all six cases, and every assertion and budget. Validate current source files before measuring historical line-count debt. Only currently over-cap files need that allowance, so valid under-cap syntax repairs are no longer blocked by a malformed old file. Invalid current files and unmeasurable over-cap baselines still fail closed; no caps, baselines or suppression rules change. Co-authored-by: steipete <[email protected]>
What Problem This Solves
One person can appear as separate mention recipients with different avatars after signing in through multiple GitHub accounts. Full-name searches also stopped at spaces, and selected mentions rendered as ordinary text.
User Impact
Explicitly linked accounts keep one person, avatar, preferences, and mention Inbox across sign-ins. The picker searches display names and every verified GitHub handle. Selected mentions retain their literal copied text and open an accessible person card with keyboard, mouse, or touch.
Accepted downgrade risk: this adds a nullable primary-account field without changing the shared-state schema version. Older single-account writers can discard secondary links or split the person again; re-upgrading does not reconstruct those links. Keep a backup before downgrading and explicitly relink affected profiles. The maintainer accepted this tradeoff rather than imposing a new database version.
Why This Change Was Made
Verified account membership and the primary public GitHub identity are separate responsibilities. Explicit profile merges preserve all verified accounts and the target’s primary/credit choice; secondary sign-ins do not change that choice. Username/email reuse isolation remains intact. This adds no name-based automatic merging, permission expansion, or notification from rendering.
Current-main integration preserves the shared-transcript page cache while selecting the primary public identity, and stages resident profile-catalog updates before merge observers run. Main now owns the earlier startup and CI-fixture prerequisites and their regression coverage; duplicate changes have been removed from this PR.
Evidence
69dcb2b0930fc3940a71717624cbaf115494a7f3: 57 focused identity/catalog/Markdown tests, 102 message/composer tests, UI typechecking, and 11 freshly bundled Chromium cases pass. Browser cases cover typed search, keyboard/mouse/touch cards, stale replies, unavailable profiles, and adjacent dashboard flows.b786face46a94aa4d4f030da65f76a5ca7076685also passes 14 freshly bundled browser cases, including all six streaming-runtime budgets, and 81 planner checks. The browser budget probe now waits for committed startup roster work; counters, budgets and assertions are unchanged. Main owns the concurrent planner-fixture repair.Proof limits: authorization tests invoke the production handler, role policy and SQLite in-process, with mocked external Access/GitHub responses—not a live-provider login. Upgrade proof uses populated legacy-schema fixtures and reopening, not an old release binary. Captures use synthetic identities. No live profiles, Gateway configuration or deployment were changed.
Before
After
Both inspected images were also delivered and verified in the originating Team chat. The unified full user card remains a separate follow-up after this PR lands.
Worked on by: @steipete
Work sessions
Team session: https://team.openclaw.ai/chat/roboclaw/dashboard/6339eba9-9ea1-4699-b115-84fd21f051f2