Repository navigation
refactor(ui): move page work to owned publications - #176484
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: 3ef55808c2
ℹ️ 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".
| ); | ||
| let exportAbort: AbortController | null = null; | ||
| let focusSelection = false; | ||
| const focusTargets: Partial<Record<"search" | "reader-title" | "reader-error", HTMLElement>> = {}; |
There was a problem hiding this comment.
Shrink this Solid refactor to a net LOC reduction
This refactor increases the touched production code from 4,282 to 4,319 lines according to the commit's own checklist, largely through the new focus-target registry and callback plumbing introduced here. The required Solid refactor checklist says net production LOC must decrease and treats an increase as an incomplete conversion, so consolidate this focus ownership path or separate the additional behavior until the refactor is net-negative.
AGENTS.md reference: ui/AGENTS.md:L3-L5
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR moves page lifecycle work to existing publication owners, replaces Meetings DOM queries with owned refs, and reads live Approval and Question IDs from their bridge hosts. Example: Open Meetings with ?selector=meeting and no saved summary.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the maintainer-directed refactor is coherent, and no definite introduced bug was found; the remaining performance-check failure needs attribution before landing. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherControl UI pages consume route, config, and Gateway publications, admit requests through synchronous owners, and publish results into Solid-rendered views. flowchart TD
A[Route and bridge inputs] --> C[Page request owners]
B[Config and Gateway publications] --> C
C --> D[Gateway RPC client]
D --> E[Current result publication]
E --> F[Solid views and owned refs]
Technical reviewBest possible solution: Retain the existing synchronous request owners and land this focused lifecycle cleanup once the remaining CI attribution is settled. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor; source inspection and the reported focused tests support its intent, and no target code was executed during this read-only review. Is this the best way to solve the issue? The change uses existing publication, request, bridge, projection, and timer owners and removes the replaced lifecycle paths without introducing a competing domain owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 19c6d8f83ecd. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +37. Total +37 across 9 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 18, 2026, 5:48 PM ET / 21:48 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
The remaining page lifecycle cleanup moves Cron's post-publication DOM work and Meetings' summary-generation/focus work to the actions that request them. Cloud inventory refreshes subscribe to their existing config and Gateway owners and use the shared timeout helper. Approval and Question callbacks read the bridge's live synchronous ID while their tracked effects still own request admission; the redundant Approval connection-time DOM query is removed.
Meetings passes its prepared route into request admission instead of rereading reactive props inside effect apply. Current-route, connection, and authorization checks still reject stale asynchronous results. Tags, classes, routes, and lazy boundaries stay unchanged; no visual design change is intended.
Evidence
ci:fullrun 39168148538 passes all UI/browser/lint/type/security jobs. Three Gateway cases and the existing absolute chat-size limit remain.Refactor checklist
Nine touched production files against refreshed merge base d851443:
createEffectcreateRenderEffectuntrackThe 37-line growth makes owned focus targets and cleanup explicit. Remaining effects integrate live route/connection state with request admission: Approval and Question each have two, Meetings has one, Secrets has one. They preserve immediate authority and cancellation; this checkpoint does not claim the lane-wide 70% target.
No remote leases were created. External proof checkouts remain for coordinator cleanup under the campaign's metadata-I/O rule.
The initial CI run selected only two browser shards despite the later full-coverage label. Replacement head
12051cb61541merges main conflict-free with the label already attached, so exact-head review and the required nine browser shards are refreshed. Prior-head test/review proof is retained as historical evidence, not a completed verdict for this head.Current full CI measures chat boot at 1,494,544 → 1,494,583 B (+39 B), both over the 1,490,000 B absolute limit. Native evidence binds this current-base failure and the three exact-name Gateway failures to the tested merge/tree; no failed job is claimed green.