Repository navigation
fix(ui): identify the signed-in user in owner filters - #126052
Conversation
Pin the authenticated profile first and label it as Name (You) in the shared session owner menus.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 18, 2026, 6:24 PM ET / 22:24 UTC. ClawSweeper reviewWhat this changesThe PR adds the authenticated profile to shared session-owner filter options, places it first, and labels it “(You)” in session and catalog menus. Merge readinessKeep open: a valid Gateway agent/profile ID collision makes this PR label an agent row as the signed-in user in both owner menus. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherThe Control UI combines the Gateway’s session-owner facet with the authenticated profile to build owner filters. Those options drive both the session sidebar and catalog view menus. flowchart LR
A[Gateway owner facet] --> C[Sidebar owner projection]
B[Authenticated profile] --> C
C --> D[Shared owner menu]
D --> E[Session filter]
D --> F[Catalog filter]
Decision needed
Why: The maintainer label requires explicit human handling, while the remaining code change is mechanical but merge-blocking. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +61, Tests +14. Total +75 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the centralized profile projection, require the “(You)” label to match a human owner, add collision coverage, then clear exact-head UI E2E. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main excludes the authenticated profile from the facet-only projection, and the PR’s ID-only label predicate demonstrably mislabels the Gateway’s tested agent/profile collision state. Is this the best way to solve the issue? No. Centralizing profile insertion is the right layer, but the label must be limited to a validated human owner rather than a raw matching ID. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 39aec9b3d759. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Pin the authenticated profile first and label it as Name (You) in the shared session owner menus. Co-authored-by: RoboClaw <[email protected]>
What Problem This Solves
Fixes an issue where authenticated users opening the session owner filter could not identify their own row. The signed-in user stayed in the server-provided alphabetical order, or could be absent when they did not own a currently listed session.
Why This Change Was Made
The sidebar now joins the authoritative authenticated profile into its owner options, pins that profile ahead of the other avatar rows, and renders the localized label as
Name (You). Identity data remains unchanged so avatar initials and profile pictures do not inherit the suffix. The shared projection covers both the global session filter and catalog filter without protocol, config, or storage changes.AI-assisted. Production LOC: +37/-12 (net +25) for the authenticated-profile join and the two shared menu consumers. Tests: +50/-0.
User Impact
People can immediately recognize themselves in the owner picker. Their own profile is the first avatar row and is explicitly labeled, while all existing owner and “Involving me” filters keep their current behavior.
Evidence
Before
After
profile-patrickwas missing before the owner-facet repair.node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts ui/src/components/app-sidebar-session-navigation-logic.test.ts— 299 passed.run_bd24c37bc4a0— focused Playwright owner-filter scenario passed; screenshot inspected; lease released.node scripts/check-changed.mjs -- <changed UI files>— formatting, i18n, core-test/UI typechecks, lint, dependency guards, and repository ratchets passed..agents/skills/autoreview/scripts/autoreview --mode uncommitted --stream-engine-output— clean, no accepted/actionable findings.