Repository navigation
refactor(ui): use native async placement boundaries - #179263
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 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 maintainer review before merge. What this changesThis PR replaces placement-catalog status bookkeeping with native Solid async boundaries and removes an unused session-menu loading field. Example: The destination catalog fails, then Retry returns device-a labeled Desktop.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored refactor removes redundant state, preserves placement safeguards, and has no actionable introduced findings. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI placement picker consumes Gateway destination catalogs and returns an explicit destination to the existing placement runtime, which rechecks session identity, connection, and permissions before sending a move. flowchart TD
A[Session actions] --> B[Placement runtime]
B --> C[Catalog request owner]
C --> D[Async catalog memo]
D --> E[Loading and error boundaries]
E --> F[Destination selection]
F --> B
B --> G[Authorized Gateway request]
Technical reviewBest possible solution: Use one async catalog memo with narrow native boundaries while preserving footer lifetime, explicit selection, and the existing placement authorization owner. Do we have a high-confidence way to reproduce the issue? This is primarily a behavior-preserving refactor; source inspection confirms the redundant state, and no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The change follows the existing Solid async contract, removes superseded bookkeeping across both menu producers, and adds no competing state owner or unnecessary production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fc3a42a7eb87. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -20, Tests +35. Total +15 across 7 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 21, 2026, 5:09 AM ET / 09:09 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* refactor(ui): consume session placement catalog through async boundaries * fix(ui): track placement configuration slot reads
Whole-scope Solid 2 census
Measured against
286a668b9d9b669971cf38796e4c57cf3e75965bafter integrating Solid rc.16. Counts cover productionapp-sidebar*,sidebar-*, andsession-*component files. Cells are before → after this PR on that base; the separate focused checkpoints #179201, #179241 and #179247 are reported in their own censuses.The two remaining async-read candidates have synchronous owner contracts: descriptor observation captures its reconcile receipt before awaiting and exposes loading to the sessions page; group-default repository validation immediately prevents submission against a stale checked path. Their owners remain authoritative. Raw cleanup calls register synchronous primitive/computation disposal. Structured signals publish atomic target identity, geometry, descriptor status, an existing mutable folder-browser view, or navigation handoff; they are not copied list drafts. The placement source label and destination regions share one request, so they do not need independent sibling coordination.
What Problem This Solves
The placement picker encoded pending, failed, and successful catalog reads in one nullable/string union, then copied those states into separate derivations. The menu-work contract also carried a loading field that no renderer consumed.
User Impact
The placement form, Cancel button, and submit button remain mounted while the catalog loads, fails, and retries. Source labels keep their supplied fallback and enrich from successful device results, including an initially empty label. Machine choices, keyboard navigation, focus, routes, tags, and classes are preserved.
Why This Change Was Made
Use one async memo under narrow
Loading/Erroredboundaries and native retry. Keep the footer outside those boundaries; a null selection prevents it from reading unresolved catalog data. Delete the unused menu-work loading field and its writes in both producers without moving request-version or connection authority. A JSX fragment also fixes an existing untracked read in the machine-configuration slot.Solid rc.16 and its migration note/installed cheatsheet were read after merging main. The async-and-actions recipe file is not present on this base. No artificial
isPending,affects, orrefreshis added: this dialog has an initial read and retry, not background revalidation or an owned server mutation slot.Evidence
ci:fullfor the shared session menu/placement surfaceTouched production LOC 3,350→3,330 (−20); tests 1,451→1,486 (+35). Whole-scope production LOC 37,085→37,066 (−19). Removed the error/data union, reload signal, two read derivations and unused menu-work state; the coupled sessions-page producer accounts for the remaining deleted line. Refactor census in scope remains: effects 7→7, untrack 4→4, direct listeners 0→0, DOM queries 1→1 (foreign island), flush 2→2, hand component calls 0→0. No intended visual or DOM/style change. No remote test lease.
CI attribution
Full CI run 39567812837 has one failing test:
Control UI Markdown table interactions > contains content-sized tables after restoring a percentage reading width. That exact name also fails on completed scheduled main run 39570916649, heada6482a5158919ec2b3b0e3bfd93642c91582d9b7. Its test source is identical between the tested merge, the merge main parent, and scheduled main. All UI unit shards and other non-aggregate jobs passed. Native inherited-failure evidence retains both logs, exact tested mergefc4a5b282914d1c6e9ed7bb37a354a106f509cdd, ordered parents, source hashes and complete job list.