Repository navigation
refactor(ui): scope lazy session menu controls to computations - #179201
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 manually cached appearance and snooze controls with lazy Solid computations and adds compact-menu reentry coverage. Example: Open compact Snooze, select Back, reopen Snooze, and submit January 1, 2099 at 09:00.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, maintainer-directed lifecycle simplification with no actionable introduced defect found; required checks remain red. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI session-menu renderer consumes session state and action handlers, constructs appearance and snooze controls, and forwards selections to the existing session-action owner. flowchart TD
A[Session state] --> B[Session menu entries]
B --> C[Lazy appearance computation]
B --> D[Lazy snooze computation]
C --> E[Native menu controls]
D --> E
E --> F[Session action owner]
Technical reviewBest possible solution: Retain this small computation-owned refactor and resolve the remaining checks through the repository's native CI admission path. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported bug; source inspection establishes the manual ownership being replaced, and no target code was executed. Is this the best way to solve the issue? The two lazy computations are the smallest complete replacement using existing Solid ownership, with no parallel renderer, new state owner, or unnecessary test scaffolding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4e6f52e0beef. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -1, Tests +21, Other -2. Total +18 across 4 files. Added test files: 0. View PR surface stats
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, 4:08 AM ET / 08:08 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Whole-scope Solid 2 census
Measured 154 production files / 36,938 lines on base
f0c671ec92a5370b43e610c8501681202e34805c. Each cell is before → after this PR. Other family work remains in progress; this base does not yet include #179166.Item 2 includes synchronous primitive/computation teardown. The three owner calls removed here captured/restored an owner for lazily created submenu content; the retained session owner call mounts a foreign-DOM plugin fallback. Four other foreign-DOM calls and the detached sidebar root addressed by #179166 account for the remaining scope total. Only three of 19 runtime imports are renderer-loader candidates; other imports load domain commands, observers, registrations, or retained prewarm/retry adapters.
What Problem This Solves
Session-menu appearance and snooze content used imperative caches plus captured-owner restoration to create reactive controls only when opened. Two lazy memos now own that content directly. The second snooze function call stays outside the memo so time-based presets remain fresh.
Solid 2 disposes an unobserved lazy memo: compact Back navigation therefore releases submenu registrations, and reentry recreates controls under the current menu owner. Existing appearance draft preparation remains authoritative. Desktop submenu retention is unchanged. No intended visual change, markup/style change, or selector change.
Evidence
Touched production LOC: 478 → 477 (−1). Whole-scope production LOC: 36,938 → 36,937 (−1). Test LOC: 928 → 949 (+21). The added assertions cover controls surviving compact Back/reentry; no test-only production API.
Refactor-checklist counts in touched production: controllers, effects, render effects, untrack, direct listeners, DOM queries and flush all 0→0; getOwner 1→0, runWithOwner 2→0, createRoot 0→0. No screenshots because the DOM/style/visible-state contract is unchanged. No Crabbox/Testbox lease.
Full CI attribution
Run 39560247497, attempt 1, failed only the named dashboard draft test and root-tooling typecheck. Both reproduced on the exact tested merge’s main parent
e58c6f298cfd15683bbededd010cb634578a720c: 1 failed / 3 skipped at the missing Chat button, and the identical TS2345 diagnostics atci-changed-node-test-plan.test.ts:813and:891. The five named source blobs are identical between baseline and CI checkout1fc7ffe010eac825f1eb2c50a4d7fa7cb9954d03. Native inherited-failure admission retains these failures; CI is not represented as green.