Repository navigation
refactor(ui): own session detail state with Solid - #174684
Conversation
Share the owner-scoped detail factory between menus and the Sessions page. Preserve synchronous request admission and read request status outside the page projection.
|
🦞👀 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 changesReplace the shared session-details class and notification callbacks with one Solid-scoped factory used by session menus and the Sessions page. Example: Open settings for agent:main:next while a descriptor for agent:main:old is pending.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a coherent, owner-directed refactor, and source review found no actionable correctness or security defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI menus and expanded session rows request descriptors through the session capability, which owns canonical row facts; the shared factory manages observation lifetime and presentation status. flowchart LR
A[Session menu] --> C[Session details factory]
B[Sessions page] --> C
C --> D[Session capability]
D --> E[Gateway descriptor RPC]
D --> F[Canonical row observations]
F --> C
C --> G[Solid presentation]
Technical reviewBest possible solution: Use the shared factory for both rendering lifetimes while retaining synchronous request admission and capability-owned row reconciliation. Do we have a high-confidence way to reproduce the issue? This refactor reports no product defect to reproduce; source inspection and existing mounted-UI scenarios establish the behavior it intends to preserve, and no target code was executed during review. Is this the best way to solve the issue? The conversion is appropriately scoped: both callers share one implementation, request decisions remain synchronous, and Solid observes presentation state outside the untracked page projection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b5ef99d7053d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -1, Tests +1. Total 0 across 5 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 16, 2026, 5:24 PM ET / 21:24 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Share the owner-scoped detail factory between menus and the Sessions page. Preserve synchronous request admission and read request status outside the page projection.
Problem and change
Session detail rendering used a controller class with a host-notify callback. The menu wrapped that callback in a second revision publisher, while the Sessions page consumed the same controller through its domain projection.
Replace the class with one owner-scoped
createSessionDetailsfactory used by both callers. The session capability remains the row authority; synchronous binding and request admission reject duplicate requests and stale replies. A local request-status signal drives loading and errors, and row invalidation follows the existing observation. The Sessions page reads request status outside its deliberately untracked domain projection. Cleanup releases observations without publishing state. The menu's host adapter and redundant effectuntrackare removed.Proof
session-menu.communication.test.tssessions-page.typing.test.tspnpm tsgo:uici:full)The initial UI typecheck and Knip found the second page caller; it is migrated in this PR. An initial lint finding required braces around the observation callback. Both are corrected. The initial isolated review covered the menu; the final review includes both callers and the domain projection contract.
No markup, styles, routes, tags, selectors, or lazy boundaries changed. This is a state-only refactor, so no startup build or visual capture was needed.
SessionDetailsOwnerreferencescreateEffectuntrackaddEventListenerThe old owner file is 114 lines; the factory is 120. The menu drops from 101 to 93, and its coupled Sessions-page caller changes from 1,604 to 1,605. Test LOC: 278 → 279. The local row revision observes canonical row/binding invalidation only; it is not a generic host repaint publisher.
CI attribution
The sole failing case times out during page.goto(settings/about) at link-hover-preview.e2e.test.ts:227, before hovering or opening any session menu. The diagnostic has booted=true, gateway connected, rosterReady=true, routeReady=false and About route.status=error. The actual tested merge changes only the shared session-detail factory, its menu settings caller/test, and its lazy Sessions-page caller. About, app, readiness, hover, fixtures, build/dependency inputs and the menu-render callers are byte-identical to the actual CI base. The changed factory runs only inside a requested session menu or the lazy Sessions page, neither exercised by initial About navigation. This is source-audited unrelated-failure admission; the route error cause remains unknown and no matching-main failure is claimed.
Run 38967368962, job
checks-ui-e2e (5/9)(117197644612):Link hover previews > keeps title hints when the optional hover runtime cannot load. 464/465 cases in the shard passed. Every other job, including both real-Gateway shards and security-fast, passed.The native failure reporter classifies the case as new because the latest comparable scheduled main job passed. The exception relies on the inspected tested merge and source ownership, not a matching-main claim. Memory Import and Snapshot observed the same initial About-route failure. No local E2E rerun or speculative product fix was performed.