Repository navigation
fix(ui): preserve roster identity after normalized reads - #159394
Conversation
Unblock inherited main lint failures in PR merge refs without adding a suppression. Keep the three page-read rows as independent shallow copies in the same order; all 17 existing tree-snapshot tests pass (2.71 s wall) and focused type-aware lint is clean. Independent review found no actionable P0-P2 findings. Co-authored-by: steipete <[email protected]>
|
🦞👀 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 maintainer review before merge. Reviewed September 27, 2026, 12:23 AM ET / 04:23 UTC (Revision 4). ClawSweeper reviewWhat this changesThe Control UI projects accepted session rows before publishing a roster and adjusts existing session, chat, and sidebar tests for normalized rows and independent list responses. Merge readiness✅ Ready for maintainer review Keep this PR open. Current main still lacks the roster identity stabilization, and the latest head retains the foreign-agent identity guards. I found no concrete defect introduced by the patch. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI reads session lists from the Gateway, reconciles them with held rows, and publishes primary and filtered rosters to the sidebar and chat. Gateway events can update those rosters between list reads. flowchart LR
A[Gateway session lists] --> B[Row reconciliation]
C[Held row receipts] --> B
F[Gateway session events] --> B
B --> D[Roster admission]
D --> E[Primary and filtered rosters]
E --> G[Sidebar and chat]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests +12. Total +13 across 10 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep canonical, agent-scoped row identities in shared roster admission while retaining each query’s response metadata and existing read and event fences. Do we have a high-confidence way to reproduce the issue? Yes, source and the existing managed-roster reference checks define a focused path using independent list responses followed by a foreign-agent event. I did not execute that path in this read-only review. Is this the best way to solve the issue? Yes. The shared admission owner is the narrowest place to stabilize published rows without changing independent list reads or their response metadata. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e1b0d1fbdfe9. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
Repair 16 deterministic inherited UI failures exposed by the prerequisite lint-fix CI. Compare complete admitted roster contents rather than raw RPC aliases, keep failed-refresh identity tied to the admitted result, and preserve optional metadata value assertions. Deliver changed sidebar owner/participant fixtures through the actual filtered-query refresh. No production behavior changes or removed cases. All 260 focused tests pass in 35.92s; focused type-aware lint and safety/size ratchets pass. Full-candidate independent review through P2 is scoped-clean. Co-authored-by: steipete <[email protected]>
|
@clawsweeper re-review The branch now repairs the 16 inherited normalization-fixture failures reproduced from the first CI run. Current head f960328 passes all 260 focused tests and type-aware lint; the PR body contains the root cause and verification. |
|
🦞👀 Re-review progress:
|
Preserve admitted managed-result identity across rejected foreign events by projecting accepted rows before publication. Keep independent list reads separate so their response metadata survives permission reconciliation. Preserve both existing exact-reference negative assertions and use independent response objects in the fixture. Repair the additional raw-alias and undefined-property test assumptions exposed by the other UI shards without changing their value checks. All 1564 tests across 77 session/chat/sidebar files pass in 31.00s; UI types, focused lint and size ratchets pass. Full-candidate independent review through P2 is scoped-clean. Co-authored-by: steipete <[email protected]>
|
@clawsweeper re-review The new head 3e0c98c fixes the remaining inherited fixtures and the meaningful managed-roster identity failure at publication admission. Both wrong-agent reference assertions remain intact. All 1,564 tests across 77 session/chat/sidebar files, UI types, and focused lint pass; the PR body records the reproduced failures and final boundary proof. |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
Merge current main aad795b after prerequisite #159394 landed. The five-file sorting cleanup is source-identical to the reviewed candidate. Co-authored-by: steipete <[email protected]>
Preserve the reviewed routing source unchanged while incorporating the landed roster fixture and publication repairs from #159394 for fresh CI. Co-authored-by: steipete <[email protected]>
…9394) * fix(ci): construct roster snapshot fixtures without map spreads Unblock inherited main lint failures in PR merge refs without adding a suppression. Keep the three page-read rows as independent shallow copies in the same order; all 17 existing tree-snapshot tests pass (2.71 s wall) and focused type-aware lint is clean. Independent review found no actionable P0-P2 findings. Co-authored-by: steipete <[email protected]> * fix(ci): align roster fixtures with normalized list ownership Repair 16 deterministic inherited UI failures exposed by the prerequisite lint-fix CI. Compare complete admitted roster contents rather than raw RPC aliases, keep failed-refresh identity tied to the admitted result, and preserve optional metadata value assertions. Deliver changed sidebar owner/participant fixtures through the actual filtered-query refresh. No production behavior changes or removed cases. All 260 focused tests pass in 35.92s; focused type-aware lint and safety/size ratchets pass. Full-candidate independent review through P2 is scoped-clean. Co-authored-by: steipete <[email protected]> * fix(ui): publish canonical roster identities at admission Preserve admitted managed-result identity across rejected foreign events by projecting accepted rows before publication. Keep independent list reads separate so their response metadata survives permission reconciliation. Preserve both existing exact-reference negative assertions and use independent response objects in the fixture. Repair the additional raw-alias and undefined-property test assumptions exposed by the other UI shards without changing their value checks. All 1564 tests across 77 session/chat/sidebar files pass in 31.00s; UI types, focused lint and size ratchets pass. Full-candidate independent review through P2 is scoped-clean. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
Related: #159379 and #159382.
What Problem This Solves
Normalized session-list reads can replace unchanged managed rosters after unrelated events, and inherited roster fixtures fail CI.
User Impact
Keep unchanged roster publications stable and restore PR validation. No rendered-content, permission, configuration, or stored-data changes.
Why This Change Was Made
Normalize accepted rows to the existing canonical projection before publishing a roster, rather than waiting for a later unrelated event to replace equivalent row objects. The shared roster admission owner serves both primary and managed lists; independent list reads retain their own response metadata. Existing wrong-agent identity assertions remain intact, and their fixture now uses separate response objects.
Also repair the fixtures exposed by normalized reads: replace the fixed three-row map/spread with equivalent explicit copies; compare complete admitted contents rather than raw RPC aliases; preserve the exact admitted result across failed refreshes; check optional field values without requiring undefined own properties; and deliver changed filtered-sidebar fixtures through their query refresh. No suppressions, dropped cases, retries, or timeout changes.
This prerequisite repair supports @steipete’s authorized lint-reduction-and-landing work. The emergency direct-main repair attempt was rejected with
GH013: Changes must be made through a pull request; this follows that enforced route without bypassing it.Work sessions
Evidence
oxc/no-map-spreaddiagnostic; explicit copies removed it without changing the 17 tree-snapshot cases.git diff --checkpass. No baseline changes.openclaw/ci-gate. Completed ClawSweeper review for3e0c98c120f17f050cc2aacb8b3033764482c95dreports no findings.