Repository navigation
refactor: own session settings observations in Solid - #174139
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cedf8642d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| close, | ||
| ); | ||
| const view = useSessionMenuEntries(host, actions, readState, revision); | ||
| const view = useSessionMenuEntries(host, actions, readState); |
There was a problem hiding this comment.
Regenerate the boot manifest after removing the controller
Removing the controller from both session-menu entry paths changes the captured startup module graph, but ui/config/control-ui-boot-modules.json:2308 still lists the now-deleted ui/src/components/session-menu-controllers.ts. This leaves the generated chunking input inconsistent with the source and can produce incorrect boot-group measurements; run pnpm ui:boot-manifest:gen and commit its output before verifying the build.
AGENTS.md reference: ui/AGENTS.md:L80-L81
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesMoves session-settings observation lifecycle into a Solid factory and removes the shared menu controller adapter. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this is a useful, maintainer-directed lifecycle refactor with no concrete introduced defect found; failing UI checks still need attribution. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherSidebar and chat-header menus consume Gateway-backed session descriptors through the existing session capability and expose communication settings through shared menu controls. flowchart TD
A[Sidebar and header menus] --> B[Solid settings lifetime]
B --> C[Session details owner]
C --> D[Session capability]
D --> E[Gateway descriptor reads]
D --> F[Communication controls]
F --> G[Existing session actions]
Technical reviewBest possible solution: Retain the focused Solid lifecycle cutover and existing descriptor owner, then settle the failing CI checks through the repository’s failure-attribution policy. Do we have a high-confidence way to reproduce the issue? This PR describes a behavior-preserving refactor; source inspection verifies its callers and ownership boundaries, and no target code was executed. Is this the best way to solve the issue? The change removes the obsolete host adapter while preserving the shared synchronous descriptor policy used by the Sessions page. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 890370dba59d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -78, Tests +74. Total -4 across 8 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, 7:21 AM ET / 11:21 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Session settings still depend on a menu-wide controller host to refresh descriptor metadata and release observations when the menu closes.
User Impact
No intended user-visible change. Sidebar and chat-header settings retain their communication controls, retries, compact navigation, keyboard behavior, and current-session checks.
Why This Change Was Made
The settings observation now belongs to the Solid menu owner. Its factory preserves immediate capability observation and descriptor admission, derives communication state directly from the capability-owned observation, and releases it on close or disposal. This completes removal of the shared menu host and its broad revision plumbing after the owner-menu port.
The shared
SessionDetailsControllerremains unchanged because the Sessions page also consumes its synchronous observation policy; its lifetime and admission policy remain outside this menu refactor. This change removes menu lifecycle machinery without duplicating that policy or changing the page lane's design. The directly coupled chat-header edit only removes the obsolete adapter dependency.Evidence
readRuntimePromptImageOrderinsrc/media/media-facts.ts28f8cab70da15789b92ac2962dc6101f5a95f890ci:fullThe focused test file covers stale target descriptors, connection replacement with a retired pending reply, visible descriptor errors and retry, sparse communication edits, disabled reasons, compact navigation, and focus. The initial local run identified strict-read diagnostics at the imperative descriptor synchronization call; it now has the same explicit untracked snapshot semantics as the removed adapter. Broad browser and Gateway proof belongs to PR CI. Production Knip fails identically on head and base
28f8cab70da15789b92ac2962dc6101f5a95f890, solely for the unrelated media export; the saved patch was restored byte-for-byte after baseline attribution.This is a lifecycle refactor with unchanged markup/styles, so no visual screenshots are claimed. No local E2E/parity suite or remote testing lease was used.
createEffectcallsuntrackcallsaddEventListenercallsProduction delta: −78 LOC across seven files, including deletion of the 45-line host adapter. Tests add 74 lines for two public behavior regressions; overall delta −4 lines. The remaining effect observes the external descriptor owner; its untracked admission call retains deliberate synchronous owner reads. Startup imports and lazy boundaries are unchanged.
Full CI attribution
Full
ci:fullrun 38891413536 completed on this exact head. All UI units, six mocked E2E shards, both real-Gateway shards and security passed. Three mocked E2E shards failed:All seven cases passed latest scheduled main run
38887900861, which preceded the utility fallback addition. This is the campaign-authorized plainly unrelated admin route, not a matching-main-failure claim. Exact CI merge172f86fca555435600df8460093e9f8e0e824e0dhas baseline3b2eba7836a3f83522be66cd42db1619aab4c736and reviewed headcedf8642d75828f15d53a74814357f53de4c7aef; its real delta is only these eight intended files. Native evidence records checkout, failure names, source hashes and complete job accounting.