Repository navigation
refactor(ui): use native async state for session sharing - #180316
Conversation
Keep membership refresh rows and sharing controls tied to pane-owned read receipts and admitted operations. Retire pending presentation before a same-key successor publishes, preserving synchronous authorization and the existing inline error owner.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR uses Solid async readiness and scoped actions to present session-sharing reads and mutations. Example: A user searches for Alice in compact Sharing while membership refreshes.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep this PR open: the refactor preserves pane ownership and improves pending presentation, but three test defects currently fail the UI checks. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI sharing surfaces consume pane-owned session and membership facts, invoke existing authorized pane operations, and display readiness, outcomes, and errors. flowchart LR
A[Sharing controls] --> B[Shared Solid presentation]
B --> C[Pane admission and authorization]
C --> D[Gateway sharing methods]
D --> E[Pane reconciliation]
E --> B
F[Session lifecycle] --> B
Technical reviewBest possible solution: Retain the pane-owned operations and shared presentation, correct the test selectors, and await visible action settlement before subsequent fixture interactions. Do we have a high-confidence way to reproduce the issue? Source shows compact sharing removing rows during loading and resetting search when the result changes; exact-head CI independently demonstrates the reported test failures. Is this the best way to solve the issue? The shared presentation follows the existing Solid recipe while keeping synchronous admission, authorization, writes, and reconciliation with their current owner. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 620537aba3dd. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +170, Tests +184. Total +354 across 11 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 Reviewed October 22, 2026, 1:10 AM ET / 05:10 UTC. |
|
Merged via squash.
|
…0316) * refactor(ui): use native async presentation for session sharing Keep membership refresh rows and sharing controls tied to pane-owned read receipts and admitted operations. Retire pending presentation before a same-key successor publishes, preserving synchronous authorization and the existing inline error owner. * test(ui): align sharing assertions with native settlement
Whole-scope CHAT-D census,
a52e2aa0ffdb→16cc26aa0609. Raw cleanup/owner APIs include named exceptions; unlanded families remain counted.Total files: 278; production LOC: 57086 → 57228.
I1–I10: 0, 11, 10 → 9, 11 → 10, 3, 6, 0, 0, 0, 3.
I1–I10 track handler binding, cleanup, async reads, pending processes, component loaders, copied structured state, component construction, context wrappers, useful Reveal boundaries, and owner-escape APIs. Counts cover immutable source, including retained owner and foreign-DOM exceptions; they are not defect counts. This PR removes the sharing family's I3 and I4 sites.
What Problem This Solves
Session sharing still presented membership reads and mutations through manual pending branches, and an old operation could keep replacement-session controls busy until its request settled.
User Impact
Desktop, compact, and mobile sharing retain their menus, search, permissions, confirmations, and inline failures. Refreshes retain the visible members and search, and a replacement session can become usable without waiting for the old operation.
Why This Change Was Made
The pane remains the sole owner of synchronous admission, authorization, confirmation, writes, publication, and reconciliation. Its membership read exposes a completion receipt consumed by narrow Solid
Loadingslots withlatestandisPending. One shared native action presents an already-admitted operation and scoped optimistic busy state, using the existing header-mutation retirement signal across hide, reconnect, teardown, and same-key session replacement.The read receipt resolves after success, failure, or retirement. Expected read failures remain in the existing owner-held inline error state, so it deliberately does not create a second
Errorederror owner. Only busy state is optimistic: the pane already publishes and reloads actual membership/public-share data. No optimistic membership data is introduced, so there is no separateaffects/refreshreconciliation or additional RPC.Evidence
ci:fullrun 39728409700 passes: 38 successful jobs and 27 skipped, including all UI unit, browser E2E, and real-Gateway shards.eslintdependency intools/solid-lint; there are no head-only findings.The production build and strict exact-base comparison pass with no violations or warnings. Both use fixed release metadata, disabled build cache, and the same toolchain. The saved precommit build diff exactly matches commit
dcdae4e67f574a152e601ab16d3dab989cde4a05; all 11 source blobs are verified. The follow-up commit16cc26aa060923fcc842f92f32e06d54fa14cfbconly adjusts two test files; all eight production blobs remain identical, so the same build and inspected screenshots apply.a52e2aa0ffdbThe exact base is within the enforced caps, so the conditional over-cap no-growth exception is not used. This change touches 11 files (+523/-168).
Before and after
Synthetic desktop and mobile fixtures, dark theme, fixed time/model, reduced motion.
Open overlap checked: #180136 changes participation-permission labels and #180292 adds public-link QR codes. Those unlanded features are not included here.