Repository navigation
fix(ui): align session owner filtering terminology - #125645
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 18, 2026, 5:57 AM ET / 09:57 UTC. ClawSweeper reviewWhat this changesThe PR renames the session-list effective-owner facet and Control UI filters from Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 7 items remain Keep open: the branch removes the current-main Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Gateway projects persisted session rows into the flowchart LR
A[Persisted session state] --> B[Gateway session projection]
B --> C[Session list protocol]
C --> D[Owner and creator filters]
C --> E[Control UI session state]
E --> F[Sidebar and activity views]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -9, Tests +29, Docs 0, Other +2. Total +22 across 41 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the current-main status union, add focused schema coverage for Do we have a high-confidence way to reproduce the issue? Yes, from source: the branch removes Is this the best way to solve the issue? No: the terminology change is coherent, but it must preserve the current-main queued-status contract and update the remaining stale response fixture. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against dd2ad9695ce9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
87ace6d to
6826c0b
Compare
|
@clawsweeper re-review The current-head P1 is addressed: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Final head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
CI exposed an IndexedDB draft-persistence race: the test reloaded before the write completed and then re-filled the message while restoration arrived. Wait on the canonical durable-draft helper before reload so the reload cannot race the write.
Horizontal sidebar previews were positioned from the inner link rect instead of the complete session row, allowing the hovercard to overlap trailing actions. Anchor preview placement to the full row while preserving the link trigger and ownership flow so the session menu remains clickable.
Use the sidebar direct-row invariant to anchor the hovercard outside trailing actions without a selector lookup. This preserves the fix without increasing the startup budget.
Keep the primary timeout operator-visible when descendant settlement also reports secondary cleanup trouble. Preserve the complete AggregateError as the public wrapper cause so settlement evidence remains inspectable.
8664b35 to
d833e6e
Compare
|
@clawsweeper re-review Rebased head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
With isolate:false, the shared module registry can retain clipboard imports before this test installs its module mock, leaving the spy disconnected from the production call. Stub navigator.clipboard.writeText instead so the test exercises the real copyToClipboard boundary regardless of module load order, then restore the original descriptor.
|
@clawsweeper re-review Head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* fix(ui): align session owner filtering terminology Owner filters now use owner terminology consistently across the Gateway, Control UI, and generated native protocol clients. The old terms were prerelease-only, so no migration or compatibility aliases are needed. * fix(gateway): preserve creator provenance filtering Keep creatorId scoped to immutable createdActor provenance while ownerId queries the current projected assignable owner. This preserves independent creator and responsibility filtering after reassignment. * test(ui): wait for remembered draft before reload CI exposed an IndexedDB draft-persistence race: the test reloaded before the write completed and then re-filled the message while restoration arrived. Wait on the canonical durable-draft helper before reload so the reload cannot race the write. * fix(ui): keep session menus clear of hovercards Horizontal sidebar previews were positioned from the inner link rect instead of the complete session row, allowing the hovercard to overlap trailing actions. Anchor preview placement to the full row while preserving the link trigger and ownership flow so the session menu remains clickable. * perf(ui): keep hovercard fix within startup budget Use the sidebar direct-row invariant to anchor the hovercard outside trailing actions without a selector lookup. This preserves the fix without increasing the startup budget. * fix(qa): preserve Matrix CLI timeout precedence Keep the primary timeout operator-visible when descendant settlement also reports secondary cleanup trouble. Preserve the complete AggregateError as the public wrapper cause so settlement evidence remains inspectable. * test(ui): isolate Markdown table clipboard boundary With isolate:false, the shared module registry can retain clipboard imports before this test installs its module mock, leaving the spy disconnected from the production call. Stub navigator.clipboard.writeText instead so the test exercises the real copyToClipboard boundary regardless of module load order, then restore the original descriptor.
What Problem This Solves
Effective-owner filtering still used creator-named wire and UI vocabulary, obscuring the distinct immutable creator-provenance query. After reassignment,
sessions.listmust answer two separate questions: who created the session, and who currently owns it.This branch also carries focused CI repairs discovered while validating that owner change: durable new-session draft restoration before reload, child-session menu hovercard geometry, and Matrix CLI timeout precedence.
Why This Change Was Made
Stale effective-owner surfaces now use owner terminology: the result
creatorsfacet becomesowners, UIcreator:*selectors becomeowner:*, and owner-facing state, menus, tests, mocks, and docs follow that vocabulary.creatorIdremains exclusively the immutableentry.createdActor.idprovenance filter;ownerIdseparately filters the current durable assignable owner projected fromentry.owner?.actor ?? entry.createdActor.The complete
ownersresponse facet remains independent of pagination and unfiltered by either query. This is the canonical separation, not a compatibility alias or fallback reader. The follow-up creator predicate regression preserves the provenance query independently of current ownership.The branch was semantically rebased from
8664b35e2cf8b9db7ea2569ac0cf11354bf78657ontoorigin/main42d378b43913308d263fe3945cb8af124027f94f. It adopts current main'swaitForCommittedNewSessionDraftimplementation and attachment lifecycle synchronization unchanged. The workspace-memory caller now waits for that canonical durable commit before reload and then asserts the restored text instead of rewriting it. The rebase also preserves main's exportedsessionOwnerInitialshelper while applying owner terminology throughout; no retired helper alias was restored.The hovercard fix positions horizontal previews from the direct complete session-row parent, keeping trailing actions clear with compact unit geometry proof and no budget edit. The Matrix wrapper keeps the primary timeout message visible while retaining the settlement aggregate as its cause.
User Impact
Owner filters, People sorting, and owner-option accessibility consistently describe current ownership, while protocol callers can still query immutable creator provenance. Drafts survive a reload without racing IndexedDB persistence, child-session menus remain clickable beside hovercards, and Matrix CLI timeout errors retain the operator-relevant primary message plus the complete cause chain. There is no config or data migration.
Evidence
Focused verification on published head
70b152abaf4cf17ed580df06c807999ce6d3139b:first().waitFor()attachment synchronization.pnpm protocol:checkpassed registry/schema generation, Swift and Kotlin checks, and the protocol-since guard; generated outputs remained clean.pnpm check:docspassed formatting, Markdown/MDX/glossary checks, 6,524 internal links, and config-example validation.pnpm ui:buildpassed with startup JS at 343,219 B gzip against current main's 343,289 B baseline plus 1,056 B tolerance. No budget, tolerance, or ratchet changed.git diff --checkpassed.creator:*UI selector,creatorsresponse facet, creator-named effective-owner state, or retiredwaitForPersistedNewSessionDraft. RemainingcreatorIduses are immutablecreatedActorprovenance or sharing-authority provenance.patch is correct, 0.87).checks-uijob 95664701622:markdown-tables.test.tsobserved zero calls to its module-mockedcopyToClipboardspy under the intentionalisolate:falsefull-suite packing.ebe9d38a5f9; no current or open canonical fix was found.navigator.clipboard.writeText, exercising the real productioncopyToClipboardboundary independent of module load order. The focused Markdown table suite passed 4/4.pnpm --dir ui test --maxWorkers 3passed 693 files, 9,914 tests, with 1 skipped. The one-file diff and formatting checks passed, and fresh autoreview reported no accepted or actionable findings.Current diff versus
origin/main: 41 files, +347/-325. Categorized raw LOC: production +145/-152 (net -7), tests/test support +201/-172 (net +29), docs +1/-1, with generated protocol output at base parity.The previous synthetic merge CI run 32118471172 exposed the stale draft-helper caller and attachment lifecycle timing integration. This rebase resolves that current-main conflict directly. Exact-head CI run 32123690653 is attached to the published head and in progress.
Before selection
After selecting Ada
The UI layout intentionally stays the same; these images are before/after interaction proof of the owner-filter flow.
AI-assisted: yes; implementation and evidence manually reviewed.